|
| TextBox (const std::string &text, const Rect &rect, const AlignFlags &text_align=default_text_align(), const TextFlags &flags={}) noexcept |
|
| TextBox (const std::string &text, const TextFlags &flags, const AlignFlags &text_align=default_text_align()) noexcept |
|
| TextBox (const std::string &text={}, const AlignFlags &text_align=default_text_align(), const TextFlags &flags={}) noexcept |
|
| TextBox (const TextBox &)=delete |
|
| TextBox (Frame &parent, const std::string &text, const Rect &rect, const AlignFlags &text_align=default_text_align(), const TextFlags &flags={}) noexcept |
|
| TextBox (Frame &parent, const std::string &text={}, const AlignFlags &text_align=default_text_align(), const TextFlags &flags={}) noexcept |
|
| TextBox (Serializer::Properties &props) noexcept |
|
| TextBox (TextBox &&)=default |
|
| ~TextBox () noexcept override |
|
void | add_validator_function (ValidatorCallback callback) |
| Add a callback to be invoked to validate the input. More...
|
|
size_t | append (const std::string &str) |
| Move the cursor to the end and insert. More...
|
|
void | clear () override |
| Clear the text value. More...
|
|
EGT_NODISCARD size_t | cursor () const |
| Get the cursor position. More...
|
|
void | cursor_backward (size_t count=1) |
| Move the cursor backward by the specified count from the current position. More...
|
|
void | cursor_begin () |
| Move the cursor to the beginning. More...
|
|
void | cursor_end () |
| Move the cursor to the end. More...
|
|
void | cursor_forward (size_t count=1) |
| Move the cursor forward by the specified count from the current position. More...
|
|
void | cursor_set (size_t pos) |
| Set the cursor to the specific position. More...
|
|
void | draw (Painter &painter, const Rect &rect) override |
| Draw the widget. More...
|
|
void | handle (Event &event) override |
| Handle an event. More...
|
|
void | input_validation_enabled (bool enabled) |
| Enable or disable input validation. More...
|
|
size_t | insert (const std::string &str) |
| Insert text at the cursor. More...
|
|
EGT_NODISCARD size_t | max_length () const |
| Get the max length of allowed text. More...
|
|
void | max_length (size_t len) |
| Set the maximum allowed length of the text. More...
|
|
EGT_NODISCARD Size | min_size_hint () const override |
| Get a minimum size hint for the Widget. More...
|
|
TextBox & | operator= (const TextBox &)=delete |
|
TextBox & | operator= (TextBox &&)=default |
|
void | resize (const Size &size) override |
| Resize the widget. More...
|
|
EGT_NODISCARD std::string | selected_text () const |
| Get, or copy, the selected text. More...
|
|
void | selection (size_t pos, size_t length) |
| Set the selection of text. More...
|
|
void | selection_all () |
| Select all of the text. More...
|
|
void | selection_backward (size_t count=1) |
| Extend the selection to the left if the cursor is at its end, otherwise reduce the selection from the right. More...
|
|
void | selection_clear () |
| Clear any selection. More...
|
|
EGT_NODISCARD size_t | selection_cursor () |
| Get the position of the moving end of the selection, as opposed to its origin (the fixed end of the selection). More...
|
|
void | selection_delete () |
| Delete the selected text. More...
|
|
void | selection_forward (size_t count=1) |
| Extend the selection to the right if the cursor is at its beginning, otherwise reduce the selection from the left. More...
|
|
EGT_NODISCARD size_t | selection_length () const |
| Get the length of the selection. More...
|
|
void | selection_move (size_t count, bool save_column=true) |
| Move the selection cursor to count character(s): More...
|
|
EGT_NODISCARD size_t | selection_start () const |
| Get the start position of the selection. More...
|
|
void | serialize (Serializer &serializer) const override |
| Serialize the widget to the specified serializer. More...
|
|
virtual EGT_NODISCARD const std::string & | text () const |
| Get the text of the Label. More...
|
|
virtual void | text (const std::string &str) |
| Set the text. More...
|
|
void | text (const std::string &str) override |
| Set the text. More...
|
|
EGT_NODISCARD const TextFlags & | text_flags () const |
| Get a const ref of the flags. More...
|
|
void | text_flags (const TextFlags &text_flags) |
| Set the text flags. More...
|
|
EGT_NODISCARD Point | text_offset () const |
| Get the position offset of the drawn text as compared to the whole text. More...
|
|
void | text_offset (const Point &p) |
| Set the position offset of the drawn text as compared to the whole text. More...
|
|
| TextWidget (Serializer::Properties &props) noexcept |
|
| TextWidget (std::string text={}, const Rect &rect={}, const AlignFlags &text_align=AlignFlag::center) noexcept |
|
virtual EGT_NODISCARD size_t | len () const |
| Get the length of the text. More...
|
|
void | serialize (Serializer &serializer) const override |
| Serialize the widget to the specified serializer. More...
|
|
virtual EGT_NODISCARD const std::string & | text () const |
| Get the text of the Label. More...
|
|
EGT_NODISCARD AlignFlags | text_align () const |
| Get the text alignment within the Label. More...
|
|
void | text_align (const AlignFlags &align) |
| Set the text alignment within the Label. More...
|
|
| Widget (const Rect &rect={}, const Widget::Flags &flags={}) noexcept |
|
| Widget (const Widget &)=delete |
|
| Widget (Frame &parent, const Rect &rect={}, const Widget::Flags &flags={}) noexcept |
|
| Widget (Serializer::Properties &props) noexcept |
|
| Widget (Widget &&) noexcept=default |
|
| ~Widget () noexcept override |
|
EGT_NODISCARD bool | active () const |
| Get the active state. More...
|
|
void | active (bool value) |
| Set the active state. More...
|
|
AlignFlags & | align () |
| Get the alignment. More...
|
|
EGT_NODISCARD const AlignFlags & | align () const |
| Get the alignment. More...
|
|
void | align (const AlignFlags &a) |
| Align the widget. More...
|
|
EGT_NODISCARD float | alpha () const |
| Get the alpha property. More...
|
|
void | alpha (float alpha) |
| Set the alpha property. More...
|
|
EGT_NODISCARD bool | autoresize () const |
| Return the autoresize state of the widget. More...
|
|
void | autoresize (bool value) |
| Set the autoresize state. More...
|
|
EGT_NODISCARD DefaultDim | border () const |
| Get the border width. More...
|
|
void | border (DefaultDim border) |
| Set the border width. More...
|
|
EGT_NODISCARD Theme::BorderFlags | border_flags () const |
| Get the border flags. More...
|
|
void | border_flags (const Theme::BorderFlags &flags) |
| Set the border flags. More...
|
|
EGT_NODISCARD float | border_radius () const |
| Get the border radius. More...
|
|
void | border_radius (float radius) |
| Set the border radius. More...
|
|
EGT_NODISCARD const Rect & | box () const |
| Bounding box for the Widget. More...
|
|
void | box (const Rect &rect) |
| Change the bounding box of the widget. More...
|
|
bool | can_handle_event () const |
| Returns true if the widget is capable of handling an event. More...
|
|
EGT_NODISCARD Point | center () const |
| Get the center point of the widget's box(). More...
|
|
EGT_NODISCARD bool | checked () const |
| Get the boolean checked state of the a widget. More...
|
|
virtual void | checked (bool value) |
| Set the checked state of the widget. More...
|
|
EGT_NODISCARD bool | clip () const |
| Return the clip state of the widget. More...
|
|
EGT_NODISCARD const Pattern & | color (Palette::ColorId id) const |
| Get a Widget color. More...
|
|
void | color (Palette::ColorId id, const Pattern &color, Palette::GroupId group=Palette::GroupId::normal) |
| Add a color to the widget's instance palette. More...
|
|
EGT_NODISCARD const Pattern & | color (Palette::ColorId id, Palette::GroupId group) const |
| Get a Widget color. More...
|
|
virtual EGT_NODISCARD Rect | content_area () const |
| Return the area that content is allowed to be positioned into. More...
|
|
virtual void | damage () |
| Damage the box() of the widget and cause a redraw. More...
|
|
virtual void | damage (const Rect &rect) |
| Mark the specified rect as a damaged area of the widget. More...
|
|
virtual void | deserialize_children (const Deserializer &deserializer) |
| Deserialize the children of this widget. More...
|
|
void | detach () |
| Detach this widget from its parent. More...
|
|
void | disable () |
| Set the disabled state to true. More...
|
|
void | disable_toggle () |
| Toggle the disabled state. More...
|
|
EGT_NODISCARD bool | disabled () const |
| Return the disabled state of the widget. More...
|
|
void | disabled (bool value) |
| Set the disabled state. More...
|
|
DisplayPoint | display_origin () |
| Get the display origin of the Widget. More...
|
|
virtual Point | display_to_local (const DisplayPoint &p) |
| Convert a display point to a local point. More...
|
|
void | draw_box (Painter &painter, Palette::ColorId bg, Palette::ColorId border) const |
| Helper function to draw this widget's box using the appropriate theme. More...
|
|
void | draw_circle (Painter &painter, Palette::ColorId bg, Palette::ColorId border) const |
| Helper function to draw this widget's circle using the appropriate theme. More...
|
|
void | enable () |
| Set the disabled state to false. More...
|
|
Theme::FillFlags & | fill_flags () |
| Get a modifiable fill flags reference. More...
|
|
EGT_NODISCARD const Theme::FillFlags & | fill_flags () const |
| Get the fill flags. More...
|
|
void | fill_flags (const Theme::FillFlags &flags) |
| Set the fill flags. More...
|
|
EGT_NODISCARD bool | focus () const |
| Get the current focus state. More...
|
|
void | focus (bool value) |
| Set the focus state. More...
|
|
EGT_NODISCARD const Font & | font () const |
| Get the widget Font. More...
|
|
void | font (const Font &font) |
| Set the widget Font. More...
|
|
EGT_NODISCARD bool | frame () const |
| Return the frame state of the widget. More...
|
|
EGT_NODISCARD bool | grab_mouse () const |
| Return the grab_mouse state of the widget. More...
|
|
void | grab_mouse (bool value) |
| Set the grab_mouse state. More...
|
|
bool | has_font () const |
| Check whether the widget has a custom Font. More...
|
|
EGT_NODISCARD bool | has_palette () const |
| Check whether the widget has a custom palette. More...
|
|
EGT_NODISCARD DefaultDim | height () const |
| Height of the widget's box(). More...
|
|
void | height (DefaultDim h) |
| Change the height. More...
|
|
virtual void | hide () |
| Hide the Widget. More...
|
|
EGT_NODISCARD DefaultDim | horizontal_ratio () const |
| Get the horizontal ratio relative to parent. More...
|
|
void | horizontal_ratio (DefaultDim horizontal) |
| Set the horizontal ratio relative to parent. More...
|
|
EGT_NODISCARD bool | in_layout () const |
| Indicate if the Widget is computing the layout or not. More...
|
|
virtual void | layout () |
| Perform layout of the Widget. More...
|
|
DisplayPoint | local_to_display (const Point &p) |
| Convert a local point to a display point. More...
|
|
EGT_NODISCARD DefaultDim | margin () const |
| Get the margin width. More...
|
|
void | margin (DefaultDim margin) |
| Set the margin width. More...
|
|
void | min_size_hint (const Size &size) |
| Set the minimum size hint for the Widget. More...
|
|
EGT_NODISCARD size_t | moat () const |
| Get the sum of the margin(), padding(), and border() around the content of the widget. More...
|
|
virtual void | move (const Point &point) |
| Move the Widget to a new position. More...
|
|
void | move_to_center () |
| Move the widget to the center of its parent. More...
|
|
void | move_to_center (const Point &point) |
| Move the widget to the specified center point. More...
|
|
EGT_NODISCARD bool | no_layout () const |
| Return the no_layout state of the widget. More...
|
|
void | no_layout (bool value) |
| Set the no_layout state. More...
|
|
virtual void | on_screen_resized () |
| Called from ComposerScreen::resize(). More...
|
|
Widget & | operator= (const Widget &)=delete |
|
Widget & | operator= (Widget &&) noexcept=default |
|
EGT_NODISCARD DefaultDim | padding () const |
| Return the padding width. More...
|
|
void | padding (DefaultDim padding) |
| Set the padding width. More...
|
|
virtual void | paint (Painter &painter) |
| Paint the Widget using a Painter. More...
|
|
virtual void | paint_to_file (const std::string &filename={}) |
| Draw the widget to a file. More...
|
|
EGT_NODISCARD const Palette & | palette () const |
| Get the widget palette. More...
|
|
void | palette (const Palette &palette) |
| Set the widget instance Palette. More...
|
|
Widget * | parent () |
| Get a pointer to the parent Widget, or nullptr if none exists. More...
|
|
EGT_NODISCARD const Widget * | parent () const |
| Get a pointer to the parent Widget, or nullptr if none exists. More...
|
|
EGT_NODISCARD bool | plane_window () const |
| Return the plane_window state of the widget. More...
|
|
EGT_NODISCARD const Point & | point () const |
| Get the origin of the widget's box(). More...
|
|
virtual void | post_deserialize (Serializer::Properties &props) |
| Resume deserializing of the widget after its children have been deserialized. More...
|
|
void | ratio (DefaultDim horizontal, DefaultDim vertical) |
| Set the size ratio relative to parent. More...
|
|
void | ratio (DefaultDim ratio) |
| Set the size ratio relative to parent. More...
|
|
EGT_NODISCARD bool | readonly () const |
| Get the readonly state of the widget. More...
|
|
void | readonly (bool value) |
| Set the readonly state of the widget. More...
|
|
void | readonly_toggle () |
| Toggle the readonly state. More...
|
|
void | reset_font () |
| Reset the widget's Font. More...
|
|
void | reset_palette () |
| Clear the widget instance palette. More...
|
|
void | resize_by_ratio (DefaultDim hratio, DefaultDim vratio) |
| Scale the current size of the Widget given the ratio. More...
|
|
void | resize_by_ratio (DefaultDim ratio) |
| Scale the current size of the Widget given the ratio. More...
|
|
virtual void | scale (float hscale, float vscale) |
| Set the scale of the widget. More...
|
|
void | scale (float scale) |
| Set the scale of the widget. More...
|
|
virtual EGT_NODISCARD Screen * | screen () const |
| Get a pointer to the Screen instance, using using a parent as necessary. More...
|
|
virtual void | serialize_children (Serializer &serializer) const |
| Serialize the widget's children to the specified serializer. More...
|
|
virtual void | show () |
| Show the Widget. More...
|
|
EGT_NODISCARD const Size & | size () const |
| Get the size of the widget's box(). More...
|
|
EGT_NODISCARD const Theme & | theme () const |
| Get the Widget Theme. More...
|
|
EGT_NODISCARD Point | to_parent (const Point &r) const |
| Convert a point with a local origin to a parent origin. More...
|
|
EGT_NODISCARD Rect | to_parent (const Rect &r) const |
| Convert a point in a rect a local origin to a parent origin. More...
|
|
virtual EGT_NODISCARD std::string | type () const |
| Returns a string representation of the type of this widget. More...
|
|
EGT_NODISCARD const Rect & | user_requested_box () const |
| Get the box corresponding to the user requested one, not the actual one. More...
|
|
EGT_NODISCARD DefaultDim | vertical_ratio () const |
| Get the vertical ratio relative to parent. More...
|
|
void | vertical_ratio (DefaultDim vertical) |
| Set the vertical ratio relative to parent. More...
|
|
EGT_NODISCARD bool | visible () const |
| Get the visible state of the widget. More...
|
|
void | visible (bool value) |
| Set the visible state. More...
|
|
void | visible_toggle () |
| Toggle the visibility state. More...
|
|
virtual void | walk (const WalkCallback &callback, int level=0) |
| Walk the Widget tree and call callback with each Widget. More...
|
|
EGT_NODISCARD WidgetId | widgetid () const |
| Get the unique id of the widget. More...
|
|
EGT_NODISCARD DefaultDim | width () const |
| Width of the widget's box(). More...
|
|
void | width (DefaultDim w) |
| Change the width. More...
|
|
EGT_NODISCARD DefaultDim | x () const |
| X coordinate of the widget's box(). More...
|
|
void | x (DefaultDim x) |
| Set the X coordinate of the box. More...
|
|
EGT_NODISCARD DefaultDim | xratio () const |
| Get the X position ratio relative to parent. More...
|
|
void | xratio (DefaultDim xratio) |
| Set the X position ratio relative to parent. More...
|
|
EGT_NODISCARD DefaultDim | y () const |
| Y coordinate of the widget's box(). More...
|
|
void | y (DefaultDim y) |
| Set the Y coordinate of the box. More...
|
|
EGT_NODISCARD DefaultDim | yratio () const |
| Get the Y position ratio relative to parent. More...
|
|
void | yratio (DefaultDim yratio) |
| Set the Y position ratio relative to parent. More...
|
|
virtual EGT_NODISCARD size_t | zorder () const |
| Get the zorder of the widget. More...
|
|
virtual void | zorder (size_t rank) |
| Set the zorder of the widget. More...
|
|
virtual void | zorder_bottom () |
| Move the widget to the bottom. More...
|
|
virtual void | zorder_down () |
| Move this widgets zorder down relative to other widgets with the same parent. More...
|
|
virtual void | zorder_top () |
| Move the widget to the top. More...
|
|
virtual void | zorder_up () |
| Move this widgets zorder up relative to other widgets with the same parent. More...
|
|
| Object () noexcept=default |
|
| Object (const Object &)=delete |
|
| Object (Object &&)=default |
|
virtual | ~Object () noexcept=default |
|
void | clear_handlers () |
| Clear all registered event handlers. More...
|
|
void | invoke_handlers (Event &event) |
| Invoke all handlers with the specified event. More...
|
|
void | invoke_handlers (EventId event) |
| Invoke all handlers with the specified EventId. More...
|
|
EGT_NODISCARD const std::string & | name () const |
| Get the name of the Object. More...
|
|
void | name (const std::string &name) |
| Set the name of the Object. More...
|
|
RegisterHandle | on_event (const EventCallback &handler, const FilterFlags &mask={}) |
| Add an event handler to be called when the widget generates an event. More...
|
|
Object & | operator= (const Object &)=delete |
|
Object & | operator= (Object &&)=default |
|
void | remove_handler (RegisterHandle handle) |
| Remove an event handler. More...
|
|
|
| TextBox (Serializer::Properties &props, bool is_derived) noexcept |
|
size_t | beginning_of_line () const |
| Get the position of the beginning of the current line. More...
|
|
size_t | beginning_of_line (size_t cursor_pos) const |
| Get the position of the beginning of the line at cursor_pos. More...
|
|
void | change_cursor (size_t pos, bool save_column=true) |
| Change the value of m_cursor_pos. More...
|
|
void | clear_selection (TextRects &rects) |
| Clear the TextRectFlag::selected flag from all TextRects in rects. More...
|
|
void | compute_layout (TextRects &rects) |
| Compute the text layout from the tokens contained in the TextRects. More...
|
|
void | consolidate (TextRects &rects) |
| Merge adjacent TextRect items, when possible. More...
|
|
cairo_t * | context () const |
| Get the cairo context to compute text extents, hence the text layout. More...
|
|
void | continue_show_cursor () |
| If the cursor is shown, keep is shown some more. More...
|
|
void | cursor_set (size_t pos, bool save_column) |
| Set the cursor position. More...
|
|
void | damage_component (Widget &component) |
| Damage a component. More...
|
|
void | damage_cursor () |
| Damage the cursor but only if visible. More...
|
|
void | damage_hslider () |
| Damage the horizontal slider. More...
|
|
void | damage_text (const Rect &rect) |
| Damage the text but only if visible. More...
|
|
void | damage_vslider () |
| Damage the vertical slider. More...
|
|
size_t | down () const |
| Get the position in the next line at the same column, if possible. More...
|
|
size_t | down (size_t cursor_pos) const |
| Get the position in the line after cursor_pos at the same column, if possible. More...
|
|
void | draw_sliders (Painter &painter, const Rect &rect) |
| Draw sliders. More...
|
|
void | draw_text (Painter &painter, const Rect &rect) |
| Draw the text based on the m_rects TextRects. More...
|
|
size_t | end_of_line () const |
| Get the position of the end of the current line. More...
|
|
size_t | end_of_line (size_t cursor_pos) const |
| Get the position of the end of the line at cursor_pos. More...
|
|
void | get_cursor_rect () |
| Update m_cursor_rect based on the current position of the cursor. More...
|
|
virtual void | handle_key (const Key &key) |
| Process key events. More...
|
|
void | hide_cursor () |
| Hide/disable the visibility of the cursor. More...
|
|
void | init_sliders () |
| Init sliders. More...
|
|
void | invalidate_text_rect () |
| Invalidate the cache used by text_rect() More...
|
|
void | move_hslider () |
| Move the horizontal slider, if needed, to track the cursor. More...
|
|
void | move_sliders () |
| Move sliders, if needed, to track the cursor. More...
|
|
void | move_vslider () |
| Move the vertical slider, if needed, to track the cursor. More...
|
|
size_t | point2pos (const Point &p) const |
| Convert point coordinates to position in text for cursor or selection. More...
|
|
void | prepare_text (TextRects &rects) |
| Tokenize and compute the layout of a text; fill TextRects accordingly. More...
|
|
void | refresh_text_area () |
| Compute the new text layout and cursor rectangle. More...
|
|
void | resize_sliders () |
| Resize the sliders whenever the widget size changes. More...
|
|
void | selection_damage () |
| Compute damage rectangles for selection updates. More...
|
|
void | set_selection (TextRects &rects) |
| Add the TextRectFlag::selected flag to TextRects based on the m_select_start and m_select_len values. More...
|
|
void | show_cursor () |
| Show/enable the visibility of the cursor. More...
|
|
void | tag_default_aligned_line (TextRects &prev, TextRects::iterator &prev_pos, TextRects &next, TextRects::iterator &next_pos) |
| Damage the merged rectangle of two text lines if they are not equal. More...
|
|
void | tag_left_aligned_line (TextRects &prev, TextRects::iterator &prev_pos, TextRects &next, TextRects::iterator &next_pos) |
| Damage the merge rectangle of two text lines, excluding their common prefix. More...
|
|
void | tag_line (TextRects &prev, TextRects::iterator &prev_pos, TextRects &next, TextRects::iterator &next_pos) |
| Damage the differences between two text lines, based on the text alignment. More...
|
|
void | tag_line_selection (const TextRects &prev, TextRects::const_iterator &prev_pos, const TextRects &next, TextRects::const_iterator &next_pos) |
| Damage the differences between two selected text lines. More...
|
|
void | tag_right_aligned_line (TextRects &prev, TextRects::iterator &prev_pos, TextRects &next, TextRects::iterator &next_pos) |
| Damage the merge rectangle of two text lines, excluding their common suffix. More...
|
|
void | tag_text (TextRects &prev, TextRects &next) |
| Damage the differences between two texts. More...
|
|
void | tag_text_selection (const TextRects &prev, const TextRects &next) |
| Damage the differences between two selected texts. More...
|
|
EGT_NODISCARD Rect | text_area () const |
| Return the rectangle boundaries where the text can be drawn. More...
|
|
EGT_NODISCARD Rect | text_boundaries () const |
| Get the rectangle of the text boundaries. More...
|
|
EGT_NODISCARD Rect | text_rect () const |
| Get the rectangle of a text. More...
|
|
EGT_NODISCARD Size | text_size () const |
|
EGT_NODISCARD Size | text_size (const std::string &text) const |
| Get the size of a text. More...
|
|
void | tokenize (TextRects &rects) |
| Split the text into atomic tokens that fill the TextRects parameter. More...
|
|
size_t | up () const |
| Get the position in the previous line at the same column, if possible. More...
|
|
size_t | up (size_t cursor_pos) const |
| Get the position in the line befor cursor_pos at the same column, if possible. More...
|
|
void | update_hslider () |
| Update the horizontal slider. More...
|
|
void | update_sliders () |
| Update the horizontal and vertical sliders as needed. More...
|
|
void | update_vslider () |
| Update the vertical slider. More...
|
|
bool | validate_input (const std::string &str) |
| Validate the input against the validator pattern. More...
|
|
EGT_NODISCARD size_t | width_to_len (const std::string &str) const |
| Given text, return the number of UTF8 characters that will fit on a single line inside of the widget. More...
|
|
| TextWidget (Serializer::Properties &props, bool is_derived) noexcept |
|
EGT_NODISCARD Size | text_size (const std::string &text) const |
| Get the size of the text. More...
|
|
| Widget (Serializer::Properties &props, bool is_derived) noexcept |
|
void | add_component (Widget &widget) |
| Add a component. More...
|
|
void | add_damage (const Rect &rect) |
| Add damage to the damage array. More...
|
|
virtual void | begin_draw () |
| Cause the widget to draw itself and all of its children. More...
|
|
void | begin_draw (Widget *parent) |
| Call the begin_draw() method of the parent. More...
|
|
EGT_NODISCARD detail::Range< SubordinatesArray > & | children () |
| Return the array of child widgets. More...
|
|
EGT_NODISCARD const detail::Range< SubordinatesArray > | children () const |
| Return the array of child widgets. More...
|
|
EGT_NODISCARD bool | component () const |
| Get the component status. More...
|
|
void | component (bool value) |
| Set the component flag. More...
|
|
virtual void | damage_from_subordinate (const Rect &rect) |
| Special variation of damage() that is to be called explicitly by subordinate widgets. More...
|
|
void | deserialize_leaf (Serializer::Properties &props) |
| Deserialize widget properties that require to call overridden methods. More...
|
|
Widget * | find_screen () |
| Starting from this Widget, find the Widget that has a Screen. More...
|
|
EGT_NODISCARD const Widget * | find_screen () const |
| Starting from this Widget, find the Widget that has a Screen. More...
|
|
Widget::Flags & | flags () |
| Get a modifiable ref of the flags. More...
|
|
EGT_NODISCARD const Widget::Flags & | flags () const |
| Get a const ref of the flags. More...
|
|
virtual EGT_NODISCARD bool | has_screen () const |
| Does this Widget have a screen? More...
|
|
EGT_NODISCARD Rect | local_box () const |
| Get the local box which is the same size as box(), but with the origin zeroed. More...
|
|
EGT_NODISCARD bool | parent_in_layout () |
| Indicate if our parent is computing the layout. More...
|
|
void | parent_layout () |
| Call our parent to do a layout. More...
|
|
void | remove_component (Widget *widget) |
| Remove a component. More...
|
|
virtual void | set_parent (Widget *parent) |
| Set this widget's parent. More...
|
|
void | special_child_draw (Painter &painter, Widget *widget) |
| Special draw function that can be invoked when drawing each child. More...
|
|
EGT_NODISCARD ChildDrawCallback | special_child_draw_callback () const |
| Get the special child draw callback. More...
|
|
void | special_child_draw_callback (ChildDrawCallback func) |
| Set the special child draw callback. More...
|
|
EGT_NODISCARD ChildDrawCallback | special_child_draw_callback (Widget *parent) const |
| Get the child draw callback of the parent. More...
|
|
virtual Point | to_panel (const Point &p) |
| Convert a local point to the coordinate system of the current panel. More...
|
|
virtual EGT_NODISCARD Point | to_subordinate (const Point &p) const |
| Convert a point with an origin of the current widget to subordinate origin. More...
|
|
EGT_NODISCARD Rect | to_subordinate (Rect rect) const |
|
virtual EGT_NODISCARD bool | top_level () const |
| Is this widget a top level widget? More...
|
|
size_t | zorder (const Widget *widget) const |
| Get the zorder of the widget. More...
|
|
void | zorder (const Widget *widget, size_t rank) |
| Set the zorder of the widget. More...
|
|
void | zorder_bottom (const Widget *widget) |
| Move the specified widget zorder to the bottom of the current list of widgets with the same parent. More...
|
|
void | zorder_down (const Widget *widget) |
| Move the specified widget zorder down relative to other widgets with the same parent. More...
|
|
void | zorder_top (const Widget *widget) |
| Move the specified widget zorder to the top of the current list of widgets with the same parent. More...
|
|
void | zorder_up (const Widget *widget) |
| Move the specified widget zorder up relative to other widgets with the same parent. More...
|
|