#include <decorationglyphbutton.h>
Public Member Functions | |
| DecorationGlyphButton (s16 x, s16 y, u16 width, u16 height, char normalGlyph, char clickedGlyph, FontBase *font=NULL) | |
| virtual void | draw (Rect clipRect) |
| virtual bool | focus () |
Protected Member Functions | |
| virtual | ~DecorationGlyphButton () |
| DecorationGlyphButton (const DecorationGlyphButton &decorationGlyphButton) | |
Protected Attributes | |
| char | _normalGlyph |
| char | _clickedGlyph |
Class representing a button that will display a glyph and form part of another gadget's border decorations. Examples include the screen flip/depth buttons.
| WoopsiUI::DecorationGlyphButton::DecorationGlyphButton | ( | s16 | x, | |
| s16 | y, | |||
| u16 | width, | |||
| u16 | height, | |||
| char | normalGlyph, | |||
| char | clickedGlyph, | |||
| FontBase * | font = NULL | |||
| ) |
Constructor.
| x | The x co-ordinate of the button. | |
| y | The y co-ordinate of the button. | |
| width | The width of the button. | |
| height | The height of the button. | |
| normalGlyph | Character to display when unclicked. | |
| clickedGlyph | Character to display when clicked. | |
| font | Font to use. |
| virtual WoopsiUI::DecorationGlyphButton::~DecorationGlyphButton | ( | ) | [inline, protected, virtual] |
Destructor.
| WoopsiUI::DecorationGlyphButton::DecorationGlyphButton | ( | const DecorationGlyphButton & | decorationGlyphButton | ) | [inline, protected] |
Copy constructor is protected to prevent usage.
| virtual void WoopsiUI::DecorationGlyphButton::draw | ( | Rect | clipRect | ) | [virtual] |
Draw the region of the button that falls within the clipRect.
| clipRect | The clipping region to draw within. |
Reimplemented from WoopsiUI::Button.
Reimplemented in WoopsiUI::WindowBorderButton.
| virtual bool WoopsiUI::DecorationGlyphButton::focus | ( | ) | [virtual] |
Give the gadget focus.
Reimplemented from WoopsiUI::Gadget.
char WoopsiUI::DecorationGlyphButton::_clickedGlyph [protected] |
Character to display when clicked
char WoopsiUI::DecorationGlyphButton::_normalGlyph [protected] |
Character to display when unclicked
1.6.1