#include <Fui.h>
Inheritance diagram for CFuiCheckbox:

Public Member Functions | |
| CFuiCheckbox (int x=0, int y=0, int w=0, int h=0, Tag window=0) | |
| virtual int | Read (SStream *stream, Tag tag) |
| virtual void | ReadFinished (void) |
| void | Draw (void) |
| bool | MouseClick (int x, int y, EMouseButton button) |
| bool | MouseStopClick (int x, int y, EMouseButton button) |
| int | GetState (void) |
| Retrieve current state of checkbox. | |
| void | SetState (int) |
| Set current state of checkbox. | |
Protected Attributes | |
| SBitmap * | bmBack |
| Bitmap graphics. | |
| int | state |
| Checkbox state (0/1 for off/on). | |
| bool | pressed |
| Whether checkbox is pressed or not. | |
Definition at line 597 of file Fui.h.
|
||||||||||||||||||||||||
|
Definition at line 1542 of file Fui.cpp. References bmBack, COMPONENT_CHECKBOX, pressed, state, CFuiComponent::type, CFuiComponent::widgetName, and CFuiComponent::widgetTag. |
|
|
Reimplemented from CFuiComponent. Definition at line 1589 of file Fui.cpp. References bmBack, CFuiComponent::Draw(), DrawBitmap(), DrawText(), CFuiComponent::font, GetBitmapSize(), MakeRGB(), pressed, state, CFuiComponent::surface, CFuiComponent::text, and TextWidth(). |
|
|
Definition at line 1613 of file Fui.cpp. References state. Referenced by CFuiManager::GetCheckboxState(). |
|
||||||||||||||||
|
Reimplemented from CFuiComponent. Definition at line 1623 of file Fui.cpp. References CFuiComponent::MouseHit(), and pressed. |
|
||||||||||||||||
|
Reimplemented from CFuiComponent. Definition at line 1633 of file Fui.cpp. References EVENT_CHECKED, EVENT_NOSUBEVENT, EVENT_UNCHECKED, SGlobals::fuimgr, CFuiManager::GenerateEventNotice(), globals, CFuiComponent::MouseHit(), CFuiComponent::parentWindowId, pressed, SetState(), and state. |
|
||||||||||||
|
Reimplemented from CFuiComponent. Definition at line 1554 of file Fui.cpp. References CFuiComponent::Read(), ReadInt(), state, TAG_IGNORED, and TAG_READ. |
|
|
Reimplemented from CFuiComponent. Definition at line 1573 of file Fui.cpp. References bmBack, SGlobals::fuimgr, CFuiThemeWidget::GetBitmap(), CFuiManager::GetThemeWidget(), globals, gtfo, CFuiComponent::ReadFinished(), TagToString(), CFuiComponent::widgetName, and CFuiComponent::widgetTag. |
|
|
Definition at line 1618 of file Fui.cpp. Referenced by MouseStopClick(), and CFuiManager::SetCheckboxState(). |
|
|
Definition at line 617 of file Fui.h. Referenced by CFuiCheckbox(), Draw(), and ReadFinished(). |
|
|
Definition at line 619 of file Fui.h. Referenced by CFuiCheckbox(), Draw(), MouseClick(), and MouseStopClick(). |
|
|
Definition at line 618 of file Fui.h. Referenced by CFuiCheckbox(), Draw(), GetState(), MouseStopClick(), and Read(). |
|
|
Documentation generated by
|