Public Member Functions | |
| Button (Window *pParent, const Point pPos, const String &pLabel, unsigned int nWindowLayoutFlags, MessageCommand *pMessage=NULL) | |
| Button (Window *pParent, const Rect rFrame, const String &pLabel, unsigned int nWindowLayoutFlags, MessageCommand *pMessage=NULL) | |
| ~Button () | |
| virtual void | MouseDown (const InputEvent &nInputEvent) |
| virtual void | MouseUp (const InputEvent &nInputEvent) |
| virtual void | MouseEnter (const InputEvent &nInputEvent) |
| virtual void | MouseLeave (const InputEvent &nInputEvent) |
| virtual bool | FocusLost () |
| virtual void | Paint (const Rect &rDirty) |
| virtual void | OnClicked (const InputEvent &nInputEvent) |
| virtual bool | IsDown () |
| virtual bool | IsHover () |
| virtual String | GetCaption () |
| virtual void | SetCaption (const String &cString) |
| Point | GetSizeHint (enumSizeHint nSizeHint) |
| void | KeyDown (const InputEvent &nInputEvent) |
| void | KeyUp (const InputEvent &nInputEvent) |
| void | Enable (bool bEnable) |
| void | SetTextFlags (TextFlags nTextFlags) |
| TextFlags | GetTextFlags () |
| void | SetImage (Image *pImage, int iImageSpacing=5) |
| void | KeepImage (bool bKeep) |
| Image * | GetImage () |
| void | SetTextColor (Color nTextColor) |
| MessageCommand * | GetMessageCommand () |
Public Attributes | |
| signal0 | Clicked |
| signal1< const InputEvent & > | ClickedEvent |
Classes | |
| class | Private |
button.cpp, listview.cpp, messagebox.cpp, splitter.cpp, tabview.cpp, and textview.cpp.
| Button::Button | ( | Window * | pParent, | |
| const Point | pPos, | |||
| const String & | pLabel, | |||
| unsigned int | nWindowLayoutFlags, | |||
| MessageCommand * | pMessage = NULL | |||
| ) |
| Button::Button | ( | Window * | pParent, | |
| const Rect | rFrame, | |||
| const String & | pLabel, | |||
| unsigned int | nWindowLayoutFlags, | |||
| MessageCommand * | pMessage = NULL | |||
| ) |
| Button::~Button | ( | ) |
| void Button::MouseDown | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse pressed
| nButton | - MouseButton which was pressed | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse press occured | |
| nInputEvent | - INPUT_EVENT_MOUSE_PRESS for a single and INPUTE_EVENT_MOUSE_DOUBLECLICK for a doubleclick |
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| void Button::MouseUp | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse release
| nButton | - MouseButton which was released | |
| nMouseButtonMask | - Mask showing which additional mouse buttons were pressed when the mouse release occured | |
| nInputEvent | - INPUT_EVENT_MOUSE_RELEASE |
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| void Button::MouseEnter | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse enter
| pPosEnter | - Position the mouse cursor entered the window | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse enter occured |
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| void Button::MouseLeave | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse leave
| pPosLeave | - Position the mouse cursor leaved the window at | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse leave occured |
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| bool Button::FocusLost | ( | ) | [virtual] |
| void Button::Paint | ( | const Rect & | rDirty | ) | [virtual] |
Paint window content
| rDirty | - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region. |
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| void Button::OnClicked | ( | const InputEvent & | nInputEvent | ) | [virtual] |
| bool Button::IsDown | ( | ) | [virtual] |
| bool Button::IsHover | ( | ) | [virtual] |
| String Button::GetCaption | ( | ) | [virtual] |
| void Button::SetCaption | ( | const String & | cString | ) | [virtual] |
| Point Button::GetSizeHint | ( | enumSizeHint | nSizeHint | ) | [virtual] |
Get size hint
Reimplemented from SkyGI::Window.
Reimplemented in SkyGI::ImageButton.
| void Button::KeyDown | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Reimplemented from SkyGI::Window.
| void Button::KeyUp | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Reimplemented from SkyGI::Window.
| void Button::Enable | ( | bool | bEnable | ) | [virtual] |
Reimplemented from SkyGI::Window.
| void Button::SetTextFlags | ( | TextFlags | nTextFlags | ) |
| TextFlags Button::GetTextFlags | ( | ) |
| void Button::SetImage | ( | Image * | pImage, | |
| int | iImageSpacing = 5 | |||
| ) |
| void Button::KeepImage | ( | bool | bKeep | ) |
Reimplemented in SkyGI::ImageButton.
| Image * Button::GetImage | ( | ) |
Reimplemented in SkyGI::ImageButton.
| void Button::SetTextColor | ( | Color | nTextColor | ) |
| MessageCommand * Button::GetMessageCommand | ( | ) |
| signal0 SkyGI::Button::Clicked |
Emitted when the button gets clicked
| signal1<const InputEvent&> SkyGI::Button::ClickedEvent |
Emitted when the button gets clicked
| nInputEvent | InputEvent with details about the click event (click with mouse, keyboard, ...) |
1.5.1-p1