LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::AboutPanel Class Reference

#include <panel.h>

+ Inheritance diagram for lwpp::AboutPanel:
+ Collaboration diagram for lwpp::AboutPanel:

List of all members.

Public Member Functions

 AboutPanel (const std::string title, const char **message, const unsigned char *_image=0, int w=0, int h=0)
 ~AboutPanel ()
void Open ()

Static Public Member Functions

static void UserDraw (LWControlID control, void *userdata, DrMode drawmode)

Private Member Functions

bool _acquireGlobal ()
LWControl * addControl (const char *type, LWPanControlDesc *desc, const char *label)
 Add a control to the panel.
virtual bool available () const
 Check if the global is available.
void ClearID ()
void Close ()
 Close the panel.
void Create (const std::string _title, bool _close_on_destroy=true)
 Creates a panel.
void Draw (DrMode mode=DR_REFRESH)
void get (pTag tag, void *data) const
 Get a panel attribute.
virtual LWPanelFuncs * getGlobal ()
 Get the pointer to the global.
int GetHeight () const
 Get panel height in pixels.
LWPanelID GetID () const
 Returns the ID of the panel as a LWPanelID.
int GetInt (pTag tag) const
void * GetPointer (pTag tag)
int GetQualifiers ()
 Get the panel qualifier keys.
void * GetUserData ()
 Get the panel user data.
int GetWidth () const
 Get panel width in pixels.
GlobalFunc * globalFun ()
 Returns the global.
int Handle (int block)
LWControl * nextControl (LWControlID *ctl)
int Open (int flags)
 Opens and displays the panel.
LWPanelFuncs * operator-> ()
 Get the pointer to the global.
int Post (int flags=0)
void Recreate ()
 Recreates the panel.
void Recreate (const std::string _title)
void set (pTag tag, void *data)
 Set a panel attributes.
void Set (void *p, pTag tag)
void Set (int i, pTag tag)
void Set (pTag tag, void *p)
template<typename T >
void SetCallbacks (T *host)
void SetHeight (int h)
 Set panel height in pixels.
void SetTitle (std::string &s)
void SetUserActivate (LWPanHook d)
void SetUserClose (LWPanHook d)
void SetUserData (void *d)
 Set the panel user data.
void SetUserDraw (LWPanDrawHook d)
void SetUserKeys (LWPanKeyHook d)
void SetUserKeyUp (LWPanKeyHook d)
void SetUserMouseButton (LWPanMouseHook d)
void SetUserMouseMove (LWPanMouseHook d)
void SetUserOpen (LWPanHook d)
void SetWidth (int w)
 Set panel width in pixels.
void ToFront ()
 Bring the panel to the front.
void * user_data ()
 Returns a pointer to the userdata.
Drawing

Drawing related functionality

LWDrawFuncs getDrawFuncs ()
 Returns the draw functions for the panel.
void DrawLine (int color, int x1, int y1, int x2, int y2)
 Draws a line.
void DrawBorder (int indent, int x, int y, int w, int h=0) const
 Draw a Border.
void DrawResizeHandle ()
 Draw a resizing handle on the lower left corner.
Controls

Controls that can be created with LWPanels

LWControl * AddChoice (const char *title, const char **items, bool orientation)
 Adds a series of mutually exclusive buttons.
LWControl * AddPopUp (const char *title, const char **items, int width=0)
LWControl * AddFloat (const char *title, LWType type=LWT_FLOAT)
LWControl * AddDistance (const char *title)
LWControl * AddFloatInfo (const char *title)
LWControl * AddFloatVector (const char *title, LWType type=LWT_VFLOAT)
LWControl * AddDistanceVector (const char *title)
LWControl * AddFloatVectorInfo (const char *title)
LWControl * AddItem (const char *title, LWItemType type, int width=0)
 Adds a pop up filled up with items present on the scene.
LWControl * AddPickItem (const char *title, LWItemType type, int width)
LWControl * AddButton (const char *title, int width=0)
LWControl * AddBoolean (const char *title, int width=0)
LWControl * AddBoolButton (const char *title, int width=0)
LWControl * AddInteger (const char *title, int width=0)
LWControl * AddIntegerInfo (const char *title, int width=0)
LWControl * AddSlider (const char *title, int min, int max, int width, const char *type="SliderControl")
LWControl * AddVerticalSlider (const char *title, int min, int max, int width)
LWControl * AddHorizontalSlider (const char *title, int min, int max, int width)
LWControl * AddUnboundSlider (const char *title, int min, int max, int width)
LWControl * AddMiniSlider (const char *title, int min, int max, int width)
LWControl * AddVector (const char *title, const char *type="VecControl")
LWControl * AddVectorInfo (const char *title)
LWControl * AddRGB (const char *title)
LWControl * AddMiniRGB (const char *title)
LWControl * AddMiniHSV (const char *title)
LWControl * AddRGBVector (const char *title)
LWControl * AddString (const char *title, int width, const char *type="EditControl")
LWControl * AddStringInfo (const char *title, int width)
LWControl * AddFile (const char *title, int width)
LWControl * AddFileButton (const char *title, int width)
LWControl * AddLoad (const char *title, int width)
LWControl * AddLoadButton (const char *title, int width)
LWControl * AddSave (const char *title, int width)
LWControl * AddSaveButton (const char *title, int width)
LWControl * AddDir (const char *title, int width)
LWControl * AddDirButton (const char *title, int width)
LWControl * AddText (const char *title, const char **text)
LWControl * AddArea (const char *title, int width, int height, const char *type="AreaControl")
LWControl * AddOpenGL (const char *title, int width, int height)
LWControl * AddCanvas (const char *title, int width, int height)
LWControl * AddDragButton (const char *title, int width, int height)
LWControl * AddVDragButton (const char *title)
LWControl * AddHDragButton (const char *title)
LWControl * AddDragArea (const char *title, int width, int height)
LWControl * AddBorder (const char *title, int width, int height)
LWControl * AddChannel (const char *title, int width, int height)
LWControl * AddPalette (const char *title, int width, int height)
LWControl * AddPercent (const char *title)
LWControl * AddAngle (const char *title)
LWControl * AddCustomPopup (const char *title, int width, int(*count)(void *), char *(*name)(void *, int))
template<typename T >
LWControl * AddCustomPopup (const char *title, int width)
LWControl * AddPopdown (const char *title, const char **items)
LWControl * AddTabs (const char *title, const char **items)
LWControl * AddXPanel (const char *title, LWXPanelID xp)
LWControl * AddListbox (const std::string &title, int width, int(*count)(void *), char *(*name)(void *, int), int items, int topVisible=0)
template<typename T >
LWControl * AddListbox (const std::string &title, int width, int items, int topVisible=0)
template<typename T >
void AddListbox (PanelControl &control, const std::string &title, int width, int items, int topVisible=0)
 Adds a series of mutually exclusive buttons.
template<typename T >
void AddListbox (PanelControl &control, int width, int items, int topVisible=0)
 Adds a series of mutually exclusive buttons.
template<typename T >
LWControl * AddListbox (int width, int items, int topVisible=0)
LWControl * AddMultiListbox (const char *title, int width, int items, int topVisible, int(*count)(void *), char *(*name)(void *, int, int), int(*colwidth)(void *, int i))
template<typename T >
LWControl * AddMultiListbox (const char *title, int width, int items, int topVisible=0)
 Adds a multi-column list of items with a scroll bar.
template<typename T >
void AddMultiListbox (PanelControl &control, const char *title, int width, int items, int topVisible=0)
 Adds a series of mutually exclusive buttons.
template<typename T >
LWControl * AddTree (const char *title, int width, int height)
 Adds a Tree Control.
LWControl * AddTree (const char *title, int width, int height, int(*count)(void *data, void *node), void *(*leaf)(void *data, void *node, int i), char *(*info)(void *data, void *node, int *nodeFlags), void(*move)(void *data, void *node, void *parentNode, int i)=0)
 Adds a Tree Control.

Static Private Member Functions

template<typename T >
static void cb_PanActivate (LWPanelID id, void *userdata)
 Callback for panel activation.
template<typename T >
static void cb_PanClose (LWPanelID id, void *userdata)
 Callback for panel close.
template<typename T >
static void cb_PanDraw (LWPanelID id, void *userdata, DrMode DrawMode)
 Callback for panel draw.
template<typename T >
static int cb_PanKeyDown (LWPanelID id, void *userdata, LWDualKey key)
 Static callback for key down.
template<typename T >
static int cb_PanKeyUp (LWPanelID id, void *userdata, LWDualKey key)
 Static callback for key up.
template<typename T >
static void cb_PanMouseButton (LWPanelID id, void *userdata, int qualifiers, int x, int y)
 Static callback for mouse button.
template<typename T >
static void cb_PanMouseMove (LWPanelID id, void *userdata, int qualifiers, int x, int y)
 Static callback for mouse move.
template<typename T >
static void cb_PanOpen (LWPanelID id, void *userdata)
 Callback for open panel.
template<typename T >
static void cb_PanResize (LWPanelID id, void *userdata, int w, int h)
 Callback for panel resize.

Static Private Attributes

static LWPanelFuncs * globPtr
 Pointer to the global functions.

Detailed Description

Different Pre-fab panels An About panel


Constructor & Destructor Documentation

lwpp::AboutPanel::AboutPanel ( const std::string  title,
const char **  message,
const unsigned char *  _image = 0,
int  w = 0,
int  h = 0 
)
lwpp::AboutPanel::~AboutPanel ( )

Member Function Documentation

void lwpp::AboutPanel::Open ( )
void lwpp::AboutPanel::UserDraw ( LWControlID  control,
void *  userdata,
DrMode  drawmode 
)
static

The documentation for this class was generated from the following files: