libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
List of all members | Public Member Functions | Protected Member Functions
t3_widget::container_t Class Referenceabstract

Base class for window_component_t's that are the parents of other window_component_t's. More...

Inheritance diagram for t3_widget::container_t:
t3_widget::window_component_t t3_widget::dialog_base_t t3_widget::edit_window_t t3_widget::file_pane_t t3_widget::frame_t t3_widget::list_pane_t t3_widget::multi_widget_t t3_widget::split_t t3_widget::text_window_t t3_widget::widget_container_t t3_widget::widget_group_t

Public Member Functions

virtual bool is_child (window_component_t *component)=0
 Determine whether a window_compnent_t is a child of the container_t. More...
 
virtual void set_child_focus (window_component_t *target)=0
 Set the focus to a specific window component. More...
 

Protected Member Functions

virtual bool set_widget_parent (window_component_t *widget)
 Make widget a child window of this container_t, by setting its parent window. More...
 
virtual void unset_widget_parent (window_component_t *widget)
 Unset the parent window for a widget. More...
 
- Protected Member Functions inherited from t3_widget::window_component_t
virtual void force_redraw (void)=0
 Request that this window_component_t be completely redrawn. More...
 
virtual t3_window_t * get_base_window (void)
 Retrieve the t3_window_t for this window_component_t. More...
 
virtual void hide (void)=0
 Hide the window_component_t. More...
 
virtual bool process_key (key_t key)=0
 Handle a key press by the user. More...
 
virtual void set_focus (focus_t focus)=0
 Set whether this window_component_t has the input focus. More...
 
virtual void set_position (optint top, optint left)=0
 Move the window_component_t to a specified position. More...
 
virtual bool set_size (optint height, optint width)=0
 Set the size of this window_component_t. More...
 
virtual void show (void)=0
 Display the window_component_t. More...
 
virtual void update_contents (void)=0
 Update the contents of the window. More...
 
 window_component_t (void)
 Base constructor. More...
 
virtual ~window_component_t (void)
 Base destructor. More...
 

Additional Inherited Members

- Protected Types inherited from t3_widget::window_component_t
enum  focus_t {
  FOCUS_OUT, FOCUS_SET, FOCUS_IN_FWD, FOCUS_IN_BCK,
  FOCUS_REVERT
}
 
- Protected Attributes inherited from t3_widget::window_component_t
cleanup_t3_window_ptr window
 The t3_window_t used for presenting this item on screen (see libt3window). More...
 

Detailed Description

Base class for window_component_t's that are the parents of other window_component_t's.

Member Function Documentation

virtual bool t3_widget::container_t::is_child ( window_component_t component)
pure virtual
virtual void t3_widget::container_t::set_child_focus ( window_component_t target)
pure virtual
bool t3_widget::container_t::set_widget_parent ( window_component_t widget)
protectedvirtual

Make widget a child window of this container_t, by setting its parent window.

Reimplemented in t3_widget::list_pane_t.

void t3_widget::container_t::unset_widget_parent ( window_component_t widget)
protectedvirtual

Unset the parent window for a widget.