|
| Button (ButtonType type=PushButton) |
|
void | enable_internal_padding (bool flag) |
| Sets whether an internal padding should be added to the button. More...
|
|
void | set_text (const std::string &text) |
| Sets the text to be shown in the button. More...
|
|
void | set_icon (const std::string &icon) |
| Sets the path to the icon to be shown in the button, if its a ToolButton. More...
|
|
boost::signals2::signal< void()> * | signal_clicked () |
| Sets callback for when the button is clicked. More...
|
|
virtual void | callback () |
|
bool | is_updating () |
|
virtual | ~View () |
|
virtual void | set_managed () |
|
View * | find_subview (const std::string &name) |
|
bool | contains_subview (View *subview) |
|
void | clear_subviews () |
|
void | set_name (const std::string &name) |
|
void | set_tooltip (const std::string &text) |
|
void | set_font (const std::string &fontDescription) |
|
std::string | get_name () |
|
void | set_parent (View *parent) |
|
View * | get_parent () const |
|
Form * | get_parent_form () const |
|
virtual int | get_width () |
|
virtual int | get_height () |
|
virtual int | get_preferred_width () |
|
virtual int | get_preferred_height () |
|
virtual int | get_x () |
|
virtual int | get_y () |
|
virtual void | set_position (int x, int y) |
|
virtual void | set_size (int width, int height) |
|
std::pair< int, int > | client_to_screen (int x, int y) |
|
std::pair< int, int > | screen_to_client (int x, int y) |
|
void | show (bool flag=true) |
| Show/hide view. More...
|
|
bool | is_shown () |
| Check whenever view is visible. More...
|
|
bool | is_fully_visible () |
| Returns true if the view and all it's parents are visible. More...
|
|
void | set_enabled (bool flag) |
| Enable view so user can interact with it. More...
|
|
bool | is_enabled () |
| Check whenever view is enabled. More...
|
|
void | set_needs_repaint () |
| Mark view to be repainted with next iteration. More...
|
|
virtual void | relayout () |
|
virtual void | set_layout_dirty (bool value) |
|
virtual bool | is_layout_dirty () |
|
void | suspend_layout () |
| Freeze gui updates for this view. More...
|
|
void | resume_layout () |
| Resume gui updates for this view. More...
|
|
void | set_front_color (const std::string &color) |
| Set view foreground color. More...
|
|
std::string | get_front_color () |
| Get view foreground color. More...
|
|
void | set_back_color (const std::string &color) |
| Set view background color. More...
|
|
std::string | get_back_color () |
| Get view background color. More...
|
|
virtual std::string | get_string_value () |
| Get string value from the view if it's holding some. More...
|
|
virtual int | get_int_value () |
| Get int value from the view if it's holding some. More...
|
|
virtual bool | get_bool_value () |
| Get bool value from the view if it's holding some. More...
|
|
virtual void | flush_events () |
| Iterate over all events that were queuedand flush them, results in faster gui updates or faster signal calls. More...
|
|
virtual void | focus () |
| Causes view to have keyboard focus. More...
|
|
void | register_drop_formats (DropDelegate *target, const std::vector< std::string > &drop_formats) |
| Enables or disables the ability to accept a drag/drop operation (internal or from outside) based on drop_formats. More...
|
|
DragOperation | do_drag_drop (DragDetails details, const std::string &text) |
| Starts an internal drag/drop operation with the given text/data and blocks until that op is finished. More...
|
|
DragOperation | do_drag_drop (DragDetails details, void *data, const std::string &format) |
|
void | focus_changed () |
|
virtual void | resize () |
| Triggered by the platform layers when the size of the view changes. More...
|
|
boost::signals2::signal< void()> * | signal_resized () |
|
A clickable button control.
Definition at line 51 of file button.h.