|
libt3widget
|
Abstract base class for all items displayed on screen. More...
Public Types | |
| enum | focus_t { FOCUS_OUT, FOCUS_SET, FOCUS_IN_FWD, FOCUS_IN_BCK, FOCUS_REVERT } |
Public Member Functions | |
| virtual void | force_redraw (void)=0 |
| Request that this window_component_t be completely redrawn. | |
| virtual t3_window_t * | get_base_window (void) |
| Retrieve the t3_window_t for this window_component_t. | |
| virtual void | hide (void)=0 |
| Hide the window_component_t. | |
| virtual bool | process_key (key_t key)=0 |
| Handle a key press by the user. | |
| virtual void | set_focus (focus_t focus)=0 |
| Set whether this window_component_t has the input focus. | |
| virtual void | set_position (optint top, optint left)=0 |
| Move the window_component_t to a specified position. | |
| virtual bool | set_size (optint height, optint width)=0 |
| Set the size of this window_component_t. | |
| virtual void | show (void)=0 |
| Display the window_component_t. | |
| virtual void | update_contents (void)=0 |
| Update the contents of the window. | |
| window_component_t (void) | |
| Base constructor. | |
| virtual | ~window_component_t (void) |
| Base destructor. | |
Protected Attributes | |
| cleanup_t3_window_ptr | window |
| The t3_window_t used for presenting this item on screen (see libt3window). | |
Abstract base class for all items displayed on screen.
| t3_widget::window_component_t::window_component_t | ( | void | ) |
Base constructor.
|
virtual |
Base destructor.
|
pure virtual |
Request that this window_component_t be completely redrawn.
|
virtual |
Retrieve the t3_window_t for this window_component_t.
The returned pointer should be used only for setting anchor positions of other window_component_t's and similar operations.
|
pure virtual |
Hide the window_component_t.
|
pure virtual |
Handle a key press by the user.
|
pure virtual |
Set whether this window_component_t has the input focus.
Note that this merely notifies the window_component_t that it should change it's appearance to indicate the user that this window_component_t has the input focus. Which window_component_t actually receives the input events is handled outside of the window_component_t.
Move the window_component_t to a specified position.
Note that the position is relative to the anchor point.
Set the size of this window_component_t.
| height | The new height of the window_component_t in cells, or None if it should remain unchanged. |
| width | The new width of the window_component_t in cells, or None if it should remain unchanged. |
|
pure virtual |
Display the window_component_t.
|
pure virtual |
Update the contents of the window.
|
protected |
The t3_window_t used for presenting this item on screen (see libt3window).
1.8.1.2