ManaPlus
|
#include <button.h>
Public Types | |
enum | { BUTTON_STANDARD = 0 , BUTTON_HIGHLIGHTED , BUTTON_PRESSED , BUTTON_DISABLED , BUTTON_COUNT } |
Public Member Functions | |
Button (const Widget2 *const widget, const std::string &skinName) | |
Button (const Widget2 *const widget, const std::string &caption, const std::string &actionEventId, const std::string &skinName, ActionListener *const listener) | |
Button (const Widget2 *const widget, const std::string &caption, const std::string &imageName, const int imageWidth, const int imageHeight, const std::string &actionEventId, const std::string &skinName, ActionListener *const listener) | |
Button (const Widget2 *const widget, const std::string &imageName, const int imageWidth, const int imageHeight, const std::string &actionEventId, const std::string &skinName, ActionListener *const listener) | |
~Button () | |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | updateAlpha () |
void | mouseReleased (MouseEvent &event) |
void | setDescription (const std::string &text) |
std::string | getDescription () const |
int | getClickCount () const |
void | setTag (int tag) |
int | getTag () const |
void | setStick (bool b) |
void | setPressed (bool b) |
void | widgetResized (const Event &event) |
void | widgetMoved (const Event &event) |
void | widgetHidden (const Event &event) |
void | loadImage (const std::string &imageName) |
void | loadImageSet (const std::string &imageName) |
void | setImage (Image *const image) |
void | adjustSize () |
void | keyPressed (KeyEvent &event) |
void | keyReleased (KeyEvent &event) |
bool | isPressed2 () const |
void | setCaption (const std::string &caption) |
const std::string & | getCaption () const |
void | setAlignment (Graphics::Alignment alignment) |
Graphics::Alignment | getAlignment () const |
void | focusLost (const Event &event) |
void | mousePressed (MouseEvent &event) |
void | mouseEntered (MouseEvent &event) |
void | mouseExited (MouseEvent &event) |
void | mouseDragged (MouseEvent &event) |
void | setParent (Widget *widget) |
void | setWindow (Widget *const widget) |
void | setImageWidth (const int width) |
void | setImageHeight (const int height) |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
virtual void | drawFrame (Graphics *graphics) |
virtual void | safeDrawFrame (Graphics *graphics) |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
virtual void | logic () |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
virtual void | setFocusHandler (FocusHandler *const focusHandler) |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
Font * | getFont () const |
void | setFont (Font *const font) |
virtual void | fontChanged () |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
virtual Widget * | getWidgetAt (int x, int y) |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual Rect | getChildrenArea () |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
virtual void | moveToTop (Widget *widget) |
virtual void | moveToBottom (Widget *widget) |
virtual void | focusNext () |
virtual void | focusPrevious () |
virtual void | showWidgetPart (Widget *const widget, const Rect &area) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
virtual void | postInit () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
virtual void | mouseMoved (MouseEvent &event) |
Public Member Functions inherited from KeyListener | |
virtual | ~KeyListener () |
Public Member Functions inherited from FocusListener | |
virtual | ~FocusListener () |
virtual void | focusGained (const Event &event) |
Public Member Functions inherited from WidgetListener | |
virtual | ~WidgetListener () |
virtual void | widgetShown (const Event &event) |
Private Member Functions | |
bool | isPressed () const |
void | init () |
Private Attributes | |
Skin * | mSkin [BUTTON_COUNT] |
std::string | mCaption |
std::string | mDescription |
std::string | mSkinName |
TextChunk | mTextChunk |
ImageCollection * | mVertexes2 |
Color | mEnabledColor |
Color | mEnabledColor2 |
Color | mDisabledColor |
Color | mDisabledColor2 |
Color | mHighlightedColor |
Color | mHighlightedColor2 |
Color | mPressedColor |
Color | mPressedColor2 |
Image ** | mImages |
ImageSet * | mImageSet |
Graphics::Alignment | mAlignment |
int | mClickCount |
int | mSpacing [BUTTON_COUNT] |
int | mTag |
int | mMode |
int | mXOffset |
int | mYOffset |
int | mImageWidth |
int | mImageHeight |
bool | mHasMouse |
bool | mKeyPressed |
bool | mMousePressed |
bool | mStick |
bool | mPressed |
bool | mTextChanged |
Static Private Attributes | |
static float | mAlpha = 1.0 |
Additional Inherited Members | |
Static Public Member Functions inherited from Widget | |
static void | setGlobalFont (Font *const font) |
static Font * | getGloablFont () |
static void | cleanGlobalFont () |
static bool | widgetExists (const Widget *const widget) |
static void | distributeWindowResizeEvent () |
static Widget * | callPostInit (Widget *const widget) |
Data Fields inherited from Widget | |
Visible | mVisible |
Protected Types inherited from Widget | |
typedef std::list< MouseListener * > | MouseListenerList |
typedef MouseListenerList::iterator | MouseListenerIterator |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerIterator |
typedef std::list< ActionListener * > | ActionListenerList |
typedef ActionListenerList::iterator | ActionListenerIterator |
typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
typedef std::list< WidgetListener * > | WidgetListenerList |
typedef WidgetListenerList::iterator | WidgetListenerIterator |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Protected Member Functions inherited from KeyListener | |
KeyListener () | |
Protected Member Functions inherited from FocusListener | |
FocusListener () | |
Protected Member Functions inherited from WidgetListener | |
WidgetListener () | |
Protected Attributes inherited from Widget | |
MouseListenerList | mMouseListeners |
KeyListenerList | mKeyListeners |
ActionListenerList | mActionListeners |
WidgetDeathListenerList | mDeathListeners |
FocusListenerList | mFocusListeners |
WidgetListenerList | mWidgetListeners |
Color | mForegroundColor |
Color | mBackgroundColor |
Color | mBaseColor |
Rect | mDimension |
std::string | mActionEventId |
std::string | mId |
FocusHandler * | mFocusHandler |
FocusHandler * | mInternalFocusHandler |
Widget * | mParent |
Font * | mCurrentFont |
unsigned int | mFrameSize |
bool | mFocusable |
bool | mTabIn |
bool | mTabOut |
bool | mEnabled |
bool | mAllowLogic |
bool | mMouseConsume |
bool | mRedraw |
bool | mSelectable |
Protected Attributes inherited from Widget2 | |
int | mPaletteOffset |
Widget * | mWindow |
Color | mForegroundColor2 |
Static Protected Attributes inherited from Widget | |
static Font * | mGlobalFont = 0 |
Button widget. Same as the Guichan button but with custom look.
anonymous enum |
Button::Button | ( | const Widget2 *const | widget, |
const std::string & | skinName | ||
) |
Default constructor.
Definition at line 99 of file button.cpp.
References adjustSize(), and init().
Button::Button | ( | const Widget2 *const | widget, |
const std::string & | caption, | ||
const std::string & | actionEventId, | ||
const std::string & | skinName, | ||
ActionListener *const | listener | ||
) |
Constructor, sets the caption of the button to the given string and adds the given action listener.
Definition at line 144 of file button.cpp.
References Widget::addActionListener(), adjustSize(), init(), anonymous_namespace{itemlinkhandler.cpp}::listener, and Widget::setActionEventId().
Button::Button | ( | const Widget2 *const | widget, |
const std::string & | caption, | ||
const std::string & | imageName, | ||
const int | imageWidth, | ||
const int | imageHeight, | ||
const std::string & | actionEventId, | ||
const std::string & | skinName, | ||
ActionListener *const | listener | ||
) |
Constructor, sets the caption of the button to the given string and adds the given action listener.
Definition at line 196 of file button.cpp.
References Widget::addActionListener(), adjustSize(), init(), anonymous_namespace{itemlinkhandler.cpp}::listener, loadImageSet(), and Widget::setActionEventId().
Button::Button | ( | const Widget2 *const | widget, |
const std::string & | imageName, | ||
const int | imageWidth, | ||
const int | imageHeight, | ||
const std::string & | actionEventId, | ||
const std::string & | skinName, | ||
ActionListener *const | listener | ||
) |
Constructor, sets the caption of the button to the given string and adds the given action listener.
Definition at line 252 of file button.cpp.
References Widget::addActionListener(), adjustSize(), init(), anonymous_namespace{itemlinkhandler.cpp}::listener, loadImageSet(), and Widget::setActionEventId().
Button::~Button | ( | ) |
Destructor.
Definition at line 337 of file button.cpp.
References BUTTON_COUNT, Resource::decRef(), delete2, TextChunk::deleteImage(), gui, mImages, mImageSet, mSkin, mTextChunk, mVertexes2, Widget2::mWindow, Gui::removeDragged(), Widget::removeWidgetListener(), theme, and Theme::unload().
void Button::adjustSize | ( | ) |
Definition at line 799 of file button.cpp.
References BUTTON_STANDARD, Widget::getFont(), Font::getHeight(), Skin::getPadding(), Font::getWidth(), mCaption, mImageHeight, mImages, mImageWidth, mSkin, mSpacing, Widget::setHeight(), and Widget::setWidth().
Referenced by WindowMenu::addButton(), Pincode::addButtons(), Button(), ChatWindow::ChatWindow(), NpcDialog::createSkinControls(), TabStrip::createWidget(), BuyDialog::init(), EggSelectionDialog::initButtons(), InsertCardDialog::initButtons(), ItemAmountWindow::ItemAmountWindow(), SellDialog::postInit(), StatDebugTab::StatDebugTab(), TextCommandEditor::TextCommandEditor(), and ShopWindow::updateButtonsAndLabels().
|
virtual |
Draws the button.
Implements Widget.
Definition at line 443 of file button.cpp.
References BLOCK_END, BLOCK_START, BUTTON_DISABLED, BUTTON_HIGHLIGHTED, BUTTON_PRESSED, BUTTON_STANDARD, Graphics::calcTileCollection(), Graphics::calcWindow(), Graphics::CENTER, ImageCollection::clear(), TextChunk::color, TextChunk::color2, TextChunk::deleteImage(), Graphics::drawImage(), Graphics::drawTileCollection(), Graphics::finalize(), Font::generate(), Skin::getBorder(), Widget::getFont(), Font::getHeight(), Skin::getPadding(), Graphics::getRedraw(), Graphics::getTopClip(), Font::getWidth(), Rect::height, TextChunk::img, Widget::isEnabled(), isPressed(), isPressed2(), Graphics::LEFT, mAlignment, mCaption, Widget::mDimension, mDisabledColor, mDisabledColor2, mEnabledColor, mEnabledColor2, mHasMouse, mHighlightedColor, mHighlightedColor2, mImageHeight, mImages, mImageWidth, mMode, mPressedColor, mPressedColor2, Widget::mRedraw, mSkin, mSpacing, mTextChanged, mTextChunk, mVertexes2, mXOffset, mYOffset, Graphics::RIGHT, TextChunk::text, TextChunk::textFont, updateAlpha(), Rect::width, ClipRect::xOffset, and ClipRect::yOffset.
|
virtual |
Called when a widget loses focus.
event | Discribes the event. |
Reimplemented from FocusListener.
Definition at line 868 of file button.cpp.
References mKeyPressed, and mMousePressed.
|
inline |
Gets the alignment of the caption.
Definition at line 241 of file button.h.
References mAlignment.
|
inline |
Gets the caption of the button.
Definition at line 222 of file button.h.
References mCaption.
Referenced by PopupMenu::showPopup().
|
inline |
Definition at line 171 of file button.h.
References mClickCount.
Referenced by ChangeDisplay::action().
|
inline |
Definition at line 168 of file button.h.
References mDescription.
Referenced by WindowMenu::mouseMoved(), InventoryWindow::mouseMoved(), and PopupMenu::showPopup().
|
inline |
Definition at line 177 of file button.h.
References mTag.
Referenced by EquipmentWindow::action(), and WindowMenu::mouseMoved().
|
private |
Definition at line 307 of file button.cpp.
References Widget::addFocusListener(), Widget::addKeyListener(), Widget::addMouseListener(), Widget::addWidgetListener(), BUTTON_COUNT, data, Skin::getOption(), Theme::getThemePath(), Theme::load(), Widget::mAllowLogic, mSkin, mSkinName, mSpacing, Widget::setFocusable(), Widget::setFrameSize(), theme, and updateAlpha().
Referenced by Button().
|
private |
Checks if the button is pressed. Convenient method to use when overloading the draw method of the button.
Definition at line 861 of file button.cpp.
References mHasMouse, mKeyPressed, and mMousePressed.
Referenced by draw(), isPressed2(), and safeDraw().
bool Button::isPressed2 | ( | ) | const |
Definition at line 856 of file button.cpp.
References isPressed(), and mPressed.
Referenced by TabStrip::action(), draw(), TabStrip::nextTab(), TabStrip::prevTab(), and safeDraw().
|
virtual |
Called if a key is pressed when the widget has keyboard focus. If a key is held down the widget will generate multiple key presses.
event | Discribes the event. |
Reimplemented from KeyListener.
Definition at line 831 of file button.cpp.
References InputAction::GUI_SELECT, and mKeyPressed.
|
virtual |
Called if a key is released when the widget has keyboard focus.
event | Discribes the event. |
Reimplemented from KeyListener.
Definition at line 842 of file button.cpp.
References Widget::distributeActionEvent(), InputAction::GUI_SELECT, mKeyPressed, mPressed, and mStick.
void Button::loadImage | ( | const std::string & | imageName | ) |
Definition at line 366 of file button.cpp.
References BUTTON_COUNT, Resource::decRef(), Theme::getImageFromThemeXml(), mImages, and mImageSet.
void Button::loadImageSet | ( | const std::string & | imageName | ) |
Definition at line 395 of file button.cpp.
References BUTTON_COUNT, Resource::decRef(), ImageSet::get(), Theme::getImageSetFromTheme(), mImageHeight, mImages, mImageSet, and mImageWidth.
Referenced by Button(), and NpcDialog::createSkinControls().
|
virtual |
Called when the mouse has moved and the mouse has previously been pressed on the widget.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 893 of file button.cpp.
|
virtual |
Called when the mouse has entered into the widget area.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 883 of file button.cpp.
References mHasMouse.
|
virtual |
Called when the mouse has exited the widget area.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 888 of file button.cpp.
References mHasMouse.
|
virtual |
Called when a mouse button has been pressed on the widget area.
NOTE: A mouse press is NOT equal to a mouse click. Use mouseClickMessage to check for mouse clicks.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 874 of file button.cpp.
References MouseEvent::getButton(), MouseButton::LEFT, and mMousePressed.
|
virtual |
Called when a mouse button has been released on the widget area.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 758 of file button.cpp.
References Widget::distributeActionEvent(), MouseEvent::getButton(), MouseButton::LEFT, mClickCount, mHasMouse, mMousePressed, mPressed, and mStick.
|
virtual |
Implements Widget.
Definition at line 622 of file button.cpp.
References BLOCK_END, BLOCK_START, BUTTON_DISABLED, BUTTON_HIGHLIGHTED, BUTTON_PRESSED, BUTTON_STANDARD, Graphics::CENTER, TextChunk::color, TextChunk::color2, TextChunk::deleteImage(), Graphics::drawImage(), Graphics::drawImageRect(), Font::generate(), Skin::getBorder(), Widget::getFont(), Font::getHeight(), Skin::getPadding(), Font::getWidth(), Rect::height, TextChunk::img, Widget::isEnabled(), Widget::isFocused(), isPressed(), isPressed2(), Graphics::LEFT, mAlignment, mCaption, Widget::mDimension, mDisabledColor, mDisabledColor2, mEnabledColor, mEnabledColor2, mHasMouse, mHighlightedColor, mHighlightedColor2, mImageHeight, mImages, mImageWidth, mMode, mPressedColor, mPressedColor2, mSkin, mSpacing, mTextChanged, mTextChunk, Graphics::RIGHT, TextChunk::text, TextChunk::textFont, updateAlpha(), and Rect::width.
|
inline |
Sets the alignment of the caption. The alignment is relative to the center of the button.
alignment | The alignment of the caption. |
Definition at line 232 of file button.h.
References mAlignment.
|
inline |
Sets the caption of the button. It's advisable to call adjustSize after setting of the caption to adjust the button's size to fit the caption.
caption | The caption of the button. |
Definition at line 214 of file button.h.
References mCaption, and mTextChanged.
Referenced by Setup_Joystick::action(), SkillDialog::action(), NpcDialog::buildLayout(), NpcDialog::createSkinControls(), TabStrip::createWidget(), EggSelectionDialog::initButtons(), InsertCardDialog::initButtons(), TradeWindow::setStatus(), Pincode::shuffle(), InventoryWindow::updateButtons(), ShopWindow::updateButtonsAndLabels(), InventoryWindow::updateDropButton(), CharSelectDialog::updateState(), and SkillDialog::updateTabSelection().
|
inline |
Definition at line 165 of file button.h.
References mDescription.
Referenced by WindowMenu::addButton(), and InventoryWindow::InventoryWindow().
void Button::setImage | ( | Image *const | image | ) |
Definition at line 379 of file button.cpp.
References BUTTON_COUNT, Resource::decRef(), mImageHeight, mImages, mImageSet, and mImageWidth.
Referenced by WindowMenu::addButton().
|
inline |
Definition at line 261 of file button.h.
References mImageHeight.
Referenced by NpcDialog::createSkinControls().
|
inline |
Definition at line 258 of file button.h.
References mImageWidth.
Referenced by NpcDialog::createSkinControls().
|
virtual |
Sets the parent of the widget. A parent must be a BasicContainer.
WARNING: This function is used internally and should not be called or overloaded unless you know what you are doing.
parent | The parent of the widget. |
Reimplemented from Widget.
Definition at line 898 of file button.cpp.
References Widget::addWidgetListener(), Widget2::mWindow, and Widget::setParent().
|
inline |
Definition at line 183 of file button.h.
References mPressed.
Referenced by TabStrip::action(), TabStrip::createWidget(), TabStrip::nextTab(), and TabStrip::prevTab().
|
inline |
|
inline |
Definition at line 174 of file button.h.
References mTag.
Referenced by WindowMenu::addButton(), and TabStrip::createWidget().
|
virtual |
Reimplemented from Widget2.
Definition at line 905 of file button.cpp.
References Widget2::mWindow, Widget::removeWidgetListener(), and Widget2::setWindow().
void Button::updateAlpha | ( | ) |
Update the alpha value to the button components.
Definition at line 418 of file button.cpp.
References BUTTON_COUNT, Skin::getBorder(), Theme::getMinimumOpacity(), ImageRect::grid, Settings::guiAlpha, mAlpha, mSkin, settings, and theme.
Referenced by draw(), init(), safeDraw(), and SliderList::updateAlpha().
|
virtual |
Invoked when a widget is hidden, i.e it's set to be not visible.
event | Describes the event. |
Reimplemented from WidgetListener.
Definition at line 790 of file button.cpp.
References ImageCollection::clear(), TextChunk::deleteImage(), isBatchDrawRenders, Widget::mRedraw, mTextChanged, mTextChunk, mVertexes2, and openGLMode.
|
virtual |
Invoked when a widget is moved.
event | Describes the event. |
Reimplemented from WidgetListener.
Definition at line 785 of file button.cpp.
References Widget::mRedraw.
|
virtual |
Invoked when a widget changes its size.
event | Describes the event. |
Reimplemented from WidgetListener.
Definition at line 780 of file button.cpp.
References Widget::mRedraw.
|
private |
Holds the alignment of the caption.
Definition at line 313 of file button.h.
Referenced by draw(), getAlignment(), safeDraw(), and setAlignment().
|
staticprivate |
Definition at line 284 of file button.h.
Referenced by updateAlpha().
|
private |
Holds the caption of the button.
Definition at line 290 of file button.h.
Referenced by adjustSize(), draw(), getCaption(), safeDraw(), and setCaption().
|
private |
Definition at line 315 of file button.h.
Referenced by getClickCount(), and mouseReleased().
|
private |
Definition at line 292 of file button.h.
Referenced by getDescription(), and setDescription().
|
private |
Definition at line 301 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 302 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 299 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 300 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
True if the mouse is ontop of the button, false otherwise.
Definition at line 331 of file button.h.
Referenced by draw(), isPressed(), mouseEntered(), mouseExited(), mouseReleased(), and safeDraw().
|
private |
Definition at line 303 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 304 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 327 of file button.h.
Referenced by adjustSize(), draw(), loadImageSet(), safeDraw(), setImage(), and setImageHeight().
|
private |
Definition at line 307 of file button.h.
Referenced by adjustSize(), draw(), loadImage(), loadImageSet(), safeDraw(), setImage(), and ~Button().
|
private |
Definition at line 308 of file button.h.
Referenced by loadImage(), loadImageSet(), setImage(), and ~Button().
|
private |
Definition at line 326 of file button.h.
Referenced by adjustSize(), draw(), loadImageSet(), safeDraw(), setImage(), and setImageWidth().
|
private |
True if a key has been pressed, false otherwise.
Definition at line 336 of file button.h.
Referenced by focusLost(), isPressed(), keyPressed(), and keyReleased().
|
private |
Definition at line 323 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
True if a mouse has been pressed, false otherwise.
Definition at line 341 of file button.h.
Referenced by focusLost(), isPressed(), mousePressed(), and mouseReleased().
|
private |
Definition at line 344 of file button.h.
Referenced by isPressed2(), keyReleased(), mouseReleased(), and setPressed().
|
private |
Definition at line 305 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Definition at line 306 of file button.h.
Referenced by draw(), and safeDraw().
|
private |
Button state graphics
Definition at line 286 of file button.h.
Referenced by adjustSize(), draw(), init(), safeDraw(), updateAlpha(), and ~Button().
|
private |
|
private |
Holds the spacing between the border and the caption.
Definition at line 320 of file button.h.
Referenced by adjustSize(), draw(), init(), and safeDraw().
|
private |
Definition at line 343 of file button.h.
Referenced by keyReleased(), mouseReleased(), and setStick().
|
private |
|
private |
Definition at line 345 of file button.h.
Referenced by draw(), safeDraw(), setCaption(), and widgetHidden().
|
private |
Definition at line 296 of file button.h.
Referenced by draw(), safeDraw(), widgetHidden(), and ~Button().
|
private |
Definition at line 298 of file button.h.
Referenced by draw(), widgetHidden(), and ~Button().