|
virtual void | add_component (std::shared_ptr< SpanComponent > component, float baseline_offset=0.0f, int id=-1)=0 |
| Add component object. More...
|
|
virtual void | add_image (const ImagePtr &image, float baseline_offset=0.0f, int id=-1)=0 |
| Add image object. More...
|
|
virtual void | add_text (const std::string &text, const FontPtr &font, const Colorf &color=Colorf::white, int id=-1)=0 |
| Add text object. More...
|
|
virtual void | clear ()=0 |
| Removes all objects. More...
|
|
virtual std::string | combined_text () const =0 |
| Get all text. More...
|
|
virtual void | draw_layout (const CanvasPtr &canvas)=0 |
| Draw layout. More...
|
|
virtual void | draw_layout_ellipsis (const CanvasPtr &canvas, const Rectf &content_rect)=0 |
| Draw layout generating ellipsis for clipped text. More...
|
|
virtual Sizef | find_preferred_size (const CanvasPtr &canvas)=0 |
| Find the preferred size for the given layout. More...
|
|
virtual float | first_baseline_offset ()=0 |
| Returns the baseline offset for the first baseline. More...
|
|
virtual void | hide_cursor ()=0 |
| Hides the cursor caret. More...
|
|
virtual HitTestResult | hit_test (const CanvasPtr &canvas, const Pointf &pos)=0 |
| Hit test which object is located at the specified position. More...
|
|
virtual float | last_baseline_offset ()=0 |
| Returns the baseline offset for the last baseline. More...
|
|
virtual void | layout (const CanvasPtr &canvas, float max_width)=0 |
| Layout objects. More...
|
|
virtual Rectf | rect () const =0 |
| Returns the geometry of the layout. More...
|
|
virtual std::vector< Rectf > | rect_by_id (int id) const =0 |
| Returns the geometry of the object with the given id. More...
|
|
virtual void | set_align (SpanAlign align)=0 |
| Sets the text alignment. More...
|
|
virtual void | set_component_geometry ()=0 |
| Set component geometry. More...
|
|
virtual void | set_cursor_color (const Colorf &color)=0 |
| Sets the cursor color. More...
|
|
virtual void | set_cursor_overwrite_mode (bool enable)=0 |
| Toggles whether the cursor caret is shown as a solid box or a line. More...
|
|
virtual void | set_cursor_pos (std::string::size_type pos)=0 |
| Sets the cursor position. More...
|
|
virtual void | set_position (const Pointf &pos)=0 |
| Set position of layout. More...
|
|
virtual void | set_selection_colors (const Colorf &foreground, const Colorf &background)=0 |
| Set selection colors. More...
|
|
virtual void | set_selection_range (std::string::size_type start, std::string::size_type end)=0 |
| Set selection range. More...
|
|
virtual void | show_cursor ()=0 |
| Shows the cursor caret. More...
|
|
virtual Sizef | size () const =0 |
| Returns the size of the layout. More...
|
|