#include <vgui_composite_tableau.h>
Inheritance diagram for vgui_composite_tableau:

The vgui_composite_tableau class can have any number of children, indexed from 0 upwards. The draw action of vgui_composite_tableau is to draw each of its children, in order, into the current context. Events reaching the vgui_composite_tableau are passed on to each child in turn, till it is handled, so that child 0, the first added, is the "top" tableau.
The exceptions to this rule are : [a] key presses '0'-'9', which toggle the activeness of the children and [b] the DRAW, DRAW_OVERLAY events which are sent to all children.
Definition at line 43 of file vgui_composite_tableau.h.
Public Member Functions | |
| vgui_composite_tableau () | |
| Constructor - don't use this, use vgui_composite_tableau_new. | |
| vgui_composite_tableau (vgui_tableau_sptr const &child0, vgui_tableau_sptr const &child1) | |
| Constructor - don't use this, use vgui_composite_tableau_new. | |
| vgui_composite_tableau (vgui_tableau_sptr const &child0, vgui_tableau_sptr const &child1, vgui_tableau_sptr const &child2) | |
| Constructor - don't use this, use vgui_composite_tableau_new. | |
| vgui_composite_tableau (vcl_vector< vgui_tableau_sptr > const &children) | |
| Constructor - don't use this, use vgui_composite_tableau_new. | |
| virtual bool | handle (const vgui_event &) |
| Handle all events sent to this tableau. | |
| virtual bool | help () |
| Prints info about this tableau - called when '?'is pressed. | |
| vcl_string | type_name () const |
| Returns the type of this tableau ('vgui_composite_tableau'). | |
| vcl_string | file_name () const |
| There is no obvious filename, so this just returns the type. | |
| vcl_string | pretty_name () const |
| Returns a nice version of the name, including info on the children. | |
| virtual void | notify () const |
| Calls notify for the observers. | |
| void | add (vgui_tableau_sptr const &t) |
| Add a tableau to the list of child tableaux. | |
| void | remove (vgui_tableau_sptr const &) |
| Remove a tableau from the list of child tableaux. | |
| void | clear () |
| Clear the list of child tableaux. | |
| bool | toggle (int) |
| Toggle the child tableau in the given position between active/inactive. | |
| bool | is_active (int) |
| Returns true if the child tableau in the given position is active. | |
| void | set_enable_key_bindings (bool on) |
| Enable (if true) or disable (if false) key bindings. | |
| virtual vcl_string | name () const |
| Return the name of the tableau. | |
| void | get_parents (vcl_vector< vgui_tableau_sptr > *out) const |
| Get the parent tableaux for this tableau. | |
| void | get_children (vcl_vector< vgui_tableau_sptr > *out) const |
| Get the child tableaux for this tableau. | |
| vgui_tableau_sptr | get_child (unsigned i) const |
| Get the ith child or return 0. | |
| virtual bool | notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child) |
| Called whenever a child of this tableau is about to be forcibly replaced. | |
| virtual void | add_popup (vgui_menu &) |
| Add the given menu to the popup menu for the tableau. | |
| virtual void | get_popup (vgui_popup_params const &, vgui_menu &) |
| Get the default popup menu for the tableau. | |
| virtual void | post_message (char const *, void const *) |
| Post a message event. | |
| virtual void | post_redraw () |
| Post a draw event. | |
| virtual void | post_overlay_redraw () |
| Post a overlay-redraw event. | |
| virtual void | post_idle_request () |
| Post an idle request event. | |
| virtual bool | draw () |
| Called by default handle when it receives a draw event. | |
| virtual bool | mouse_down (int x, int y, vgui_button, vgui_modifier) |
| Called by default handle when it receives a mouse down event. | |
| virtual bool | mouse_up (int x, int y, vgui_button, vgui_modifier) |
| Called by default handle when it receives a mouse up event. | |
| virtual bool | motion (int x, int y) |
| Called by handle when it receives a mouse motion event. | |
| virtual bool | key_press (int x, int y, vgui_key, vgui_modifier) |
| Called by default handle when it receives a key-press event. | |
| virtual bool | idle () |
| Called when the application is otherwise idle. | |
| void | ref () const |
| Increase the reference count by one (for smart pointers). | |
| void | unref () const |
| Decrease the reference count by one (for smart pointers). | |
Static Public Member Functions | |
| static void | get_all (vcl_vector< vgui_tableau_sptr > *out) |
| Push all tableaux onto the given vector. | |
| static bool | exists (vgui_tableau_sptr const &) |
| Returns true if the given address points to a valid tableau. | |
Public Attributes | |
| vgui_observable | observers |
| Conceptually, this is a list on which observers can put themselves. | |
| vgui_event_condition | c_enable_key_bindings |
| The event which occurs to toggle enable/disable key bindings. | |
Protected Member Functions | |
| virtual | ~vgui_composite_tableau () |
| Destructor - called by vgui_composite_tableau_sptr. | |
| bool | get_bounding_box (float low[3], float high[3]) const |
| Returns a bounding box large enough to contain all child bounding boxes. | |
| bool | add_child (vgui_tableau_sptr const &t) |
| Add to list of child tableaux. | |
| bool | remove_child (vgui_tableau_sptr const &) |
| Remove given tableau from list of child tableaux. | |
| bool | index_ok (int) |
| Returns true if the given integer could be an index to the child tableaux. | |
Protected Attributes | |
| vcl_vector< vgui_parent_child_link > | children |
| List of child tableaux. | |
| vcl_vector< bool > | active |
| Whether each child is active or not (ie. using events). | |
| bool | enable_key_bindings |
|
|
Constructor - don't use this, use vgui_composite_tableau_new. Creates an empty composite tableau. Definition at line 39 of file vgui_composite_tableau.cxx. |
|
||||||||||||
|
Constructor - don't use this, use vgui_composite_tableau_new. Creates a composite with two child tableaux. Definition at line 48 of file vgui_composite_tableau.cxx. |
|
||||||||||||||||
|
Constructor - don't use this, use vgui_composite_tableau_new. Creates a composite with three child tableaux. Definition at line 60 of file vgui_composite_tableau.cxx. |
|
|
Constructor - don't use this, use vgui_composite_tableau_new. Takes a vector of child tableaux. Definition at line 74 of file vgui_composite_tableau.cxx. |
|
|
Destructor - called by vgui_composite_tableau_sptr.
Definition at line 118 of file vgui_composite_tableau.h. |
|
|
Add a tableau to the list of child tableaux. Same as add_child(). Definition at line 93 of file vgui_composite_tableau.h. |
|
|
Add to list of child tableaux. virtual Reimplemented from vgui_tableau. Definition at line 192 of file vgui_composite_tableau.cxx. |
|
|
Add the given menu to the popup menu for the tableau. This method is for tableaux to implement if they want to _add_ some items to the popup menu. They can assign to or clear 'menu', but that is not recommended as it would remove what other tableaux put there. The recommended usage is to .add() items or to .include() another menu. ** This is an interface method. it abstracts a behaviour. ** Reimplemented in vgui_active_tableau, vgui_clear_tableau, and vgui_satellite_tableau_t< object, data >. Definition at line 315 of file vgui_tableau.cxx. |
|
|
Clear the list of child tableaux.
Definition at line 209 of file vgui_composite_tableau.cxx. |
|
|
Called by default handle when it receives a draw event.
Reimplemented in vgui_function_tableau. Definition at line 175 of file vgui_tableau.cxx. |
|
|
Returns true if the given address points to a valid tableau.
Definition at line 384 of file vgui_tableau.cxx. |
|
|
There is no obvious filename, so this just returns the type.
Reimplemented from vgui_tableau. Definition at line 80 of file vgui_composite_tableau.h. |
|
|
Push all tableaux onto the given vector.
Definition at line 375 of file vgui_tableau.cxx. |
|
||||||||||||
|
Returns a bounding box large enough to contain all child bounding boxes.
Reimplemented from vgui_tableau. Definition at line 164 of file vgui_composite_tableau.cxx. |
|
|
Get the ith child or return 0.
Definition at line 273 of file vgui_tableau.cxx. |
|
|
Get the child tableaux for this tableau.
Definition at line 266 of file vgui_tableau.cxx. |
|
|
Get the parent tableaux for this tableau.
Definition at line 259 of file vgui_tableau.cxx. |
|
||||||||||||
|
Get the default popup menu for the tableau. If recurse is, true, recursively add the popup menus for children and children's children etc. ** this is a mixin method. it does some work for you. ** Reimplemented in vgui_deck_tableau, vgui_image_tableau, vgui_poly_tableau, vgui_shell_tableau, vgui_tview_launcher_tableau, and vgui_tview_tableau. Definition at line 326 of file vgui_tableau.cxx. |
|
|
Handle all events sent to this tableau. All events (except key-presses '0'-'9' and draw events) are passed to each child until the event is handled. Key presses '0'-'9' toggle the activeness of the children and draw events are sent to all children. Key-press '?' prints info on this file, before being sent to the children. Reimplemented from vgui_tableau. Reimplemented in vgui_shell_tableau. Definition at line 97 of file vgui_composite_tableau.cxx. |
|
|
Prints info about this tableau - called when '?'is pressed.
Reimplemented from vgui_tableau. Definition at line 27 of file vgui_composite_tableau.cxx. |
|
|
Called when the application is otherwise idle. Override if you want to do idle processing. Return false once your idle processing is complete, or if you have no need for more idle processing. Return true if you need more idle processing time. Definition at line 184 of file vgui_tableau.cxx. |
|
|
Returns true if the given integer could be an index to the child tableaux.
Definition at line 234 of file vgui_composite_tableau.cxx. |
|
|
Returns true if the child tableau in the given position is active.
Definition at line 251 of file vgui_composite_tableau.cxx. |
|
||||||||||||||||||||
|
Called by default handle when it receives a key-press event.
Reimplemented in vgui_deck_tableau, vgui_function_tableau, vgui_listmanager2D_tableau, vgui_viewer2D_tableau, and vgui_viewer3D_tableau. Definition at line 155 of file vgui_tableau.cxx. |
|
||||||||||||
|
Called by handle when it receives a mouse motion event.
Reimplemented in vgui_displaylist2D_tableau, vgui_function_tableau, and vgui_listmanager2D_tableau. Definition at line 145 of file vgui_tableau.cxx. |
|
||||||||||||||||||||
|
Called by default handle when it receives a mouse down event.
Reimplemented in vgui_displaylist2D_tableau, vgui_displaylist3D_tableau, vgui_function_tableau, vgui_listmanager2D_tableau, vgui_viewer2D_tableau, and vgui_viewer3D_tableau. Definition at line 125 of file vgui_tableau.cxx. |
|
||||||||||||||||||||
|
Called by default handle when it receives a mouse up event.
Reimplemented in vgui_function_tableau, vgui_viewer2D_tableau, and vgui_viewer3D_tableau. Definition at line 135 of file vgui_tableau.cxx. |
|
|
Return the name of the tableau.
Reimplemented in vgui_easy2D_tableau. Definition at line 89 of file vgui_tableau.h. |
|
|
Calls notify for the observers.
Definition at line 157 of file vgui_composite_tableau.cxx. |
|
||||||||||||
|
Called whenever a child of this tableau is about to be forcibly replaced. This method is called when some part of the program (typically the parent_child_link mechanism) is about to forcibly replace a child of this tableau. The canonical reason to override this is in order to invalidate caches. Definition at line 301 of file vgui_tableau.cxx. |
|
|
Post an idle request event. The fact that this is virtual does not imply that you should go and override it. Posting an idle event request means that your tableau has some idle processing that it'd like to do. This means that your tableau will continue to receive vgui_IDLE events until the event handler returns false (i.e. all idle processing is complete). The idle event handler should return false when it has no idle processing, or has completed its idle processing. It may return true if has only partially completed its idle processing; in this case, it will receive more idle event to allow it to complete processing. Reimplemented in vgui_adaptor_tableau. Definition at line 234 of file vgui_tableau.cxx. |
|
||||||||||||
|
Post a message event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 204 of file vgui_tableau.cxx. |
|
|
Post a overlay-redraw event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 224 of file vgui_tableau.cxx. |
|
|
Post a draw event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 214 of file vgui_tableau.cxx. |
|
|
Returns a nice version of the name, including info on the children.
Reimplemented from vgui_tableau. Definition at line 84 of file vgui_composite_tableau.cxx. |
|
|
Increase the reference count by one (for smart pointers). "const" is for convenience, it is cast away internally. Definition at line 78 of file vgui_tableau.cxx. |
|
|
Remove a tableau from the list of child tableaux.
Definition at line 202 of file vgui_composite_tableau.cxx. |
|
|
Remove given tableau from list of child tableaux.
Reimplemented from vgui_tableau. Definition at line 218 of file vgui_composite_tableau.cxx. |
|
|
Enable (if true) or disable (if false) key bindings. If key bindings is enabled then key presses '0'-'9' will be used by this tableau to toggle the activeness of child tableaux. Reimplemented in vgui_shell_tableau. Definition at line 110 of file vgui_composite_tableau.h. |
|
|
Toggle the child tableau in the given position between active/inactive.
Definition at line 241 of file vgui_composite_tableau.cxx. |
|
|
Returns the type of this tableau ('vgui_composite_tableau').
Reimplemented from vgui_tableau. Reimplemented in vgui_shell_tableau. Definition at line 77 of file vgui_composite_tableau.h. |
|
|
Decrease the reference count by one (for smart pointers). "const" is for convenience, it is cast away internally. If the reference count reaches zero then delete the object. Definition at line 86 of file vgui_tableau.cxx. |
|
|
Whether each child is active or not (ie. using events).
Definition at line 139 of file vgui_composite_tableau.h. |
|
|
The event which occurs to toggle enable/disable key bindings. Default is Alt-C enables / disables key bindings Definition at line 114 of file vgui_composite_tableau.h. |
|
|
List of child tableaux.
Definition at line 136 of file vgui_composite_tableau.h. |
|
|
Reimplemented in vgui_shell_tableau. Definition at line 141 of file vgui_composite_tableau.h. |
|
|
Conceptually, this is a list on which observers can put themselves.
Definition at line 89 of file vgui_composite_tableau.h. |
1.4.4