Planeshift
|
The main base widget that all other widgets should inherit from. More...
#include <pawswidget.h>
Classes | |
class | iWidgetData |
A class that can be inherited to store extra data in a widget. More... | |
Public Member Functions | |
void | AddChild (pawsWidget *widget) |
Add a child widget to this widget. | |
void | AddChild (size_t Index, pawsWidget *widget) |
Add a child widget to this widget at a specified position. | |
virtual void | BringToTop (pawsWidget *widget) |
Move this widget up the z order to the top. | |
virtual double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
virtual void | CenterTo (int x, int y) |
Move this widget so that its center is at given location. | |
virtual void | CenterToMouse () |
Move this widget so that its center is at mouse pointer, but it is fully on screen. | |
void | ChangeFontSize (float newSize) |
Change font to new size and reload font to make it take effect. | |
virtual bool | CheckButtonPressed (int button, int modifiers, pawsWidget *pressedWidget) |
Test button for activity. | |
virtual bool | CheckButtonReleased (int button, int modifiers, pawsWidget *pressedWidget) |
Test button for activity. | |
virtual bool | CheckKeyHandled (int) |
Allow pawsButton to simulate button pushes based on keypresses. | |
void | ClearBackgroundColor () |
void | ClearMaskingImage () |
Clears the masking image. | |
csRect | ClipRect () |
This returns the current clipping rectangle. | |
void | ClipToParent (bool allowForBackgroundBorder) |
Determines clipping area to use. | |
virtual void | Close () |
Simply calls Hide() unless overidden. | |
virtual bool | Contains (int x, int y) |
Determines if the coordinates are within this widget. | |
virtual void | CreateWidgetConfigWindow () |
Creates a popup window that the user can use to adjust the settings of this window. | |
virtual void | DeleteChild (pawsWidget *widget) |
Removes the widget from list of children and destructs it. | |
void | DeleteYourself () |
Removes and destructs itself. | |
virtual void | DestroyWidgetConfigWindow () |
Called by ApplyAlphaOnChildren to remove the config window to prevent weird stuff. | |
virtual void | Draw () |
Draws the widget and all of it's children. | |
virtual void | Draw3D (iGraphics3D *) |
virtual void | DrawBackground () |
Draws the background with a color or an image. | |
virtual void | DrawChildren () |
Draws all children marked visible. | |
void | DrawForeground () |
Does the second part of the drawing drawing the background of the window. | |
virtual void | DrawMask () |
Draws the mask picture. | |
virtual void | DrawToolTip (int x, int y) |
This draws the tool tip if a widget is visible and a tool tip is available. | |
void | DrawWidgetText (const char *text, int x, int y, int style=-1) |
Draw text in the widget at specified location. | |
bool | DrawWindow () |
Does the first part of the drawing. | |
virtual void | Dump (csString tab="") |
Prints the widget names for the widget and all it's children. | |
const char * | FindDefaultWidgetStyle (const char *factoryName) |
pawsWidget * | FindWidget (const char *name, bool complain=true) |
Find a child widget of this widget. | |
pawsWidget * | FindWidget (int id, bool complain=true) |
Find a child widget of this widget. | |
pawsWidget * | FindWidgetXMLBinding (const char *xmlbinding) |
Find a child widget of this widget with the given XML binding. | |
void | FormatToolTip (const char *fmt,...) |
Changes the format of a tool tip. | |
int | GetActualHeight (int myValue=-1) |
Returns the actual Height assuming the passed value was in 800x600 resolution. | |
int | GetActualWidth (int myValue=-1) |
Returns the actual width assuming the passed value was in 800x600 resolution. | |
csString | GetBackground () |
Retrieve the background image name. | |
virtual pawsBorder * | GetBorder () |
This returns the border created by UseBorder(). | |
virtual int | GetBorderColour (int which) |
Get the color for this widgets border. | |
virtual int | GetBorderStyle () |
This returns the BORDER_BUMP style. | |
pawsWidget * | GetChild (size_t i) |
Used if you need to loop through the children of a widget. | |
size_t | GetChildrenCount () |
Used if you need to loop through the children of a widget. | |
const char * | GetCloseName () |
Returns the closeName of this widget. | |
virtual csRect | GetDefaultFrame () |
Returns the default csRect. | |
iWidgetData * | GetExtraData () |
Grabs extra data stored in the widget. | |
float | GetFadeSpeed () |
Gets the fading speed. | |
int | GetFadeVal () |
Gets the fade value of this widget. | |
const char * | GetFilename () |
Returns the filename. | |
virtual bool | GetFocusOverridesControls () const |
Test if the widget should intercept all key presses. | |
iFont * | GetFont (bool scaled=true) |
Gets the current font as an iFont. | |
virtual int | GetFontColour () |
Gets the current font color. | |
int | GetFontShadowColour () |
Gets the current shadow color. | |
float | GetFontSize () |
Gets the current font size. | |
int | GetFontStyle () |
Gets the current font style. | |
int | GetID () |
Gets the id of a widget. | |
int | GetLogicalHeight (int myValue) |
int | GetLogicalWidth (int myValue) |
int | GetMaxAlpha () |
Gets the maximum alpha value of this widget. | |
int | GetMinAlpha () |
Gets the minimim alpha value of this widget. | |
void | GetMinSize (int &width, int &height) |
const char * | GetName () |
Get the name of this widget. | |
pawsWidget * | GetParent () |
Get this widget's parent. | |
csString | GetPathInWidgetTree () |
Returns textual description of path to our widget through the widget tree. | |
virtual double | GetProperty (MathEnvironment *env, const char *ptr) |
virtual csRect | GetScreenFrame () |
Returns the csRect that defines widget area. | |
csString & | GetToolTip () |
Gets the text from a tool tip. | |
const char * | GetType () |
Gets the current factory type. | |
csRect | GetWidgetTextRect (const char *text, int x, int y, int style=-1) |
Get the rectangle containing the text DrawWidgetText will produce. | |
virtual const csString & | GetXMLBinding () |
Get the xml nodes of this widget. | |
virtual bool | HasFocus () |
Test focus of the widget. | |
virtual void | Hide () |
Makes widget invisible and removes focus if widget has current focus. | |
virtual void | Ignore (bool ig) |
bool | Includes (pawsWidget *widget) |
Returns true if widget equals this, or widget is a child of this. | |
bool | IsAlwaysOnTop () |
Tests value of this widgets alwaysOnTop flag. | |
bool | IsChildOf (pawsWidget *someParent) |
Returns true, if this widget is the child of 'someParent'. | |
bool | IsConfigurable () |
Tests if widget settings (alpha, fade, etc) are configurable. | |
bool | isFadeEnabled () |
Gets the fade status of this widget. | |
bool | IsIndirectChild (pawsWidget *widget) |
Returns true, if 'widget' is child of our widget, even if it is indirect. | |
bool | IsResizable () |
Test widget to see if it is resizable. | |
bool | isScalingFont () |
Returns whether or not font is being auto-scaled. | |
bool | IsVisible () |
Is the widget currently set visible? | |
virtual bool | Load (iDocumentNode *node) |
Load a widget based on its <widget></widget> tag. | |
virtual bool | LoadAttributes (iDocumentNode *node) |
Load standard widget attributes based on its <widget></widget> tag. | |
virtual bool | LoadChildren (iDocumentNode *node) |
Load widget children based on subtags of its <widget></widget> tag. | |
virtual bool | LoadEventScripts (iDocumentNode *node) |
Load event scripts for this widget. | |
bool | LoadFromFile (const csString &fileName) |
Parses XML file 'fileName', finds first widget tag and Load()s itself from this tag. | |
virtual csRect | LoadPositions () |
Get the position of this widget that was stored in a cfg file. | |
virtual void | LoadSettings () |
Loads current widget settings from an XML file. | |
void | MakeFullyVisible () |
If some part of the widget is not within the rectangle of its parent, then the widget is moved inside (if it is small enough). | |
virtual void | MouseOver (bool value) |
Sets hasMouseFocus. | |
virtual void | MoveDelta (int dx, int dy) |
Move a widget by a delta amount. | |
virtual void | MoveTo (int x, int y) |
Moves this widget and all of its children to a new screen location. | |
bool | NeedsRender () const |
Whether we need to r2t. | |
virtual void | NewSubscription (const char *dataname) |
virtual bool | OnButtonPressed (int button, int keyModifier, pawsWidget *widget) |
Called whenever a button is pressed. | |
virtual bool | OnButtonReleased (int button, int keyModifier, pawsWidget *widget) |
Called whenever a button is released. | |
virtual bool | OnChange (pawsWidget *widget) |
Called whenever a widget is selected. | |
virtual bool | OnChildMouseEnter (pawsWidget *child) |
Called when mouse enters a child widget. | |
virtual bool | OnChildMouseExit (pawsWidget *child) |
Called when a mouse exits a child widget. | |
virtual bool | OnClipboard (const csString &content) |
Process Clipboard content, as a response to RequestClipboardContent. | |
virtual bool | OnDoubleClick (int button, int modifiers, int x, int y) |
Manage mouse double click event. | |
virtual bool | OnGainFocus (bool=true) |
Changes hasFocus to TRUE and reports status to parent. | |
virtual bool | OnJoypadDown (int key, int modifiers) |
Process joypadDown messages. | |
virtual bool | OnKeyDown (utf32_char keyCode, utf32_char keyChar, int modifiers) |
Process keydown messages. | |
virtual void | OnListAction (pawsListBox *selected, int status) |
Called whenever an item in a child list box is selected. | |
virtual void | OnLostFocus () |
Sets hasFocus false and notifys parent. | |
virtual bool | OnMenuAction (pawsWidget *widget, const pawsMenuAction &action) |
Called whenever a menu action occurs. | |
virtual bool | OnMouseDown (int button, int modifiers, int x, int y) |
Manage mouse down event to test for and apply window changes. | |
virtual bool | OnMouseEnter () |
Called whenever the mouse enters this widget. | |
virtual bool | OnMouseExit () |
Called whenever the mouse leaves this widget. | |
virtual bool | OnMouseUp (int button, int modifiers, int x, int y) |
Manage mouse up event. | |
virtual void | OnResize () |
Sets the new position of the close button. | |
virtual bool | OnScroll (int scrollDirection, pawsScrollBar *widget) |
Called whenever a window is scrolled. | |
virtual bool | OnSelected (pawsWidget *widget) |
Called whenever a widget is selected. | |
virtual void | OnUpdateData (const char *, PAWSData &) |
virtual bool | ParentDraw () const |
Whether to draw via the parent-child draw tree. | |
pawsWidget () | |
pawsWidget (const pawsWidget &origin) | |
virtual void | PerformAction (const char *action) |
Does an action based on this string. | |
virtual bool | PostSetup () |
This is called after the widget and all of it's children have been created. | |
void | RecalcScreenPositions () |
This re-calculates a widget's on screen position to draw based on it's relative position and parent screen location. | |
void | ReloadWidget () |
Reloads widget from XML file. | |
void | RemoveChild (pawsWidget *widget) |
Removes the widget from list of children but does NOT destruct it. | |
void | RemoveTitle () |
virtual void | ResetToDefaultFrame () |
Resets the position, width and height to the default position. | |
virtual void | Resize (int dx, int dy, int flags) |
Resize a widget by a delta amount. | |
virtual void | Resize (int flags) |
Resize a widget based on the current mouse position. | |
virtual void | Resize () |
Resize a widget based on it's parent's size. | |
void | RunScriptEvent (PAWS_WIDGET_SCRIPT_EVENTS event) |
Executes any pawsScript associated with the given event. | |
virtual void | SavePosition () |
Saves the position of this widget to the config file. | |
virtual void | SaveSettings () |
Saves current widget settings to an XML file. | |
virtual bool | SelfPopulate (iDocumentNode *node) |
This function allows a widget to fill in its own contents from an xml node supplied and calls the same function for all children. | |
virtual bool | SelfPopulateXML (const char *xmlstr) |
This function parses the xml string and calls SelfPopulate with the resulting DOM structure if valid. | |
virtual void | SendToBottom (pawsWidget *widget) |
Move this widget down the z order to the bottom. | |
void | SetAlwaysOnTop (bool value) |
Sets value of this widgets alwaysOnTop flag. | |
virtual void | SetAttachFlags (int flags) |
Modify attachFlags to control widget construction. | |
virtual void | SetBackground (const char *imageName) |
Sets the background image, logs error if NULL. | |
virtual void | SetBackgroundAlpha (int alphaValue) |
Sets the alpha level of the background. | |
void | SetBackgroundColor (int r, int g, int b) |
Sets the background color. | |
void | SetColour (int newColour=-2) |
Set text color. | |
void | SetContextMenu (const csString &fileName) |
Sets name of the PAWS xml-file that describes context menu of our widget. | |
void | SetDefaultToolTip () |
Sets the tool tip to the one defined in the XML. | |
void | SetExtraData (iWidgetData *data) |
Stores extra data into this widget. | |
void | SetFactory (const char *myfactory) |
Sets the type of factory. | |
void | SetFade (bool value) |
Used to control the fading feature of the widget. | |
void | SetFadeSpeed (float speed) |
Sets the fading speed. | |
void | SetFilename (const char *name) |
Changes filename to the name provided. | |
void | SetFont (const char *fontName, int Size=0) |
Set font to use programmatically. | |
void | SetFontScaling (bool value) |
Used to control the font scaling of the widget. | |
void | SetFontStyle (int style) |
Sets the current font style. | |
virtual void | SetForceSize (int newWidth, int newHeight) |
Same as above, but does not resize children. | |
void | SetID (int newID) |
Change the id of a widget. | |
void | SetMaskingImage (const char *image) |
Sets a masking image which will be drawn after the normal stuff. | |
void | SetMaxAlpha (int value) |
Sets the maximum alpha of this widget. | |
void | SetMaxSize (int width, int height) |
Set the max size for height and width. | |
void | SetMinAlpha (int value) |
Sets the minimim alpha of this widget. | |
void | SetMinSize (int width, int height) |
Set the minimum height and width to protect the widget from negatives. | |
void | SetModalState (bool isModal) |
Registers mode with the windowManager. | |
void | SetMovable (bool value) |
Makes a widget movable. | |
void | SetName (const char *newName) |
Set the name of this widget. | |
void | SetNeedsRender (bool needs) |
Marks that we need to r2t. | |
void | SetParent (pawsWidget *widget) |
Set the owner of this widget. | |
virtual void | SetProperty (const char *ptr, double value) |
virtual void | SetRelativeFrame (int x, int y, int width, int height) |
Set the size of this widget and it's position relative to the parent. | |
virtual void | SetRelativeFramePos (int x, int y) |
Set the position of this widget relative to the parent. | |
virtual void | SetRelativeFrameSize (int width, int height) |
Sets defaultFrame and screenFrame size attributes. | |
void | SetResizeShow (bool v) |
Sets the showResize flag, controlling if the resize widget should be drawn. | |
virtual void | SetSize (int newWidth, int newHeight) |
Set the size of a particlar widget. | |
void | SetTitle (const char *title) |
Sets the border title of this widget. | |
bool | SetTitle (const char *text, const char *image, const char *align, const char *close_button, const bool shadowTitle=true) |
Sets up the title bar for the widget. | |
void | SetToolTip (const char *text) |
Changes the text for a tool tip. | |
virtual bool | Setup (iDocumentNode *) |
Setup this widget. | |
void | SetVisibility (bool visible) |
Make the widget visible or hides it. | |
virtual void | SetXMLBinding (csString &xmlbinding) |
Sets the xml nodes of this widget. | |
virtual void | Show () |
Makes widget visible and brings it to the front. | |
virtual void | ShowBehind () |
Makes widget visible and brings it to the front but behind widget with current focus. | |
virtual void | StopResize () |
Called once the mouse up is done after resizing a widget. | |
const char * | ToString () |
virtual void | UseBorder (const char *style=0) |
Creates a new border and links it to the widget. | |
virtual pawsWidget * | WidgetAt (int x, int y) |
Locate a widget that is at these screen coordindates. | |
virtual | ~pawsWidget () |
Public Attributes | |
csArray< csString > | publishList |
Protected Member Functions | |
int | CalcChildPosition (pawsWidget *child) |
Calculates the right position in array of children for a given child (depends on always-on-top state). | |
bool | CreateContextMenu () |
Creates context menu from file ('contextMenuFile' attribute) | |
int | GetAttachFlag (const char *flag) |
Convert from string flag to int flag. | |
void | LoadBorderColours (iDocumentNode *node) |
Loads custom border color preferences. | |
bool | ReadDefaultWidgetStyles (iDocumentNode *node) |
int | ResizeFlags (int mouseX, int mouseY) |
This will check to see if the mouse is over the resize hot spot. | |
void | SetCloseButtonPos () |
Gets button from widget and sets it's location. | |
Protected Attributes | |
int | alpha |
The original background alpha. | |
int | alphaMin |
The minimum background alpha. | |
bool | alwaysOnTop |
Is this windows painted on top of other windows. | |
int | attachFlags |
The attachpoints for when a resize takes place. | |
int | bgColour |
Stores the bgColour for this widget. | |
csRef< iPawsImage > | bgImage |
Background image. | |
pawsBorder * | border |
border created by GetBorder(). | |
int | borderColours [5] |
Custom border colors for this window. | |
bool | borderTitleShadow |
whether the title in the border should be shadow font | |
csArray< pawsWidget * > | children |
The child widgets. | |
csRect | clipRect |
Current clipping rectangle. | |
pawsButton * | close_widget |
Used in SetTitle() for the new close button. | |
csString | closeName |
Old name of the widget with "_close" appended by SetName(). | |
bool | configurable |
Determines if the settings (alpha, fade, etc) of this widget are configurable. | |
pawsMenu * | contextMenu |
Existing context menu of the widget. | |
csString | contextMenuFile |
Path to the file that describes context menu of our widget (invoked by mouse right-click). | |
int | defaultFontColour |
Optional color to use when drawing text with this widget. | |
int | defaultFontShadowColour |
Optional color to use when doing text dropshadows. | |
float | defaultFontSize |
Default font size. | |
csRect | defaultFrame |
The default frame for the widget. | |
csString | defaultToolTip |
Default tool tip string for the widget. | |
csHash< csString, csString > | defaultWidgetStyles |
iWidgetData * | extraData |
Holds any extra data the widget may need. | |
csString | factory |
factory name | |
bool | fade |
Set to false to disable fading. | |
float | fadeSpeed |
The speed of the fading process. | |
float | fadeVal |
The direction and percentage of current fade in progress. | |
csString | filename |
filename to load from or save to. | |
csString | fontName |
Name of currently selected font. | |
float | fontSize |
Current font size. | |
int | fontStyle |
Current font style. | |
csRef< iGraphics2D > | graphics2D |
The 2D graphics interface. | |
bool | hasBorderColours |
Flag to indicate using custom border colors. | |
bool | hasFocus |
Flag for widget focus. | |
bool | hasMouseFocus |
Flag for mouse over behavior. | |
int | id |
The id of the widget. | |
bool | ignore |
Flag determines if WidgetAT() ignores this widget. | |
bool | isResizable |
Determines if this widget can be resized by user. | |
bool | keepaspect |
Enforce keeping the default aspect ratio when resizing. | |
int | margin |
Stores margin value. Used in LoadAttributes(). | |
csRef< iPawsImage > | maskImage |
Masking image, used for nice-looking stuff. | |
int | max_height |
Defines the maximum height that the widget can be. | |
int | max_width |
Defines the maximum width that the widget can be. | |
int | min_height |
Defines the minimum height that the widget can be. | |
int | min_width |
Defines the minimum width that the widget can be. | |
bool | movable |
Determines if this widget is movable. | |
csRef< iFont > | myFont |
Optional font to use when drawing this widget. | |
csString | name |
The name of this widget. | |
bool | needsRender |
Whether we need to do a r2t update. | |
pawsWidget * | onEnter |
Widget to call if enter is pressed. | |
bool | overwrite_subscription |
Flag of whether OnUpdateData should overwrite the previous value or add to it. | |
pawsWidget * | parent |
This widget's parent. | |
bool | parentDraw |
Whether to draw this widget (different from visible, used to decide if Draw() is called via parent-child tree). | |
bool | resizeToScreen |
Determines if this widget should be auto resized with screen resolution. | |
bool | saveWidgetPositions |
Determines if this widget should write/load it's position from a config file. | |
bool | scaleFont |
Determines whether or not to scale font when a widget it resized. | |
csRect | screenFrame |
The screen area of the widget. | |
pawsScript * | scriptEvents [PW_SCRIPT_EVENT_COUNT] |
bool | showOnMouseOver |
Stores status of showOnMouseOver. | |
csString | showOnMouseOver_image |
Stores the bgimage name if showOnMouseOver is true. | |
bool | showResize |
If the resize widget should be drawn. | |
csString | subscribedVar |
The variable that this widget is subscribed to. | |
csString | subscription_format |
csArray< pawsWidget * > | taborder |
Contains the children for tabbing. | |
pawsTitle * | titleBar |
reference to titleBar object, if any | |
csString | toolTip |
Tooltip to be displayed. | |
bool | visible |
Flag to determine visiblity. | |
csString | xmlbinding |
Used in the SelfPopulate functions to map to xml nodes for each widget. |
The main base widget that all other widgets should inherit from.
Definition at line 116 of file pawswidget.h.
pawsWidget::pawsWidget | ( | ) |
pawsWidget::pawsWidget | ( | const pawsWidget & | origin | ) |
virtual pawsWidget::~pawsWidget | ( | ) | [virtual] |
void pawsWidget::AddChild | ( | pawsWidget * | widget | ) |
Add a child widget to this widget.
This widget is then responsible for deleting this child.
widget | The child to add. |
void pawsWidget::AddChild | ( | size_t | Index, |
pawsWidget * | widget | ||
) |
Add a child widget to this widget at a specified position.
This widget is then responsible for deleting this child.
widget | The child to add. |
virtual void pawsWidget::BringToTop | ( | pawsWidget * | widget | ) | [virtual] |
Move this widget up the z order to the top.
If the widget is alwaysOnTop, it will be placed in position 0. If the widget is not alwaysOnTop, it will be placed after the last alwaysOnTop widget. Will also recurse up through the parents to bring it up as well.
widget | Widget to bring forward. |
Reimplemented in pawsNpcDialogWindow.
int pawsWidget::CalcChildPosition | ( | pawsWidget * | child | ) | [protected] |
Calculates the right position in array of children for a given child (depends on always-on-top state).
virtual double pawsWidget::CalcFunction | ( | MathEnvironment * | env, |
const char * | functionName, | ||
const double * | params | ||
) | [virtual] |
Implements iScriptableVar.
Reimplemented in pawsSketchWindow, and pawsMusicWindow.
Move this widget so that its center is at given location.
x | Screen coordinate X. |
y | Screen coordinage Y. |
virtual void pawsWidget::CenterToMouse | ( | ) | [virtual] |
Move this widget so that its center is at mouse pointer, but it is fully on screen.
void pawsWidget::ChangeFontSize | ( | float | newSize | ) |
Change font to new size and reload font to make it take effect.
newSize | The font size to change to. |
virtual bool pawsWidget::CheckButtonPressed | ( | int | button, |
int | modifiers, | ||
pawsWidget * | pressedWidget | ||
) | [virtual] |
Test button for activity.
button | The button to test. |
modifiers | Modifier to use. |
pressedWidget | The widget with the event. |
virtual bool pawsWidget::CheckButtonReleased | ( | int | button, |
int | modifiers, | ||
pawsWidget * | pressedWidget | ||
) | [virtual] |
Test button for activity.
button | The button to test. |
modifiers | Modifier to use. |
pressedWidget | The widget with the event. |
virtual bool pawsWidget::CheckKeyHandled | ( | int | ) | [inline, virtual] |
Allow pawsButton to simulate button pushes based on keypresses.
Return true if key is handled.
Reimplemented in pawsDnDButton, and pawsButton.
Definition at line 499 of file pawswidget.h.
void pawsWidget::ClearBackgroundColor | ( | ) | [inline] |
Definition at line 1785 of file pawswidget.h.
void pawsWidget::ClearMaskingImage | ( | ) |
Clears the masking image.
csRect pawsWidget::ClipRect | ( | ) | [inline] |
This returns the current clipping rectangle.
Definition at line 1560 of file pawswidget.h.
void pawsWidget::ClipToParent | ( | bool | allowForBackgroundBorder | ) |
Determines clipping area to use.
If a widget is the top level it clips to the canvas. If it has a parent it calculates the intersection between either it's border or screenframe and parent clip. Updates clipRect for future drawing.
virtual void pawsWidget::Close | ( | ) | [inline, virtual] |
Simply calls Hide() unless overidden.
Reimplemented in pawsInventoryWindow, pawsActiveMagicWindow, pawsExchangeWindow, pawsGMSpawnWindow, pawsMerchantWindow, pawsPetitionWindow, pawsPetStatWindow, pawsSkillWindow, pawsStorageWindow, pawsTutorialWindow, pawsComboPromptWindow, pawsNumberPromptWindow, and WidgetConfigWindow.
Definition at line 470 of file pawswidget.h.
Determines if the coordinates are within this widget.
Typically the border or screenFrame.
x | The x screen position. |
y | The y screen position. |
Reimplemented in pawsControlWindow.
bool pawsWidget::CreateContextMenu | ( | ) | [protected] |
Creates context menu from file ('contextMenuFile' attribute)
virtual void pawsWidget::CreateWidgetConfigWindow | ( | ) | [virtual] |
Creates a popup window that the user can use to adjust the settings of this window.
virtual void pawsWidget::DeleteChild | ( | pawsWidget * | widget | ) | [virtual] |
Removes the widget from list of children and destructs it.
widget | The child to delete. |
Reimplemented in psMainWidget.
void pawsWidget::DeleteYourself | ( | ) | [inline] |
Removes and destructs itself.
Definition at line 531 of file pawswidget.h.
virtual void pawsWidget::DestroyWidgetConfigWindow | ( | ) | [virtual] |
Called by ApplyAlphaOnChildren to remove the config window to prevent weird stuff.
virtual void pawsWidget::Draw | ( | ) | [virtual] |
Draws the widget and all of it's children.
Reimplemented in pawsCharBirth, pawsCharParents, pawsCharacterPickerWindow, pawsChildhoodWindow, pawsConfigKeys, pawsCraftWindow, pawsCraftCancelWindow, pawsCreditsWindow, pawsDnDButton, pawsGameTile, pawsSketchWindow, pawsInfoWindow, pawsInteractWindow, pawsLifeEventWindow, pawsLoadWindow, pawsLoginWindow, pawsMoney, pawsNpcDialogWindow, pawsPetStatWindow, pawsSheetLine, pawsSkillWindow, pawsSkillIndicator, pawsSlot, pawsSpellCancelWindow, pawsSplashWindow, pawsSummaryWindow, psMainWidget, pawsButton, pawsScrollBar, pawsGenericView, pawsKeySelectBox, pawsMenu, pawsMenuItem, pawsMenuSeparator, pawsObjectView, pawsProgressBar, pawsTextBox, pawsMessageTextBox, pawsEditTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsMultilineEditTextBox, pawsFadingTextBox, pawsDocumentView, pawsMultiPageDocumentView, pawsTitle, pawsTree, and pawsSeqTreeNode.
virtual void pawsWidget::Draw3D | ( | iGraphics3D * | ) | [inline, virtual] |
Reimplemented in pawsObjectView.
Definition at line 758 of file pawswidget.h.
virtual void pawsWidget::DrawBackground | ( | ) | [virtual] |
Draws the background with a color or an image.
Reimplemented in pawsNpcDialogWindow.
virtual void pawsWidget::DrawChildren | ( | ) | [virtual] |
Draws all children marked visible.
Reimplemented in psMainWidget.
void pawsWidget::DrawForeground | ( | ) |
Does the second part of the drawing drawing the background of the window.
virtual void pawsWidget::DrawMask | ( | ) | [virtual] |
Draws the mask picture.
Reimplemented in pawsDnDButton.
This draws the tool tip if a widget is visible and a tool tip is available.
x | The x screen position. |
y | The y screen position. |
Draw text in the widget at specified location.
text | The text to draw. |
x | The x screen position. |
y | The x screen position. |
style | When set at -1 causes widget to call GetFontStyle(). |
bool pawsWidget::DrawWindow | ( | ) |
Does the first part of the drawing.
It draws the background of the window.
virtual void pawsWidget::Dump | ( | csString | tab = "" | ) | [virtual] |
Prints the widget names for the widget and all it's children.
tab | String to set tab format. |
const char* pawsWidget::FindDefaultWidgetStyle | ( | const char * | factoryName | ) |
pawsWidget* pawsWidget::FindWidget | ( | const char * | name, |
bool | complain = true |
||
) |
Find a child widget of this widget.
Recurses down through the children as well looking for widget.
name | The name of the widget to look for. |
complain | If true, print an error message if widget is not found. |
pawsWidget* pawsWidget::FindWidget | ( | int | id, |
bool | complain = true |
||
) |
Find a child widget of this widget.
Recurses down through the children as well looking for widget.
id | The id of the widget to look for. |
complain | If true, print an error message if widget is not found. |
pawsWidget* pawsWidget::FindWidgetXMLBinding | ( | const char * | xmlbinding | ) |
Find a child widget of this widget with the given XML binding.
Recurses down through the children as well looking for widget.
xmlbinding | The xmlbinding of the widget to look for. |
void pawsWidget::FormatToolTip | ( | const char * | fmt, |
... | |||
) |
Changes the format of a tool tip.
fmt | The format string. |
... | These define the new format. |
Returns the actual Height assuming the passed value was in 800x600 resolution.
Definition at line 1412 of file pawswidget.h.
Returns the actual width assuming the passed value was in 800x600 resolution.
Definition at line 1390 of file pawswidget.h.
int pawsWidget::GetAttachFlag | ( | const char * | flag | ) | [protected] |
Convert from string flag to int flag.
csString pawsWidget::GetBackground | ( | ) |
Retrieve the background image name.
virtual pawsBorder* pawsWidget::GetBorder | ( | ) | [inline, virtual] |
This returns the border created by UseBorder().
Definition at line 1137 of file pawswidget.h.
Get the color for this widgets border.
which | The index value in borderColor to get. |
virtual int pawsWidget::GetBorderStyle | ( | ) | [inline, virtual] |
This returns the BORDER_BUMP style.
Reimplemented in pawsKeySelectBox, pawsTextBox, pawsMessageTextBox, pawsEditTextBox, and pawsMultilineEditTextBox.
Definition at line 1148 of file pawswidget.h.
pawsWidget* pawsWidget::GetChild | ( | size_t | i | ) | [inline] |
Used if you need to loop through the children of a widget.
i | ID of the child |
Definition at line 549 of file pawswidget.h.
size_t pawsWidget::GetChildrenCount | ( | ) | [inline] |
Used if you need to loop through the children of a widget.
Definition at line 559 of file pawswidget.h.
const char* pawsWidget::GetCloseName | ( | ) | [inline] |
Returns the closeName of this widget.
Definition at line 1059 of file pawswidget.h.
virtual csRect pawsWidget::GetDefaultFrame | ( | ) | [inline, virtual] |
iWidgetData* pawsWidget::GetExtraData | ( | ) | [inline] |
Grabs extra data stored in the widget.
Definition at line 1822 of file pawswidget.h.
float pawsWidget::GetFadeSpeed | ( | ) | [inline] |
Gets the fading speed.
Definition at line 1706 of file pawswidget.h.
int pawsWidget::GetFadeVal | ( | ) | [inline] |
Gets the fade value of this widget.
Definition at line 1674 of file pawswidget.h.
const char* pawsWidget::GetFilename | ( | ) |
Returns the filename.
virtual bool pawsWidget::GetFocusOverridesControls | ( | ) | const [inline, virtual] |
Test if the widget should intercept all key presses.
Reimplemented in pawsFingeringWindow, pawsSketchWindow, pawsKeySelectBox, pawsEditTextBox, and pawsMultilineEditTextBox.
Definition at line 1015 of file pawswidget.h.
iFont* pawsWidget::GetFont | ( | bool | scaled = true | ) |
Gets the current font as an iFont.
virtual int pawsWidget::GetFontColour | ( | ) | [virtual] |
Gets the current font color.
Reimplemented in pawsTextBox.
int pawsWidget::GetFontShadowColour | ( | ) |
Gets the current shadow color.
float pawsWidget::GetFontSize | ( | ) |
Gets the current font size.
int pawsWidget::GetFontStyle | ( | ) |
Gets the current font style.
int pawsWidget::GetID | ( | ) | [inline] |
Gets the id of a widget.
Reimplemented in pawsObjectView.
Definition at line 1265 of file pawswidget.h.
Definition at line 1441 of file pawswidget.h.
Definition at line 1430 of file pawswidget.h.
int pawsWidget::GetMaxAlpha | ( | ) | [inline] |
Gets the maximum alpha value of this widget.
Definition at line 1666 of file pawswidget.h.
int pawsWidget::GetMinAlpha | ( | ) | [inline] |
Gets the minimim alpha value of this widget.
Definition at line 1658 of file pawswidget.h.
Definition at line 1508 of file pawswidget.h.
const char* pawsWidget::GetName | ( | ) | [inline] |
Get the name of this widget.
Reimplemented in pawsDnDButton.
Definition at line 1041 of file pawswidget.h.
pawsWidget* pawsWidget::GetParent | ( | ) | [inline] |
Get this widget's parent.
Reimplemented in pawsTreeNode.
Definition at line 650 of file pawswidget.h.
csString pawsWidget::GetPathInWidgetTree | ( | ) |
Returns textual description of path to our widget through the widget tree.
(direct and indirect parents)
virtual double pawsWidget::GetProperty | ( | MathEnvironment * | env, |
const char * | ptr | ||
) | [virtual] |
Implements iScriptableVar.
Reimplemented in pawsCheckBox.
virtual csRect pawsWidget::GetScreenFrame | ( | ) | [virtual] |
Returns the csRect that defines widget area.
csString& pawsWidget::GetToolTip | ( | ) | [inline] |
Gets the text from a tool tip.
Definition at line 1318 of file pawswidget.h.
const char* pawsWidget::GetType | ( | ) | [inline] |
Gets the current factory type.
Definition at line 1381 of file pawswidget.h.
Get the rectangle containing the text DrawWidgetText will produce.
text | The text. |
x | The x screen position. |
y | The x screen position. |
style | When set at -1 causes widget to call GetFontStyle(). |
virtual const csString& pawsWidget::GetXMLBinding | ( | ) | [inline, virtual] |
virtual bool pawsWidget::HasFocus | ( | ) | [inline, virtual] |
Test focus of the widget.
Definition at line 1005 of file pawswidget.h.
virtual void pawsWidget::Hide | ( | ) | [virtual] |
Makes widget invisible and removes focus if widget has current focus.
Sets visible FALSE, hides border if present and then if focused when called it calls SetCurrentFocusedWidget(NULL).
Reimplemented in pawsActiveMagicWindow, pawsFingeringWindow, pawsConfigSound, pawsControlWindow, pawsControlledWindow, pawsCreditsWindow, pawsGameBoard, pawsGlyphWindow, pawsGuildWindow, pawsSketchWindow, pawsInteractWindow, pawsLoadWindow, pawsLoginWindow, pawsMusicWindow, pawsNpcDialogWindow, pawsPetStatWindow, pawsSkillWindow, pawsListBoxRow, and pawsYesNoBox.
virtual void pawsWidget::Ignore | ( | bool | ig | ) | [inline, virtual] |
Definition at line 392 of file pawswidget.h.
bool pawsWidget::Includes | ( | pawsWidget * | widget | ) |
Returns true if widget equals this, or widget is a child of this.
If widget is null, false is returned.
bool pawsWidget::IsAlwaysOnTop | ( | ) | [inline] |
Tests value of this widgets alwaysOnTop flag.
Definition at line 1275 of file pawswidget.h.
bool pawsWidget::IsChildOf | ( | pawsWidget * | someParent | ) |
Returns true, if this widget is the child of 'someParent'.
someParent | The parent to check for. |
bool pawsWidget::IsConfigurable | ( | ) | [inline] |
Tests if widget settings (alpha, fade, etc) are configurable.
Definition at line 1832 of file pawswidget.h.
bool pawsWidget::isFadeEnabled | ( | ) | [inline] |
Gets the fade status of this widget.
Definition at line 1698 of file pawswidget.h.
bool pawsWidget::IsIndirectChild | ( | pawsWidget * | widget | ) |
Returns true, if 'widget' is child of our widget, even if it is indirect.
widget | The widget to test. |
bool pawsWidget::IsResizable | ( | ) | [inline] |
Test widget to see if it is resizable.
Definition at line 794 of file pawswidget.h.
bool pawsWidget::isScalingFont | ( | ) | [inline] |
Returns whether or not font is being auto-scaled.
Definition at line 1722 of file pawswidget.h.
bool pawsWidget::IsVisible | ( | ) | [inline] |
virtual bool pawsWidget::Load | ( | iDocumentNode * | node | ) | [virtual] |
Load a widget based on its <widget></widget> tag.
node | The xml data for the widget. |
Reimplemented in pawsMenuItem, pawsTreeNode, pawsWidgetTreeNode, pawsSeqTreeNode, and pawsSimpleTreeNode.
virtual bool pawsWidget::LoadAttributes | ( | iDocumentNode * | node | ) | [virtual] |
Load standard widget attributes based on its <widget></widget> tag.
node | The xml data for the widget. |
void pawsWidget::LoadBorderColours | ( | iDocumentNode * | node | ) | [protected] |
Loads custom border color preferences.
virtual bool pawsWidget::LoadChildren | ( | iDocumentNode * | node | ) | [virtual] |
Load widget children based on subtags of its <widget></widget> tag.
node | The xml data for the widget. |
Reimplemented in pawsTree.
virtual bool pawsWidget::LoadEventScripts | ( | iDocumentNode * | node | ) | [virtual] |
Load event scripts for this widget.
node | The xml node for the widget. |
bool pawsWidget::LoadFromFile | ( | const csString & | fileName | ) |
Parses XML file 'fileName', finds first widget tag and Load()s itself from this tag.
'fileName' is standard path of the XML file to load.
virtual csRect pawsWidget::LoadPositions | ( | ) | [virtual] |
Get the position of this widget that was stored in a cfg file.
virtual void pawsWidget::LoadSettings | ( | ) | [virtual] |
Loads current widget settings from an XML file.
void pawsWidget::MakeFullyVisible | ( | ) |
If some part of the widget is not within the rectangle of its parent, then the widget is moved inside (if it is small enough).
virtual void pawsWidget::MouseOver | ( | bool | value | ) | [virtual] |
Sets hasMouseFocus.
value | TRUE causes widget to react to mouse focus. |
Reimplemented in pawsDnDButton.
Move a widget by a delta amount.
This will recurse through all the children calling MoveDelta on each.
dx | Delta x |
dy | Delta y |
Reimplemented in pawsTitle.
Moves this widget and all of its children to a new screen location.
x | new x |
y | new y |
Reimplemented in pawsTitle.
bool pawsWidget::NeedsRender | ( | ) | const [inline] |
Whether we need to r2t.
Definition at line 1875 of file pawswidget.h.
virtual void pawsWidget::NewSubscription | ( | const char * | dataname | ) | [inline, virtual] |
Implements iPAWSSubscriber.
Definition at line 1838 of file pawswidget.h.
virtual bool pawsWidget::OnButtonPressed | ( | int | button, |
int | keyModifier, | ||
pawsWidget * | widget | ||
) | [inline, virtual] |
Called whenever a button is pressed.
button | The button pressed. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented in pawsAttackBookWindow, pawsBartenderWindow, pawsChatWindow, pawsInventoryWindow, pawsBankWindow, pawsBookReadingWindow, pawsCharBirth, pawsCreationMain, pawsCharDescription, pawsCharParents, pawsCharacterPickerWindow, pawsChildhoodWindow, pawsConfigActiveMagic, pawsConfigAutoexec, pawsConfigCamera, pawsConfigChatBubbles, pawsConfigChatFont, pawsConfigChatLogs, pawsConfigChatTabCompletion, pawsConfigDetails, pawsConfigEntityLabels, pawsConfigKeys, pawsFingeringWindow, pawsConfigMouse, pawsConfigShadows, pawsConfigShortcut, pawsConfigSound, pawsConfigSpellChecker, pawsConfigTextPage, pawsConfigTooltips, pawsContainerDescWindow, pawsCraftCancelWindow, pawsCreditsWindow, pawsDetailWindow, pawsExchangeWindow, pawsGlyphWindow, pawsGMActionWindow, pawsGMSpawnWindow, pawsGuildWindow, pawsIgnoreWindow, pawsInfoWindow, pawsInteractWindow, pawsItemDescriptionWindow, pawsLifeEventWindow, pawsLoginWindow, pawsLootWindow, pawsMerchantWindow, pawsMusicWindow, pawsNpcDialogWindow, pawsPetStatWindow, pawsQuestRewardWindow, pawsQuestListWindow, pawsQuitInfoBox, pawsScriptHiredNPCWindow, pawsScrollMenu, pawsSkillWindow, pawsSpellBookWindow, pawsSpellCancelWindow, pawsStorageWindow, pawsTutorialNotifyWindow, pawsWritingWindow, pawsShortcutWindow, pawsCheckBox, pawsColorPromptWindow, pawsComboBox, pawsComboPromptWindow, pawsScrollBar, pawsFileNavigation, pawsMenu, pawsMeterPromptWindow, pawsNumberPromptWindow, pawsOkBox, pawsRadioButton, pawsRadioButtonGroup, pawsSelectorBox, pawsSpinBox, pawsTabWindow, WidgetConfigWindow, EEditCameraToolbox, EEditEditEffectToolbox, EEditErrorToolbox, EEditFPSToolbox, EEditLoadEffectToolbox, EEditLoadMapToolbox, EEditParticleListToolbox, EEditPositionToolbox, EEditRenderToolbox, EEditSelectEditAnchor, EEditSelectEditAnchorKeyFrame, EEditSelectFloat, EEditSelectList, EEditSelectNewAnchor, EEditSelectNewAnchorKeyFrame, EEditSelectString, EEditSelectVec3, EEditSelectYesNo, EEditShortcutsToolbox, EEditTargetToolbox, pawsEEdit, pawsLauncherWindow, peEditableWidget, peMenu, and peSkinSelector.
Definition at line 1190 of file pawswidget.h.
virtual bool pawsWidget::OnButtonReleased | ( | int | button, |
int | keyModifier, | ||
pawsWidget * | widget | ||
) | [inline, virtual] |
Called whenever a button is released.
button | The button released. |
keyModifier | Modifier key in effect. |
widget | The widget the button belongs to. |
Reimplemented in pawsBuddyWindow, pawsCharacterPickerWindow, pawsConfigWindow, pawsControlWindow, pawsGmGUIWindow, pawsGuildWindow, pawsPathWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsQuestListWindow, pawsScrollMenu, pawsSummaryWindow, pawsShortcutWindow, pawsScrollBar, pawsSpinBox, pawsStringPromptWindow, pawsYesNoBox, and EEditParticleListToolbox.
Definition at line 1205 of file pawswidget.h.
virtual bool pawsWidget::OnChange | ( | pawsWidget * | widget | ) | [virtual] |
Called whenever a widget is selected.
widget | The widget acted upon. |
Reimplemented in pawsCreationMain, pawsConfigAutoexec, pawsConfigChat, pawsConfigChatBubbles, pawsConfigChatTabCompletion, pawsConfigDetails, pawsConfigEntityLabels, pawsConfigMarriage, pawsConfigMouse, pawsConfigPvP, pawsConfigShadows, pawsConfigSpellChecker, pawsConfigTextPage, pawsGMActionWindow, pawsLoginWindow, pawsScriptHiredNPCWindow, pawsFileNavigation, pawsNumberPromptWindow, pawsStringPromptWindow, and EEditParticleListToolbox.
virtual bool pawsWidget::OnChildMouseEnter | ( | pawsWidget * | child | ) | [virtual] |
Called when mouse enters a child widget.
If child wants to inform parent.
child | The child widget. |
Reimplemented in pawsChatWindow, and pawsControlWindow.
virtual bool pawsWidget::OnChildMouseExit | ( | pawsWidget * | child | ) | [virtual] |
Called when a mouse exits a child widget.
If child wants to inform parent.
child | The child widget. |
Reimplemented in pawsChatWindow, and pawsControlWindow.
virtual bool pawsWidget::OnClipboard | ( | const csString & | content | ) | [virtual] |
Process Clipboard content, as a response to RequestClipboardContent.
content | The content of the clipboard |
Reimplemented in pawsEditTextBox, and pawsMultilineEditTextBox.
Manage mouse double click event.
Reimplemented in pawsChatWindow, pawsGameTile, pawsItemTree, psMainWidget, pawsListBoxRow, and pawsMainWidget.
virtual bool pawsWidget::OnGainFocus | ( | bool | = true | ) | [inline, virtual] |
Changes hasFocus to TRUE and reports status to parent.
Reimplemented in pawsScrollBar, pawsTextBox, pawsMultiLineTextBox, and pawsMultiPageTextBox.
Definition at line 823 of file pawswidget.h.
Process joypadDown messages.
key | The key pressed. |
modifiers | Used to modify behavior. |
virtual bool pawsWidget::OnKeyDown | ( | utf32_char | keyCode, |
utf32_char | keyChar, | ||
int | modifiers | ||
) | [virtual] |
Process keydown messages.
keyCode | The code for the pressed key. |
keyChar | The key pressed. |
modifiers | Used to modify tab behavior. |
Reimplemented in pawsChatWindow, pawsBookReadingWindow, pawsFingeringWindow, pawsSketchWindow, pawsNpcDialogWindow, pawsScrollMenu, psMainWidget, pawsButton, pawsColorPromptWindow, pawsFileNavigation, pawsKeySelectBox, pawsListBoxRow, pawsListBox, pawsMainWidget, pawsStringPromptWindow, pawsMessageTextBox, pawsEditTextBox, pawsMultilineEditTextBox, and pawsTree.
virtual void pawsWidget::OnListAction | ( | pawsListBox * | selected, |
int | status | ||
) | [inline, virtual] |
Called whenever an item in a child list box is selected.
selected | The listbox that has the item selected. |
status | From listbox when a row is selected. |
Reimplemented in pawsAttackBookWindow, pawsBuddyWindow, pawsCharBirth, pawsCharParents, pawsChildhoodWindow, pawsConfigActiveMagic, pawsConfigAutoexec, pawsConfigChatBubbles, pawsConfigChatFont, pawsConfigChatLogs, pawsConfigChatTabCompletion, pawsConfigEntityInteraction, pawsConfigShadows, pawsConfigShortcut, pawsConfigSound, pawsConfigSpellChecker, pawsConfigTextPage, pawsGmGUIWindow, pawsIgnoreWindow, pawsLifeEventWindow, pawsLoginWindow, pawsMerchantWindow, pawsModsWindow, pawsNpcDialogWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsPetStatWindow, pawsQuestListWindow, pawsSkillWindow, pawsSpellBookWindow, pawsStorageWindow, pawsComboBox, pawsFileNavigation, pawsSelectorBox, EEditLoadEffectToolbox, EEditParticleListToolbox, EEditRenderToolbox, EEditSelectList, EEditShortcutsToolbox, and peSkinSelector.
Definition at line 1345 of file pawswidget.h.
virtual void pawsWidget::OnLostFocus | ( | ) | [inline, virtual] |
Sets hasFocus false and notifys parent.
Reimplemented in pawsChatWindow, pawsThumb, and pawsSpinBox.
Definition at line 834 of file pawswidget.h.
virtual bool pawsWidget::OnMenuAction | ( | pawsWidget * | widget, |
const pawsMenuAction & | action | ||
) | [virtual] |
Called whenever a menu action occurs.
widget | The widget acted upon. |
action | The action to take. |
Reimplemented in pawsChatWindow, and pawsGroupWindow.
Manage mouse down event to test for and apply window changes.
button | Type of button: 1 resizable or movable, 2 context menu or config window. |
modifiers | Used with PAWS_CONSTRUCTION. |
x | Used to test for resize. |
y | Used to test for resize. |
Reimplemented in pawsChatWindow, pawsInventoryWindow, pawsBookReadingWindow, pawsConfigChatBubbles, pawsFingeringWindow, pawsDnDButton, pawsGameTile, pawsGlyphWindow, pawsSketchWindow, pawsInteractWindow, pawsInventoryDollView, pawsNpcDialogWindow, pawsScrollMenu, pawsSheetLine, pawsSlot, psMainWidget, pawsShortcutWindow, pawsButton, pawsScrollBar, pawsListBoxRow, pawsListBox, pawsMainWidget, pawsMenu, pawsObjectView, pawsMessageTextBox, pawsEditTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsMultilineEditTextBox, and pawsTree.
virtual bool pawsWidget::OnMouseEnter | ( | ) | [virtual] |
Called whenever the mouse enters this widget.
Reimplemented in pawsControlWindow, and pawsButton.
virtual bool pawsWidget::OnMouseExit | ( | ) | [virtual] |
Called whenever the mouse leaves this widget.
Reimplemented in pawsControlWindow, pawsButton, pawsScrollBar, and pawsObjectView.
Manage mouse up event.
Reimplemented in pawsDnDButton, pawsSketchWindow, psMainWidget, pawsButton, pawsThumb, pawsScrollBar, pawsMainWidget, pawsObjectView, and pawsMultilineEditTextBox.
virtual void pawsWidget::OnResize | ( | ) | [virtual] |
Sets the new position of the close button.
Reimplemented in pawsActiveMagicWindow, pawsBuddyWindow, pawsScrollMenu, pawsShortcutWindow, pawsScrollBar, pawsObjectView, pawsMessageTextBox, and pawsMultilineEditTextBox.
virtual bool pawsWidget::OnScroll | ( | int | scrollDirection, |
pawsScrollBar * | widget | ||
) | [inline, virtual] |
Called whenever a window is scrolled.
scrollDirection | The direction to move. |
widget | The scrollbar widget being manipulated. |
Reimplemented in pawsConfigActiveMagic, pawsConfigChatBubbles, pawsConfigChatFont, pawsConfigDetails, pawsConfigHPandMana, pawsConfigShortcut, pawsConfigSound, pawsInfoWindow, pawsMusicWindow, pawsShortcutWindow, pawsColorPromptWindow, pawsListBox, pawsNumberPromptWindow, pawsMessageTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsMultilineEditTextBox, pawsTree, WidgetConfigWindow, and EEditParticleListToolbox.
Definition at line 1219 of file pawswidget.h.
virtual bool pawsWidget::OnSelected | ( | pawsWidget * | widget | ) | [virtual] |
Called whenever a widget is selected.
widget | The selected widget. |
Reimplemented in pawsConfigWindow, pawsCraftWindow, pawsGMSpawnWindow, pawsHelp, EEditEditEffectToolbox, and peWidgetTree.
virtual void pawsWidget::OnUpdateData | ( | const char * | , |
PAWSData & | |||
) | [inline, virtual] |
Implements iPAWSSubscriber.
Reimplemented in pawsDnDButton, pawsMoney, pawsSlot, pawsCheckBox, pawsScrollBar, pawsProgressBar, pawsTextBox, pawsMessageTextBox, pawsEditTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsMultilineEditTextBox, and EEditEditEffectToolbox.
Definition at line 1837 of file pawswidget.h.
virtual bool pawsWidget::ParentDraw | ( | ) | const [inline, virtual] |
Whether to draw via the parent-child draw tree.
Definition at line 782 of file pawswidget.h.
virtual void pawsWidget::PerformAction | ( | const char * | action | ) | [virtual] |
Does an action based on this string.
action | The action to perform. |
Reimplemented in pawsChatWindow.
virtual bool pawsWidget::PostSetup | ( | ) | [inline, virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented in pawsAttackBookWindow, pawsBartenderWindow, pawsChatWindow, pawsInventoryWindow, pawsActionLocationWindow, pawsActiveMagicWindow, pawsBankWindow, pawsBookReadingWindow, pawsBuddyWindow, pawsCharBirth, pawsCreationMain, pawsCharDescription, pawsCharParents, pawsCharacterPickerWindow, pawsChildhoodWindow, pawsConfigActiveMagic, pawsConfigAutoexec, pawsConfigChat, pawsConfigChatBubbles, pawsConfigChatFilter, pawsConfigChatFont, pawsConfigChatLogs, pawsConfigChatTabCompletion, pawsConfigChatTabs, pawsConfigDetails, pawsConfigEntityInteraction, pawsConfigHPandMana, pawsFingeringWindow, pawsConfigMarriage, pawsConfigPopup, pawsConfigPvP, pawsConfigShadows, pawsConfigShortcut, pawsConfigSound, pawsConfigSpellChecker, pawsConfigTextPage, pawsConfigTooltips, pawsConfigWindow, pawsContainerDescWindow, pawsControlWindow, pawsCraftWindow, pawsCraftCancelWindow, pawsCreditsWindow, pawsDetailWindow, pawsExchangeWindow, pawsGameBoard, pawsGlyphWindow, pawsGMActionWindow, pawsGmGUIWindow, pawsGMSpawnWindow, pawsGroupWindow, pawsGuildWindow, pawsHelp, pawsIgnoreWindow, pawsSketchWindow, pawsInfoWindow, pawsInteractWindow, pawsItemDescriptionWindow, pawsLifeEventWindow, pawsLoadWindow, pawsLoginWindow, pawsLootWindow, pawsMerchantWindow, pawsModsWindow, pawsMoney, pawsMusicWindow, pawsNpcDialogWindow, pawsPathWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsPetStatWindow, pawsQuestRewardWindow, pawsQuestListWindow, pawsQuitInfoBox, pawsScriptHiredNPCWindow, pawsScrollMenu, pawsSheetLine, pawsSkillWindow, pawsSmallInventoryWindow, pawsSpellBookWindow, pawsSpellCancelWindow, pawsSplashWindow, pawsStorageWindow, pawsSummaryWindow, pawsTutorialNotifyWindow, pawsTutorialWindow, pawsWritingWindow, pawsShortcutWindow, pawsColorPromptWindow, pawsComboBox, ComboWrapper, pawsComboPromptWindow, pawsScrollBar, pawsFileNavigation, pawsListBox, pawsMenu, pawsMeterPromptWindow, pawsNumberPromptWindow, pawsOkBox, pawsPromptWindow, pawsTabWindow, pawsMessageTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsTitle, pawsTree, pawsYesNoBox, WidgetConfigWindow, EEditCameraToolbox, EEditEditEffectToolbox, EEditErrorToolbox, EEditFPSToolbox, EEditLoadEffectToolbox, EEditLoadMapToolbox, EEditParticleListToolbox, EEditPositionToolbox, EEditRenderToolbox, EEditRequestCombo, EEditSelectEditAnchor, EEditSelectEditAnchorKeyFrame, EEditSelectFloat, EEditSelectList, EEditSelectNewAnchor, EEditSelectNewAnchorKeyFrame, EEditSelectString, EEditSelectVec3, EEditSelectYesNo, EEditShortcutsToolbox, EEditTargetToolbox, pawsEEdit, pawsLauncherWindow, peEditableWidget, peMenu, peSkinSelector, and peWidgetTree.
Definition at line 709 of file pawswidget.h.
bool pawsWidget::ReadDefaultWidgetStyles | ( | iDocumentNode * | node | ) | [protected] |
void pawsWidget::RecalcScreenPositions | ( | ) |
This re-calculates a widget's on screen position to draw based on it's relative position and parent screen location.
void pawsWidget::ReloadWidget | ( | ) |
Reloads widget from XML file.
void pawsWidget::RemoveChild | ( | pawsWidget * | widget | ) |
Removes the widget from list of children but does NOT destruct it.
widget | The widget to remove. |
void pawsWidget::RemoveTitle | ( | ) |
virtual void pawsWidget::ResetToDefaultFrame | ( | ) | [inline, virtual] |
Resets the position, width and height to the default position.
Definition at line 874 of file pawswidget.h.
virtual void pawsWidget::Resize | ( | int | flags | ) | [virtual] |
Resize a widget based on the current mouse position.
This will recurse through all the children calling Resize() on each.
flags | The resize direction. |
Resize a widget by a delta amount.
This will recurse through all the children calling Resize() on each.
dx | Delta x |
dy | Delta y |
flags | The resize direction. |
virtual void pawsWidget::Resize | ( | ) | [virtual] |
Resize a widget based on it's parent's size.
Reimplemented in pawsListBox, pawsMessageTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsDocumentView, pawsMultiPageDocumentView, and pawsTitle.
This will check to see if the mouse is over the resize hot spot.
void pawsWidget::RunScriptEvent | ( | PAWS_WIDGET_SCRIPT_EVENTS | event | ) |
Executes any pawsScript associated with the given event.
virtual void pawsWidget::SavePosition | ( | ) | [virtual] |
Saves the position of this widget to the config file.
This is done if the savedWindowPos is set to true, this can be done inside the xml file as savepositions="yes"
virtual void pawsWidget::SaveSettings | ( | ) | [virtual] |
Saves current widget settings to an XML file.
virtual bool pawsWidget::SelfPopulate | ( | iDocumentNode * | node | ) | [virtual] |
This function allows a widget to fill in its own contents from an xml node supplied and calls the same function for all children.
node | The xml data for the widget. |
Reimplemented in pawsDnDButton, pawsScrollMenu, pawsSlot, pawsButton, pawsCheckBox, pawsListBox, pawsTextBox, pawsMessageTextBox, pawsEditTextBox, and pawsMultilineEditTextBox.
virtual bool pawsWidget::SelfPopulateXML | ( | const char * | xmlstr | ) | [virtual] |
This function parses the xml string and calls SelfPopulate with the resulting DOM structure if valid.
xmlstr | The xml string to process. |
virtual void pawsWidget::SendToBottom | ( | pawsWidget * | widget | ) | [virtual] |
Move this widget down the z order to the bottom.
widget | Widget to bring forward. |
void pawsWidget::SetAlwaysOnTop | ( | bool | value | ) | [inline] |
Sets value of this widgets alwaysOnTop flag.
value | True to set always on top. |
Definition at line 1286 of file pawswidget.h.
virtual void pawsWidget::SetAttachFlags | ( | int | flags | ) | [inline, virtual] |
Modify attachFlags to control widget construction.
flags | The new value for attachFlags. |
Definition at line 903 of file pawswidget.h.
virtual void pawsWidget::SetBackground | ( | const char * | imageName | ) | [virtual] |
Sets the background image, logs error if NULL.
imageName | The new background image. |
virtual void pawsWidget::SetBackgroundAlpha | ( | int | alphaValue | ) | [virtual] |
Sets the alpha level of the background.
alphaValue | The new alpha level. |
Sets the background color.
r | Red |
g | Green |
b | Blue |
void pawsWidget::SetCloseButtonPos | ( | ) | [protected] |
Gets button from widget and sets it's location.
void pawsWidget::SetColour | ( | int | newColour = -2 | ) |
Set text color.
newColour | The colour to use from now on for this widget. If it's -1 it will make the selection at runtime (by checking first the parent then the default colour) If it's -2 (default) it will make the choice upon this call by setting the default color. |
void pawsWidget::SetContextMenu | ( | const csString & | fileName | ) | [inline] |
Sets name of the PAWS xml-file that describes context menu of our widget.
Definition at line 1529 of file pawswidget.h.
void pawsWidget::SetDefaultToolTip | ( | ) | [inline] |
Sets the tool tip to the one defined in the XML.
Definition at line 1334 of file pawswidget.h.
void pawsWidget::SetExtraData | ( | iWidgetData * | data | ) | [inline] |
Stores extra data into this widget.
data | The extra data to store. |
Definition at line 1811 of file pawswidget.h.
void pawsWidget::SetFactory | ( | const char * | myfactory | ) | [inline] |
Sets the type of factory.
myfactory | The new factory type. |
Definition at line 1371 of file pawswidget.h.
void pawsWidget::SetFade | ( | bool | value | ) |
Used to control the fading feature of the widget.
value | True if fading feature should be on. |
void pawsWidget::SetFadeSpeed | ( | float | speed | ) | [inline] |
Sets the fading speed.
Definition at line 1714 of file pawswidget.h.
void pawsWidget::SetFilename | ( | const char * | name | ) |
Changes filename to the name provided.
void pawsWidget::SetFont | ( | const char * | fontName, |
int | Size = 0 |
||
) |
Set font to use programmatically.
void pawsWidget::SetFontScaling | ( | bool | value | ) |
Used to control the font scaling of the widget.
value | True if font scaling should be enabled. |
void pawsWidget::SetFontStyle | ( | int | style | ) |
Sets the current font style.
Same as above, but does not resize children.
void pawsWidget::SetID | ( | int | newID | ) | [inline] |
Change the id of a widget.
newID | The id number to change to. |
Definition at line 1255 of file pawswidget.h.
void pawsWidget::SetMaskingImage | ( | const char * | image | ) |
Sets a masking image which will be drawn after the normal stuff.
image | The image resource name. |
Reimplemented in pawsDnDButton.
void pawsWidget::SetMaxAlpha | ( | int | value | ) | [inline] |
Sets the maximum alpha of this widget.
Definition at line 1690 of file pawswidget.h.
Set the max size for height and width.
Definition at line 1519 of file pawswidget.h.
void pawsWidget::SetMinAlpha | ( | int | value | ) | [inline] |
Sets the minimim alpha of this widget.
Definition at line 1682 of file pawswidget.h.
Set the minimum height and width to protect the widget from negatives.
Definition at line 1502 of file pawswidget.h.
void pawsWidget::SetModalState | ( | bool | isModal | ) |
Registers mode with the windowManager.
isModal | set TRUE to make the widget modal. |
void pawsWidget::SetMovable | ( | bool | value | ) | [inline] |
Makes a widget movable.
value | True if movable. |
Definition at line 1298 of file pawswidget.h.
void pawsWidget::SetName | ( | const char * | newName | ) | [inline] |
Set the name of this widget.
Definition at line 1049 of file pawswidget.h.
void pawsWidget::SetNeedsRender | ( | bool | needs | ) | [inline] |
Marks that we need to r2t.
Definition at line 1864 of file pawswidget.h.
void pawsWidget::SetParent | ( | pawsWidget * | widget | ) |
Set the owner of this widget.
widget | The owner of this widget. |
virtual void pawsWidget::SetProperty | ( | const char * | ptr, |
double | value | ||
) | [virtual] |
Reimplemented in pawsCheckBox.
Set the size of this widget and it's position relative to the parent.
x | The offset from the parent's minimum x value. |
y | The offset from the parent's minimum y value. |
width | Value to be used for default width. |
height | Value to be used for default height. |
Reimplemented in pawsDnDButton.
Set the position of this widget relative to the parent.
x | The offset from the parent's minimum x value. |
y | The offset from the parent's minimum y value. |
Sets defaultFrame and screenFrame size attributes.
width | Value to be used for default width. |
height | Value to be used for default height. |
void pawsWidget::SetResizeShow | ( | bool | v | ) | [inline] |
Sets the showResize flag, controlling if the resize widget should be drawn.
v | Value |
Definition at line 804 of file pawswidget.h.
Set the size of a particlar widget.
This will also call Resize() all of the children widgets to adjust to the new parent size.
newWidth | The new width of this widget. |
newHeight | The new height of this widget. |
void pawsWidget::SetTitle | ( | const char * | title | ) |
Sets the border title of this widget.
bool pawsWidget::SetTitle | ( | const char * | text, |
const char * | image, | ||
const char * | align, | ||
const char * | close_button, | ||
const bool | shadowTitle = true |
||
) |
Sets up the title bar for the widget.
text | The name that should go in the title. |
image | The name of the backround image for the title. |
align | The alignment of the text. |
close_button | "yes" means to add a close button to the title bar. |
shadowTitle | True if title should have shadow. |
void pawsWidget::SetToolTip | ( | const char * | text | ) | [inline] |
Changes the text for a tool tip.
text | The new text. |
Reimplemented in pawsDnDButton, and pawsSlot.
Definition at line 1308 of file pawswidget.h.
virtual bool pawsWidget::Setup | ( | iDocumentNode * | ) | [inline, virtual] |
Setup this widget.
Reimplemented in pawsActiveMagicWindow, pawsDnDButton, pawsMoney, pawsScrollMenu, pawsSlot, pawsShortcutWindow, pawsButton, pawsCheckBox, pawsComboBox, pawsScrollBar, pawsGenericView, pawsKeySelectBox, pawsListBox, pawsMenu, pawsMenuItem, pawsObjectView, pawsProgressBar, pawsRadioButton, pawsRadioButtonGroup, pawsSelectorBox, pawsSpinBox, pawsTextBox, pawsMessageTextBox, pawsEditTextBox, pawsMultiLineTextBox, pawsMultiPageTextBox, pawsMultilineEditTextBox, pawsFadingTextBox, pawsTitle, pawsTree, and pawsSimpleTree.
Definition at line 697 of file pawswidget.h.
void pawsWidget::SetVisibility | ( | bool | visible | ) | [inline] |
Make the widget visible or hides it.
Definition at line 436 of file pawswidget.h.
virtual void pawsWidget::SetXMLBinding | ( | csString & | xmlbinding | ) | [inline, virtual] |
Sets the xml nodes of this widget.
xmlbinding |
Definition at line 640 of file pawswidget.h.
virtual void pawsWidget::Show | ( | ) | [virtual] |
Makes widget visible and brings it to the front.
Sets visible TRUE shows border if present then calls BringToTop() on itself.
Reimplemented in pawsAttackBookWindow, pawsChatWindow, pawsInventoryWindow, pawsActiveMagicWindow, pawsBuddyWindow, pawsCharBirth, pawsCreationMain, pawsCharDescription, pawsCharParents, pawsCharacterPickerWindow, pawsChildhoodWindow, pawsConfigChat, pawsConfigChatBubbles, pawsConfigShadows, pawsConfigSound, pawsConfigTextPage, pawsControlWindow, pawsControlledWindow, pawsCraftWindow, pawsCreditsWindow, pawsGlyphWindow, pawsGMActionWindow, pawsGmGUIWindow, pawsGMSpawnWindow, pawsGuildWindow, pawsInfoWindow, pawsLifeEventWindow, pawsLoadWindow, pawsLoginWindow, pawsModsWindow, pawsNpcDialogWindow, pawsPetitionGMWindow, pawsPetitionWindow, pawsPetStatWindow, pawsQuestListWindow, pawsQuitInfoBox, pawsSkillWindow, pawsSmallInventoryWindow, pawsSpellBookWindow, pawsSummaryWindow, pawsShortcutWindow, pawsFileNavigation, EEditErrorToolbox, and EEditShortcutsToolbox.
virtual void pawsWidget::ShowBehind | ( | ) | [virtual] |
Makes widget visible and brings it to the front but behind widget with current focus.
Sets visible TRUE shows border if present then calls Show() on widget that had focus when ShowBehind() was called.
virtual void pawsWidget::StopResize | ( | ) | [virtual] |
Called once the mouse up is done after resizing a widget.
const char* pawsWidget::ToString | ( | ) | [inline, virtual] |
Implements iScriptableVar.
Definition at line 1918 of file pawswidget.h.
virtual void pawsWidget::UseBorder | ( | const char * | style = 0 | ) | [virtual] |
Creates a new border and links it to the widget.
style | The style of border to create. |
virtual pawsWidget* pawsWidget::WidgetAt | ( | int | x, |
int | y | ||
) | [virtual] |
Locate a widget that is at these screen coordindates.
This will recurse through all the children as well looking for the lowest widget that contains these coordinates.
x | The x screen position |
y | The y screen position |
int pawsWidget::alpha [protected] |
The original background alpha.
Definition at line 254 of file pawswidget.h.
int pawsWidget::alphaMin [protected] |
The minimum background alpha.
Definition at line 257 of file pawswidget.h.
bool pawsWidget::alwaysOnTop [protected] |
Is this windows painted on top of other windows.
Definition at line 202 of file pawswidget.h.
int pawsWidget::attachFlags [protected] |
The attachpoints for when a resize takes place.
Definition at line 242 of file pawswidget.h.
int pawsWidget::bgColour [protected] |
Stores the bgColour for this widget.
Definition at line 230 of file pawswidget.h.
csRef<iPawsImage> pawsWidget::bgImage [protected] |
Background image.
Definition at line 233 of file pawswidget.h.
pawsBorder* pawsWidget::border [protected] |
border created by GetBorder().
Reimplemented in pawsMoney, and pawsMenuItem.
Definition at line 236 of file pawswidget.h.
int pawsWidget::borderColours[5] [protected] |
Custom border colors for this window.
Definition at line 281 of file pawswidget.h.
bool pawsWidget::borderTitleShadow [protected] |
whether the title in the border should be shadow font
Definition at line 239 of file pawswidget.h.
csArray<pawsWidget*> pawsWidget::children [protected] |
The child widgets.
Widgets are drawn from the end of this array to the beginning. Children with alwaysOnTop=true are positioned before all other children in this array.
Definition at line 160 of file pawswidget.h.
csRect pawsWidget::clipRect [protected] |
Current clipping rectangle.
Definition at line 142 of file pawswidget.h.
pawsButton* pawsWidget::close_widget [protected] |
Used in SetTitle() for the new close button.
Definition at line 151 of file pawswidget.h.
csString pawsWidget::closeName [protected] |
Old name of the widget with "_close" appended by SetName().
Definition at line 220 of file pawswidget.h.
bool pawsWidget::configurable [protected] |
Determines if the settings (alpha, fade, etc) of this widget are configurable.
Definition at line 181 of file pawswidget.h.
pawsMenu* pawsWidget::contextMenu [protected] |
Existing context menu of the widget.
Definition at line 278 of file pawswidget.h.
csString pawsWidget::contextMenuFile [protected] |
Path to the file that describes context menu of our widget (invoked by mouse right-click).
Definition at line 271 of file pawswidget.h.
int pawsWidget::defaultFontColour [protected] |
Optional color to use when drawing text with this widget.
Definition at line 290 of file pawswidget.h.
int pawsWidget::defaultFontShadowColour [protected] |
Optional color to use when doing text dropshadows.
Definition at line 293 of file pawswidget.h.
float pawsWidget::defaultFontSize [protected] |
Default font size.
Definition at line 296 of file pawswidget.h.
csRect pawsWidget::defaultFrame [protected] |
The default frame for the widget.
Definition at line 136 of file pawswidget.h.
csString pawsWidget::defaultToolTip [protected] |
Default tool tip string for the widget.
Definition at line 320 of file pawswidget.h.
csHash<csString,csString> pawsWidget::defaultWidgetStyles [protected] |
Definition at line 360 of file pawswidget.h.
iWidgetData* pawsWidget::extraData [protected] |
Holds any extra data the widget may need.
Definition at line 336 of file pawswidget.h.
csString pawsWidget::factory [protected] |
factory name
Definition at line 124 of file pawswidget.h.
bool pawsWidget::fade [protected] |
Set to false to disable fading.
Definition at line 260 of file pawswidget.h.
float pawsWidget::fadeSpeed [protected] |
The speed of the fading process.
Definition at line 263 of file pawswidget.h.
float pawsWidget::fadeVal [protected] |
The direction and percentage of current fade in progress.
Definition at line 251 of file pawswidget.h.
csString pawsWidget::filename [protected] |
filename to load from or save to.
Reimplemented in pawsQuestListWindow.
Definition at line 148 of file pawswidget.h.
csString pawsWidget::fontName [protected] |
Name of currently selected font.
Definition at line 305 of file pawswidget.h.
float pawsWidget::fontSize [protected] |
Current font size.
Definition at line 299 of file pawswidget.h.
int pawsWidget::fontStyle [protected] |
Current font style.
Definition at line 308 of file pawswidget.h.
csRef<iGraphics2D> pawsWidget::graphics2D [protected] |
The 2D graphics interface.
Definition at line 133 of file pawswidget.h.
bool pawsWidget::hasBorderColours [protected] |
Flag to indicate using custom border colors.
Definition at line 284 of file pawswidget.h.
bool pawsWidget::hasFocus [protected] |
Flag for widget focus.
Definition at line 245 of file pawswidget.h.
bool pawsWidget::hasMouseFocus [protected] |
Flag for mouse over behavior.
Definition at line 248 of file pawswidget.h.
int pawsWidget::id [protected] |
The id of the widget.
Definition at line 127 of file pawswidget.h.
bool pawsWidget::ignore [protected] |
Flag determines if WidgetAT() ignores this widget.
Definition at line 330 of file pawswidget.h.
bool pawsWidget::isResizable [protected] |
Determines if this widget can be resized by user.
Definition at line 187 of file pawswidget.h.
bool pawsWidget::keepaspect [protected] |
Enforce keeping the default aspect ratio when resizing.
Definition at line 199 of file pawswidget.h.
int pawsWidget::margin [protected] |
Stores margin value. Used in LoadAttributes().
Definition at line 333 of file pawswidget.h.
csRef<iPawsImage> pawsWidget::maskImage [protected] |
Masking image, used for nice-looking stuff.
Definition at line 323 of file pawswidget.h.
int pawsWidget::max_height [protected] |
Defines the maximum height that the widget can be.
Definition at line 214 of file pawswidget.h.
int pawsWidget::max_width [protected] |
Defines the maximum width that the widget can be.
Definition at line 211 of file pawswidget.h.
int pawsWidget::min_height [protected] |
Defines the minimum height that the widget can be.
Definition at line 208 of file pawswidget.h.
int pawsWidget::min_width [protected] |
Defines the minimum width that the widget can be.
Definition at line 205 of file pawswidget.h.
bool pawsWidget::movable [protected] |
Determines if this widget is movable.
Definition at line 184 of file pawswidget.h.
csRef<iFont> pawsWidget::myFont [protected] |
Optional font to use when drawing this widget.
Definition at line 287 of file pawswidget.h.
csString pawsWidget::name [protected] |
The name of this widget.
Reimplemented in pawsColorPromptWindow, pawsComboPromptWindow, pawsNumberPromptWindow, and pawsStringPromptWindow.
Definition at line 217 of file pawswidget.h.
bool pawsWidget::needsRender [protected] |
Whether we need to do a r2t update.
Definition at line 339 of file pawswidget.h.
pawsWidget* pawsWidget::onEnter [protected] |
Widget to call if enter is pressed.
Definition at line 166 of file pawswidget.h.
bool pawsWidget::overwrite_subscription [protected] |
Flag of whether OnUpdateData should overwrite the previous value or add to it.
Used by Multi-line edit currently.
Definition at line 354 of file pawswidget.h.
pawsWidget* pawsWidget::parent [protected] |
bool pawsWidget::parentDraw [protected] |
Whether to draw this widget (different from visible, used to decide if Draw() is called via parent-child tree).
Definition at line 345 of file pawswidget.h.
csArray<csString> pawsWidget::publishList |
Definition at line 1926 of file pawswidget.h.
bool pawsWidget::resizeToScreen [protected] |
Determines if this widget should be auto resized with screen resolution.
Definition at line 196 of file pawswidget.h.
bool pawsWidget::saveWidgetPositions [protected] |
Determines if this widget should write/load it's position from a config file.
Definition at line 175 of file pawswidget.h.
bool pawsWidget::scaleFont [protected] |
Determines whether or not to scale font when a widget it resized.
Definition at line 302 of file pawswidget.h.
csRect pawsWidget::screenFrame [protected] |
The screen area of the widget.
Definition at line 139 of file pawswidget.h.
pawsScript* pawsWidget::scriptEvents[PW_SCRIPT_EVENT_COUNT] [protected] |
Definition at line 358 of file pawswidget.h.
bool pawsWidget::showOnMouseOver [protected] |
Stores status of showOnMouseOver.
Definition at line 365 of file pawswidget.h.
csString pawsWidget::showOnMouseOver_image [protected] |
Stores the bgimage name if showOnMouseOver is true.
Definition at line 368 of file pawswidget.h.
bool pawsWidget::showResize [protected] |
If the resize widget should be drawn.
Definition at line 190 of file pawswidget.h.
csString pawsWidget::subscribedVar [protected] |
The variable that this widget is subscribed to.
Definition at line 223 of file pawswidget.h.
csString pawsWidget::subscription_format [protected] |
Definition at line 356 of file pawswidget.h.
csArray<pawsWidget*> pawsWidget::taborder [protected] |
Contains the children for tabbing.
Definition at line 163 of file pawswidget.h.
pawsTitle* pawsWidget::titleBar [protected] |
reference to titleBar object, if any
Definition at line 145 of file pawswidget.h.
csString pawsWidget::toolTip [protected] |
Tooltip to be displayed.
Definition at line 317 of file pawswidget.h.
bool pawsWidget::visible [protected] |
Flag to determine visiblity.
Definition at line 169 of file pawswidget.h.
csString pawsWidget::xmlbinding [protected] |
Used in the SelfPopulate functions to map to xml nodes for each widget.
Definition at line 314 of file pawswidget.h.