#include <Component.h>
Inheritance diagram for wkgl::Component:

Public Methods | |
| Component () | |
| Defualt Constructor. | |
| virtual void | registerComponent (HWND *hwnd, Component *com) |
| Allows this component to recieve top level events. | |
| virtual void | registerChild (HWND *hwnd, Component *com) |
| Allows this component to propagate an event to the given child. | |
| virtual LRESULT | fireChildEvents (UINT message, WPARAM wParam, LPARAM lParam) |
| Propagates the events to the appropriate child/children. | |
| virtual Component * | getParent () |
| Returns a pointer to the parent component. | |
| virtual void | setParent (Component *p) |
| Sets the components parent. | |
| virtual HINSTANCE | getInstance () |
| Returns the instance of the application. | |
| virtual HWND | getHwnd () |
| Returns the window handle. | |
| virtual void | setHwnd (HWND h) |
| Sets the window handle. | |
| virtual void | addCallBack (COMCALLBACK callback) |
| Adds a callback function. | |
| virtual void | addCallBack (CallBack *callback) |
| Adds a callback method. | |
| virtual LRESULT | fireEvents (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| Propagates events to all the callback functions. | |
Static Public Methods | |
| UINT | getWndProc () |
| Returns the the address of GlobalProc(). | |
Protected Attributes | |
| Component * | parent |
| The parent of the component. | |
| HINSTANCE | hInstance |
| The instance of this application. | |
| HWND | hwnd |
| The handle to the component. | |
| std::vector< CHILDCOMPONENT > | clisteners |
| A list of the child components that events are to be passed to. | |
| std::vector< COMCALLBACK > | comlisteners |
| Stores the callbacks for this component that use functions. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks. | |
| std::vector< CallBack * > | classlisteners |
| Stores the callbacks for this component that come from classes. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks. | |
Friends | |
| LRESULT CALLBACK | globalProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| Is used to process all the callback functions. | |
|
|
Defualt Constructor.
|
|
|
Adds a callback method. The callback must be a method from a class that inheirits from CallBack.
|
|
|
Adds a callback function.
|
|
||||||||||||||||
|
Propagates the events to the appropriate child/children.
Reimplemented in wkgl::Dialog. |
|
||||||||||||||||||||
|
Propagates events to all the callback functions.
Reimplemented in wkgl::Dialog. |
|
|
Returns the window handle.
|
|
|
Returns the instance of the application.
|
|
|
Returns a pointer to the parent component.
|
|
|
Returns the the address of GlobalProc().
|
|
||||||||||||
|
Allows this component to propagate an event to the given child.
|
|
||||||||||||
|
Allows this component to recieve top level events.
|
|
|
Sets the window handle.
|
|
|
Sets the components parent.
|
|
||||||||||||||||||||
|
Is used to process all the callback functions.
|
|
|
Stores the callbacks for this component that come from classes. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks.
|
|
|
A list of the child components that events are to be passed to. Stores the children who wish to recieve events.
|
|
|
Stores the callbacks for this component that use functions. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks.
|
|
|
The instance of this application.
|
|
|
The handle to the component.
|
|
|
The parent of the component.
Reimplemented in wkgl::Control. |
1.2.18