|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <lwpp/panel.h>
Public Member Functions | |
| PanelControl (LWControlID ctl=0) | |
| PanelControl (const PanelControl &ctl) | |
| void | Draw (DrMode mode=DR_RENDER) |
| void | Erase () |
| Erases the control from the panel. | |
| template<typename T > | |
| void | Get (T &val, cTag tag=CTL_VALUE) |
| bool | GetBool (cTag tag=CTL_VALUE) |
| LWControl * | getControl () |
| Returns LWControl managed by this PanelControl. | |
| double | GetFloat () |
| Gets a double value of a control. | |
| LWControlID | getID () const |
| Returns the ID of the LWControl managed by this PanelControl. | |
| int | GetInt (cTag tag=CTL_VALUE) |
| void * | GetPointer (cTag tag=CTL_USERDATA) |
| Gets an pointer value of a control. | |
| void * | GetUserData () |
| Gets the pointer to your data for this control. | |
| void | GetVec (int &a, int &b, int &c) |
| void | GetVec (int v[]) |
| void | Ghost (bool render=true) |
| void | initListBox () |
| void | initMultiListBox () |
| bool | isGhosted () const |
| bool | isValid () const |
| Returns true if is a valid control. | |
| void | LeftAlign (PanelControl &ref, int nudge=0) |
| void | Move (int x, int y) |
| void | MoveBelow (PanelControl &ref, int space=0) |
| void | MoveBelowTab (PanelControl &ref) |
| void | MoveLeftOf (PanelControl &ref, int space=0) |
| void | MoveRightOf (PanelControl &ref, int space=0) |
| void | MoveX (int x) |
| void | MoveY (int y) |
| bool | operator< (const PanelControl ctl) const |
| PanelControl & | operator= (const PanelControl &from) |
| void | operator= (LWControlID ctl) |
| Asignment operator. | |
| void | operator= (LWControl *ctl) |
| Asignment operator. | |
| bool | operator== (const LWControlID ctl) |
| Equal operator. | |
| bool | operator== (const PanelControl ctl) |
| Equal operator. | |
| bool | operator== (const LWControl *ctl) |
| Equal operator. | |
| LWPanelFuncs * | PanelFuncs () |
| Returns a pointer to the panel functions. | |
| LWPanelID | PanelID () |
| Returns the LWPanelID of the panel. | |
| int | RangeMax () |
| void | RangeMax (int m) |
| int | RangeMin () |
| Set the minimum range. | |
| void | RangeMin (int m) |
| void | Redraw () |
| Redraws the control in the panel. | |
| void | Refresh () |
| void | Render () |
| Renders the control in the panel. | |
| void | RightAlign (PanelControl &ref, int nudge=0) |
| template<typename T > | |
| void | Set (T val, cTag tag=CTL_VALUE) |
| void | SetControl (LWControlID ctl) |
| template<typename T > | |
| void | SetDrawCallback () |
| template<typename T > | |
| void | SetEventCallback () |
| void | setHeight (int h) |
| void | setSize (int w, int h) |
| void | SetUserData (void *d) |
| void | SetUserDraw (LWCtlDrawHook d) |
| void | setWidth (int w) |
| void | UnGhost (bool render=true) |
Control Layout | |
Functions to place any layout controls | |
| int | X () |
| Return the X position of the control. | |
| int | Y () |
| Return the Y position of the control. | |
| int | W () |
| Return the width of the control. | |
| int | H () |
| Return the height of the Controls. | |
| int | LW () |
| Return the label width of the control. | |
| int | HotX () |
| Return the left position of the clickable area of the control. | |
| int | HotY () |
| Return the top position of the clickable area of the control. | |
| int | HotW () |
| Return the width of the clickable area of the control. | |
| int | HotH () |
| Return the left height of the clickable area of the control. | |
| int | MouseX () |
| Return the mouse X position on the control for the most recent event. | |
| int | MouseY () |
| Return the mouse Y position on the control for the most recent event. | |
Protected Member Functions | |
| void | get (cTag tag, LWValue *val) |
| void | set (cTag tag, LWValue *val) |
Class to adapt callbacks for Panel controls on a LW Panel.
|
inline |
Constructor
| ctl | The LWControlID of the control |
|
inline |
|
inline |
Changes the draw mode of the control
| mode | The draw mode for the control. Render by default. |
|
inline |
Erases the control from the panel.
|
inlineprotected |
Get the control attributes, including it's value.
| tag | One of the cTag defined in lwpanel.h (line 186). |
| *val | Pointer to an LWValue. |
|
inline |
Template version. Gets the control attributes, including it's value.
| &val | reference to the value for the tag. |
| tag | One of the TAGS defined in lwpanel.h (line 186). |
|
inline |
Gets an boolean value of a control.
| tag | One of the TAGS defined in lwpanel.h (line 186). |
|
inline |
Returns LWControl managed by this PanelControl.
|
inline |
Gets a double value of a control.
|
inline |
Returns the ID of the LWControl managed by this PanelControl.
|
inline |
Gets an int value of a control.
| tag | One of the TAGS defined in lwpanel.h (line 186). |
|
inline |
Gets an pointer value of a control.
| tag | One of the TAGS defined in lwpanel.h (line 186). |
|
inline |
Gets the pointer to your data for this control.
|
inline |
|
inline |
|
inline |
Ghost the control in the panel. How to show to the user a control is deactivated.
|
inline |
Return the height of the Controls.
|
inline |
Return the left height of the clickable area of the control.
|
inline |
Return the width of the clickable area of the control.
|
inline |
Return the left position of the clickable area of the control.
|
inline |
Return the top position of the clickable area of the control.
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if is a valid control.
|
inline |
Aligns a control to the left of another control
| &ref | reference to the original control used to left align this control |
|
inline |
Return the label width of the control.
|
inline |
Return the mouse X position on the control for the most recent event.
|
inline |
Return the mouse Y position on the control for the most recent event.
|
inline |
Moves a control by the number of pixels indicated on x, and y.
| x | Number of pixels to move the control horizontally |
| y | Number of pixels to move the control vertically |
|
inline |
Moves a control under another control
| &ref | reference to the original control used to position this control belows it |
| space | Number of pixels to separate the control vertically |
|
inline |
|
inline |
Moves a control to the left side of another control
| &ref | reference to the original control used to position this control at is left side |
| space | Number of pixels to separate the control horizontally |
|
inline |
Moves a control to the right side of another control
| &ref | reference to the original control used to position this control at is right side |
| space | Number of pixels to separate the control horizontally |
|
inline |
Moves horizontally a control by the number of pixels indicated on x
| x | Number of pixels to move the control horizontally |
|
inline |
Moves vertically a control by the number of pixels indicated on y
| y | Number of pixels to move the control vertically |
|
inline |
|
inline |
|
inline |
Asignment operator.
|
inline |
Asignment operator.
|
inline |
Equal operator.
|
inline |
Equal operator.
|
inline |
Equal operator.
|
inline |
Returns a pointer to the panel functions.
|
inline |
Returns the LWPanelID of the panel.
|
inline |
|
inline |
|
inline |
Set the minimum range.
|
inline |
|
inline |
Redraws the control in the panel.
|
inline |
|
inline |
Renders the control in the panel.
|
inline |
Aligns a control to the right of another control
| &ref | reference to the original control used to right align this control |
|
inlineprotected |
Set the control attributes, including it's value.
| tag | One of the TAGS defined in lwpanel.h (line 186). |
| *val | Pointer to an LWValue. |
|
inline |
Template version. Sets the control attributes, including it's value.
| val | The value for the tag. |
| tag | One of the TAGS defined in lwpanel.h (line 186). |
|
inline |
Set the id of LWControl managed by this PanelControl
| ctl | The LWControlID of the control |
|
inline |
Template version of the CON_SETUSERDRAW macro. Sets the PanelControlAdaptor<T>::cb_Draw callback for the control draw
|
inline |
Template version of the CON_SETEVENT macro. Sets the PanelControlAdaptor<T>::cb_Event callback for the control events
|
inline |
Sets the height of a control by the number of pixels indicated on h.
| h | Number of pixels to indicate control's height |
|
inline |
Sets the width and height of a control by the number of pixels indicated on w, and h.
| w | Number of pixels to indicate control's width |
| h | Number of pixels to indicate control's height |
|
inline |
Sets a pointer to your data for this control. This data pointer is passed as the second argument to the control callbacks. Note: For some control types, calling set with this tag has important side effects. Even if your userdata is NULL for those controls, you'll want to explicitly set it before opening the panel.
| [in] | *d | Pointer to your data |
|
inline |
Sets a control draw callback You can draw anywhere on the panel from within this callback.
| d | A pointer to a function: typedef void (*LWCtlDrawHook)(LWControlID, void *,DrMode); |
|
inline |
Sets the width of a control by the number of pixels indicated on w.
| w | Number of pixels to indicate control's width |
|
inline |
|
inline |
Return the width of the control.
|
inline |
Return the X position of the control.
|
inline |
Return the Y position of the control.