Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
selectable_text.hpp File Reference
#include <pulp/view/geometry.hpp>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::view::SelectableLine
 One painted line of selectable text, in the widget's LOCAL coordinates. More...
struct  pulp::view::SelectableLayout
 The painted line geometry of one widget. More...
class  pulp::view::SelectableText
 A widget whose painted text can join a document-level selection. More...

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Functions

View * pulp::view::enclosing_text_selection_region (View &from)
 The nearest enclosing text-content region of from (itself included), or null when it is not inside one.
int pulp::view::selectable_index_at_point (const SelectableLayout &layout, Point local)
 Nearest cluster boundary to local within layout.
std::vector< Rect > pulp::view::selectable_rects_for_range (const SelectableLayout &layout, int start_utf8, int end_utf8)
 The painted rects covering [start_utf8, end_utf8), in local coordinates, one per touched line.
int pulp::view::selectable_first_index (const SelectableLayout &layout)
 First / last selectable byte offset in layout.
int pulp::view::selectable_last_index (const SelectableLayout &layout)