class MASKING_DLL_DECLSPEC Widget

The widget baseclass.

Inheritance:

Widget - Rect


Public Methods

[more]virtual Point RelativePos() const
Returns the position of the widget relative to it's parent dialog
[more]virtual int Key() const
Returns the widget's keyboard shortcut
[more]virtual int Flags() const
Returns the flags defining the widget's state
[more]virtual bool TestFlag(int i) const
Tests a flag or a group of them
[more]virtual bool HasFocus()
Tests if the widget has input focus
[more]virtual bool HasMouse()
Tests if the widget currently has the mouse over it.
[more]virtual bool Hidden() const
Tests if the widget is hidden or not
[more]virtual bool WillExit() const
Checks if activating the widget will close the parent dialog
[more]virtual bool Selected() const
Checks if the widget is selected.
[more]virtual bool Disabled() const
Checks if the widget is disabled and grayed out
[more]virtual bool Dirty() const
Checks if the widget is marked dirty and needs to be redrawn
[more]virtual bool HasChildren() const
Checks if the widget contains child widgets
[more]virtual bool IsWindow() const
Checks if the widget is a window that can potentially be moved and resized
[more]virtual Dialog* GetParent() const
Returns a pointer to the widget's parent dialog
[more]virtual bool IsChildOf(Widget* w) const
Returns true is this widget is a child of the passed widget
[more]virtual void x(int i, bool normalized=false)
[more]virtual void y(int i, bool normalized=false)
[more]virtual void w(int i, bool normalized=false)
[more]virtual void h(int i, bool normalized=false)
These set the widget's x and y coordinates within the dialog and the widgets width and height.
[more]virtual void Key(int i)
Sets the keyboard shortcut
[more]virtual void SetFlag(int i)
Sets a flag or a group of them
[more]virtual void SetFlags(int flags)
Sets the flags to the given value
[more]virtual void ClearFlag(int i)
Clears a flag
[more]virtual void Enable()
Enables the widget
[more]virtual void Disable()
Disables the widget and grays it out
[more]virtual void Hide()
Hides the widget
[more]virtual void Unhide()
Unhides the widget
[more]virtual void MakeExit()
Flags the widget with the D_EXIT flag to indicate that activating it will close the parent dialog
[more]virtual void DontExit()
Clears the D_EXIT flag
[more]virtual void Redraw()
Marks the widget dirty and schedules for being redrawn
[more]virtual void Redraw(const Rect &region)
Marks only a part of the widget dirty and schedules for being redrawn.
[more]virtual void Place(int nx, int ny, bool normalized=false)
[more]virtual void Place(const Point& p, bool normalized=false)
Places the widget at the desired position
[more]virtual void Resize(int nw, int nh, bool normalized=false)
[more]virtual void Resize(const Size& s, bool normalized=false)
Resize the widget to the desired size
[more]virtual void Shape(int nx, int ny, int nw, int nh, bool normalized=false)
[more]virtual void Shape(const Point& p, const Size& s, bool normalized=false)
[more]virtual void Shape(const Rect &r, bool normalized=false)
Sets the widgets size and position to the desired values
[more]virtual void Select()
Selects the widget
[more]virtual void Deselect()
Deselects the widget
[more]virtual void SetParent(Dialog* f)
Sets the widget's parent dialog.
[more]virtual void SetAnimator(Animator* a)
Changes the animator the widget is to use for animating.
[more]virtual void SetAnimationProperties(int length, int type)
Sets the default animation length and type for the widget.
[more]virtual void Animate()
[more]virtual void Animate(int type)
Starts animating the widget.
[more]virtual void StopAnimating()
Stops the animation.
[more]virtual void ResetAnimation()
Stops animating and resets the animator so it can start a new animation from scratch
[more]virtual void SetTooltipText(const char* text)
Sets the text tooltip help bubbles display when the mouse hovers over the widget.
[more]virtual const char* GetTooltipText()
Returns the widget's tooltip text.
[more]void SetCallbackID(int ID)
Sets The ID of the main callback message for this widget.
[more]int GetCallbackID()
Returns the widget's callback ID.
[more]virtual void Setup(int x, int y, int w, int h, int key=0, int flags=0)
Sets up the most important widget properties (position, size, keyboard shortcut and flags) in one function call
[more]virtual void SetSkin(Skin* skin)
Sets the skin the widget is supposed to use for drawing itself.
[more]virtual Skin* GetSkin()
Returns a pointer to the widget's skin
[more]bool operator==(const Widget& obj) const
Tests if two references to widgets are one and the same
[more]bool operator!=(const Widget& obj) const
Tests if two references to widgets are not the same
[more]int SendMessage(int msg, int c=0)
Sends the widget a message with one optional parameter.
[more]virtual Point GetMousePos() const
Returns the current mouse position relative to the widget's top left corner
[more]void SetTextMode(Color m)
[more]void SetFontColor(Color col, Color shd, int type)
[more]void SetFont(int f, int type)
[more]Font& GetFont(int type)
[more]Color& GetTextMode()
[more]Color& GetFontColor(int type)
[more]Color& GetShadowColor(int type)
Functions for setting and getting the colours of the text background, the text and the text shadow and the font indices in the skins font array.
[more]void SetBitmap(int i)
Selects the bitmap the widget is supposed to use to skin itself.
[more]int GetBitmapIndex() const
Returnes the widget's bitmap index in the skin bitmap array
[more]Bitmap& GetBitmap() const
Retreives the selected bitmap from the widget's skin
[more]void SetSample(int i, int event)
Selects the sample the widget is supposed to play for each event.
[more]int GetSampleIndex(int event) const
Returnes the widget's sample index in the skin sample array for the given event
[more]Sample& GetSample(int event) const
Retreives the selected sample for the given event from the widget's skin
[more]void PlaySample(int event) const
Plays the sample for the given event

Protected Fields

[more]int flags
Flags that define the objects state.
[more]int key
The keyboard shortcut.
[more]int callbackID
The ID of the main callback message for this widget
[more]FontInfo fontInfo
Information about fonts and font colours the widget should use.
[more]int bitmap
Index of the bitmap in the skin's bitmap array the widget will use.
[more]int sample[7]
Sample indices in the skin's sample array for samples that are to be played by the widget at different events
[more]Dialog* parent
A pointer to the widget's parent Dialog.
[more]Skin* skin
A pointer to the skin the widget is to use to skin itself.
[more]Point relativePos
The widget's relative position.
[more]Animator* animator
The animator object that is used to animate the widget
[more]int animLength
Animation length of the default animation in miliseconds
[more]int animType
Animation type of the default animation.
[more]char* tooltipText
The text displayed in tooltip help bubbles when the mouse hovers over the widget.

Protected Methods

[more]BITMAP* GetCanvas()
Returns the widget's own canvas onto which the widget may draw itself.
[more]void ReleaseCanvas(BITMAP* canvas)
Releases the widget's canvas that was obtained by the GetCanvas() function.
[more]virtual void SetCursor(int i)
Changes the global mouse cursor.
[more]void UpdatePosition()
Updates the widget's absolute position.
[more]virtual void MsgStart()
Called when the dialog is started.
[more]virtual void MsgEnd()
Called when the dialog is closed.
[more]virtual void MsgDraw()
Called to tell the widget to draw itself.
[more]virtual void Draw(Bitmap &canvas)
Called whenever the widget needs to be redrawn.
[more]virtual void MsgClick()
Called whenever a mouse button was clicked while the mouse cursor was over the widget.
[more]virtual void MsgDClick()
Called whenever the widget was doubleclicked
[more]virtual void MsgKey()
Called if the widget's shortcut key was pressed
[more]virtual bool MsgChar(int c)
Called whenever a keyboard button was pressed while the widget had input focus.
[more]virtual bool MsgUChar(int c)
The Unicode version of MsgChar().
[more]virtual bool MsgXChar(int c)
Sent to all widgets in a dialog when a keypress occurs but the widget with input focus doesn't handle it and the key doesn't match any of the dialog's widgets keyboard shortcut.
[more]virtual bool MsgWantfocus()
Called to ask the widget if it accepts input focus
[more]virtual void MsgGotfocus()
Called to inform the widget that it received input focus
[more]virtual void MsgLostfocus()
Called to inform the widget that it lost input focus
[more]virtual bool MsgWantmouse()
Called to ask the widget if cares about the mouse being over it and if the mouse is actually over it.
[more]virtual void MsgGotmouse()
Called to inform the widget that the mouse just came on top of it
[more]virtual void MsgLostmouse()
Called to inform the widget that the mouse just left it
[more]virtual void MsgIdle()
Called continously in a loop whenever the dialog manager has nothing better to do
[more]virtual void MsgRadio(int g)
Called when a radio button object is activate so that other radio buttons in the same group can deselect themselves
[more]virtual void MsgWheel(int z)
Called when the mouse wheel moves.
[more]virtual void MsgLPress()
Called when the left mouse button was pressed
[more]virtual void MsgMPress()
Called when the middle mouse button was pressed
[more]virtual void MsgRPress()
Called when the right mouse button was pressed
[more]virtual void MsgLRelease()
Called when the left mouse button was released
[more]virtual void MsgMRelease()
Called when the middle mouse button was released
[more]virtual void MsgRRelease()
Called when the right mouse button was released
[more]virtual void MsgTimer(int t)
Called whenever a timer has ticked.
[more]virtual void MsgTick()
Called exactly once per frame
[more]virtual void MsgMove()
Called to inform the widget that it was moved
[more]virtual void MsgResize()
Called to inform the widget that it was resized
[more]virtual void MsgShape()
Called to inform the widget that it was both moved and resized
[more]virtual void MsgMousemove(const Point& d)
Called when the mouse has moved.
[more]virtual void MsgInitSkin()
Called right after the widget's skin has changed.
[more]virtual bool MsgClose()
Called to ask if the dialog can really be closed.
[more]virtual bool MsgWantTab()
Called to ask if the widget can be tabbed to.


Documentation

The widget baseclass. This class is quite useless as it is, but all MASkinG widgets need to inherit from it. It contains many variables and methods that control the basic apprearance and functionality of the widgets such as position, size, flags, etc.
oint flags
Flags that define the objects state. Available flags are all flags defined by Allegro and the D_SOMETHING flags. Click here and scroll down to "Macros" to see the full list.

oint key
The keyboard shortcut. This shortcut can be used to activate the widget. This may be a character such as 'a' to respond to a simple keypress, or a number 1-26 to respond to a control key a-z.

oint callbackID
The ID of the main callback message for this widget

oFontInfo fontInfo
Information about fonts and font colours the widget should use. This is obviously relevant only for widgets that contain text.

oint bitmap
Index of the bitmap in the skin's bitmap array the widget will use. If a widget uses more than one bitmap, it obviously needs to keep track of all the indices by itself.

oint sample[7]
Sample indices in the skin's sample array for samples that are to be played by the widget at different events

oDialog* parent
A pointer to the widget's parent Dialog. The parent of the top level dialog is the dialog itself (this pointer).

oSkin* skin
A pointer to the skin the widget is to use to skin itself. This usually points to the global skin object (theSkin), but in theory every widget can have its own skin.

oPoint relativePos
The widget's relative position. This is relative to the parent (as opposed to being the absolute position on the screen).

oAnimator* animator
The animator object that is used to animate the widget

oint animLength
Animation length of the default animation in miliseconds

oint animType
Animation type of the default animation. The type can be one of these values.

ochar* tooltipText
The text displayed in tooltip help bubbles when the mouse hovers over the widget. If NULL, no help bubble is displayed.

oBITMAP* GetCanvas()
Returns the widget's own canvas onto which the widget may draw itself. The canvas is most often the same size as the widget but you shouldn't rely on that (in some cases the widget's canvas may be clipped). The canvas is actually a subbitmap of the dialog's canvas so the widget should draw itself at position (0,0) which is different than in previous versions of MASkinG where every widget had access to its dialog's canvas and had to draw itself at position (x,y). Normally you shouldn't need to call this function because the dialog manager does it for you in the MsgDraw() message handler.

ovoid ReleaseCanvas(BITMAP* canvas)
Releases the widget's canvas that was obtained by the GetCanvas() function. It is necessary for every call to GetCanvas() to have a matching call to ReleaseCanvas() otherwise you get a memory leak.

ovirtual void SetCursor(int i)
Changes the global mouse cursor. Actually it calls the SetCursor() function in the Mouse class. The parameter i is the index of the cursors in the skin's cursor array as defined here.

ovoid UpdatePosition()
Updates the widget's absolute position. This means tha widget is moved to it's absolute position on the screen if it's a part of a subdialog and not of the main dialog. You shouldn't have to call this function yourself, the dialog manager does it when the widget is added to the dialog.

ovirtual void MsgStart()
Called when the dialog is started. This allows the widget to initialize itself if necessary before being used and drawn. MsgStart() is also called when the widget is dynamically added to a dialog while the dialog is already running.

ovirtual void MsgEnd()
Called when the dialog is closed. Allows the widget to clean up after itself before being destroyed. This function is also called when the widget is removed from a dialog while the dialog is still running.

ovirtual void MsgDraw()
Called to tell the widget to draw itself. Normally you should overload this because the default implementation takes care of thing like getting and releasing the canvas, updating the screen and doing animation. In most cases you should implement the drawing code in the Draw() function.

ovirtual void Draw(Bitmap &canvas)
Called whenever the widget needs to be redrawn. The canvas parameter is the canvas bitmap on which the widget should draw itself. You should normally implement this function instead of MsgDraw() unless you're doing something really clever. The default implementation of MsgDraw() takes care of acquiring and releasing the canvas and doing the animation. You should implement MsgDraw() only if you don't need this for some reason or if you want to do it differently otherwise you should just implement Draw().

ovirtual void MsgClick()
Called whenever a mouse button was clicked while the mouse cursor was over the widget. This doesn't differentiate between mouse buttons so if you need to handle clicks with different buttons and if you want better control over mouse presses and releases, implement the appropriate lower level message handlers instead.

ovirtual void MsgDClick()
Called whenever the widget was doubleclicked

ovirtual void MsgKey()
Called if the widget's shortcut key was pressed

ovirtual bool MsgChar(int c)
Called whenever a keyboard button was pressed while the widget had input focus. The character passed into this function is in the "extended" format with the ASCII code in the low byte and the scancode in the high byte. This function should return true if the widget handled the key, otherwise it should return false to indicate that it isn't interested.

ovirtual bool MsgUChar(int c)
The Unicode version of MsgChar(). This is called if MsgChar() returned false, passing the Unicode value of the pressed key as the parameter. Should return true if the widget handled the key, false otherwise.

ovirtual bool MsgXChar(int c)
Sent to all widgets in a dialog when a keypress occurs but the widget with input focus doesn't handle it and the key doesn't match any of the dialog's widgets keyboard shortcut. This allows you to handle special keypresses even when you don't have input focus.

ovirtual bool MsgWantfocus()
Called to ask the widget if it accepts input focus

ovirtual void MsgGotfocus()
Called to inform the widget that it received input focus

ovirtual void MsgLostfocus()
Called to inform the widget that it lost input focus

ovirtual bool MsgWantmouse()
Called to ask the widget if cares about the mouse being over it and if the mouse is actually over it. This allows you to implement non-rectangular widgets. This function is called whenever the mouse cursor enters the widget's bounding rectangle but the widget itself should take care of figuring out whether the mouse is actually on top of the widget or not.

ovirtual void MsgGotmouse()
Called to inform the widget that the mouse just came on top of it

ovirtual void MsgLostmouse()
Called to inform the widget that the mouse just left it

ovirtual void MsgIdle()
Called continously in a loop whenever the dialog manager has nothing better to do

ovirtual void MsgRadio(int g)
Called when a radio button object is activate so that other radio buttons in the same group can deselect themselves

ovirtual void MsgWheel(int z)
Called when the mouse wheel moves. Parameter z is the number of "clicks".

ovirtual void MsgLPress()
Called when the left mouse button was pressed

ovirtual void MsgMPress()
Called when the middle mouse button was pressed

ovirtual void MsgRPress()
Called when the right mouse button was pressed

ovirtual void MsgLRelease()
Called when the left mouse button was released

ovirtual void MsgMRelease()
Called when the middle mouse button was released

ovirtual void MsgRRelease()
Called when the right mouse button was released

ovirtual void MsgTimer(int t)
Called whenever a timer has ticked. The passed parameter is the ID of the timer that caused the message to be sent.

ovirtual void MsgTick()
Called exactly once per frame

ovirtual void MsgMove()
Called to inform the widget that it was moved

ovirtual void MsgResize()
Called to inform the widget that it was resized

ovirtual void MsgShape()
Called to inform the widget that it was both moved and resized

ovirtual void MsgMousemove(const Point& d)
Called when the mouse has moved. When the mouse is on top of a widget or the widget has the D_PRESSED flag set this function is called whenever the mouse has moved passing the difference between the current and the previous mouse positions (delta).

ovirtual void MsgInitSkin()
Called right after the widget's skin has changed. Most widgets read their skin information (like fonts, font colours, bitmaps, samples, etc.) from the skin in this function.

ovirtual bool MsgClose()
Called to ask if the dialog can really be closed. This is obviously relevant only for dialogs and windows. It is passed whenever a request to close the dialog was made (either by pressing escape, selecting a widget that has the D_EXIT flag set or by explicitly calling the Close() function). This functions should return true if the dialog may be closed otherwise it should return false. Most often you should popup a dialog asking the user if they really want to close the window or something similar in this function.

ovirtual bool MsgWantTab()
Called to ask if the widget can be tabbed to. This function should return true if the widget can be tabbed to with the TAB key or with the arrow keys, otherwise it should return false. By default the value MsgWantfocus() returns is returned.

The above messages are called every time a message needs to be passed to the widget. Every derived widget class may implement any or all of these functions to define it's appearance and behaviour. Most of the messages are directly related to similar messages in the default Allegro GUI but some are completely new and unique to MASkinG.

ovirtual Point RelativePos() const
Returns the position of the widget relative to it's parent dialog

ovirtual int Key() const
Returns the widget's keyboard shortcut

ovirtual int Flags() const
Returns the flags defining the widget's state

ovirtual bool TestFlag(int i) const
Tests a flag or a group of them

ovirtual bool HasFocus()
Tests if the widget has input focus

ovirtual bool HasMouse()
Tests if the widget currently has the mouse over it. Note that only one widget can have a mouse at any time so when widgets are stacked on top of each other, only the one on top can have the mouse.

ovirtual bool Hidden() const
Tests if the widget is hidden or not

ovirtual bool WillExit() const
Checks if activating the widget will close the parent dialog

ovirtual bool Selected() const
Checks if the widget is selected. Note that being selected may have different meaning for different widgets.

ovirtual bool Disabled() const
Checks if the widget is disabled and grayed out

ovirtual bool Dirty() const
Checks if the widget is marked dirty and needs to be redrawn

ovirtual bool HasChildren() const
Checks if the widget contains child widgets

ovirtual bool IsWindow() const
Checks if the widget is a window that can potentially be moved and resized

ovirtual Dialog* GetParent() const
Returns a pointer to the widget's parent dialog

ovirtual bool IsChildOf(Widget* w) const
Returns true is this widget is a child of the passed widget

ovirtual void x(int i, bool normalized=false)

ovirtual void y(int i, bool normalized=false)

ovirtual void w(int i, bool normalized=false)

ovirtual void h(int i, bool normalized=false)
These set the widget's x and y coordinates within the dialog and the widgets width and height. If normalized is true, then the value should be a normalized number in the range between 0 and 100 (i.e. percentage of the parent dialog size), otherwise it should be the actual number of pixels.

ovirtual void Key(int i)
Sets the keyboard shortcut

ovirtual void SetFlag(int i)
Sets a flag or a group of them

ovirtual void SetFlags(int flags)
Sets the flags to the given value

ovirtual void ClearFlag(int i)
Clears a flag

ovirtual void Enable()
Enables the widget

ovirtual void Disable()
Disables the widget and grays it out

ovirtual void Hide()
Hides the widget

ovirtual void Unhide()
Unhides the widget

ovirtual void MakeExit()
Flags the widget with the D_EXIT flag to indicate that activating it will close the parent dialog

ovirtual void DontExit()
Clears the D_EXIT flag

ovirtual void Redraw()
Marks the widget dirty and schedules for being redrawn

ovirtual void Redraw(const Rect &region)
Marks only a part of the widget dirty and schedules for being redrawn. The region that is to be redrawn should be in absolute screen coordinates and not the local widget coordinates. The widget takes care of making sure that each part of the widget is drawn only once, if necessary by splitting the region into smaller ones.

ovirtual void Place(int nx, int ny, bool normalized=false)

ovirtual void Place(const Point& p, bool normalized=false)
Places the widget at the desired position

ovirtual void Resize(int nw, int nh, bool normalized=false)

ovirtual void Resize(const Size& s, bool normalized=false)
Resize the widget to the desired size

ovirtual void Shape(int nx, int ny, int nw, int nh, bool normalized=false)

ovirtual void Shape(const Point& p, const Size& s, bool normalized=false)

ovirtual void Shape(const Rect &r, bool normalized=false)
Sets the widgets size and position to the desired values

ovirtual void Select()
Selects the widget

ovirtual void Deselect()
Deselects the widget

ovirtual void SetParent(Dialog* f)
Sets the widget's parent dialog. Probably shouldn't be used!

ovirtual void SetAnimator(Animator* a)
Changes the animator the widget is to use for animating. By default the widgets make an instance of the base Animator class but you can easily add your own animations by deriving an animator class from it. This function deletes the previous animator if any. Also the animator is deleted when the widget expires so you don't have to worry about destroying it yourself.

ovirtual void SetAnimationProperties(int length, int type)
Sets the default animation length and type for the widget. Most often this is read from the skin description file and set in the MsgInitSkin() function.

ovirtual void Animate()

ovirtual void Animate(int type)
Starts animating the widget. Basically these functions just set a flag which means the widget is being animated and then the dialog manager makes sure the animation is actually performed.

ovirtual void StopAnimating()
Stops the animation. You shouldn't normally have to call this function as the animation will acutomatically stop when it reaches the end.

ovirtual void ResetAnimation()
Stops animating and resets the animator so it can start a new animation from scratch

ovirtual void SetTooltipText(const char* text)
Sets the text tooltip help bubbles display when the mouse hovers over the widget. Set text to NULL to disable tooltips.

ovirtual const char* GetTooltipText()
Returns the widget's tooltip text. If the text is NULL, the parent dialog's tooltip text is returned instead!

ovoid SetCallbackID(int ID)
Sets The ID of the main callback message for this widget. If this value is set to a positive number or 0 (default is -1), an event with this ID will be created and sent to the parent dialog via HandleEvent() instead of the primary message of the widget. For example when a button is clicked, it sends MSG_ACTIVATE to the parent dialog, but if this ID is set, it will be sent instead. This makes it easy to map several widgets to the same message (so they will perform the same action). For example you might have a File/Open menu item, a Ctrl+O keyboard shortcut and an icon all do the same thing (popup a file open dialog). So to sum it up, this ID overrides MSG_ACTIVATE in widgets that send it when they are activated.

oint GetCallbackID()
Returns the widget's callback ID. Returns -1 if no ID is set.

ovirtual void Setup(int x, int y, int w, int h, int key=0, int flags=0)
Sets up the most important widget properties (position, size, keyboard shortcut and flags) in one function call

ovirtual void SetSkin(Skin* skin)
Sets the skin the widget is supposed to use for drawing itself. Usually all widgets use the global skin theSkin but every widget may have it's own skin.

ovirtual Skin* GetSkin()
Returns a pointer to the widget's skin

obool operator==(const Widget& obj) const
Tests if two references to widgets are one and the same

obool operator!=(const Widget& obj) const
Tests if two references to widgets are not the same

oint SendMessage(int msg, int c=0)
Sends the widget a message with one optional parameter. Becuse all the message functions are protected, widgets can only communicate with each other by sending messages and events. Available messages are all the messages defined by Allegro and the messages defined here (scroll down to "Macros" to see a full list).

ovirtual Point GetMousePos() const
Returns the current mouse position relative to the widget's top left corner

ovoid SetTextMode(Color m)

ovoid SetFontColor(Color col, Color shd, int type)

ovoid SetFont(int f, int type)

oFont& GetFont(int type)

oColor& GetTextMode()

oColor& GetFontColor(int type)

oColor& GetShadowColor(int type)
Functions for setting and getting the colours of the text background, the text and the text shadow and the font indices in the skins font array. These properties can be inidvidually set for all four possible states. Obviously this is relevant only for wigets that actually contain some sort of text.

ovoid SetBitmap(int i)
Selects the bitmap the widget is supposed to use to skin itself. The parameter i is the index of the bitmap in the skin's bitmap array.

oint GetBitmapIndex() const
Returnes the widget's bitmap index in the skin bitmap array

oBitmap& GetBitmap() const
Retreives the selected bitmap from the widget's skin

ovoid SetSample(int i, int event)
Selects the sample the widget is supposed to play for each event. The parameter i is the index of the sample in the skin's sample array. Event is one of these events.

oint GetSampleIndex(int event) const
Returnes the widget's sample index in the skin sample array for the given event

oSample& GetSample(int event) const
Retreives the selected sample for the given event from the widget's skin

ovoid PlaySample(int event) const
Plays the sample for the given event


Direct child classes:
Tooltip
Shortcut
Separator
Panel
MenuItem
ListView
InputHandler
Label
Image
GLViewport
Dialog
ClearScreen
Accelerator
Friends:
class MASKING_DLL_DECLSPEC Dialog

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++