Inheritance diagram for os::CheckBox:
Public Member Functions | |
CheckBox (Rect cFrame, const String &cName, const String &cLabel, Message *pcMessage, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND|WID_FULL_UPDATE_ON_RESIZE) | |
~CheckBox () | |
virtual Point | GetPreferredSize (bool bLargest) const |
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
Hook called by the system when a mouse button is pressed. | |
virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
Hook called by the system when a mouse button is release. | |
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
Hook called by the system when a key is pressed while the view has focus. | |
virtual void | KeyUp (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
Hook called by the system when a key is released while the view has focus. | |
virtual void | Paint (const Rect &cUpdateRect) |
Called by the system update "damaged" areas of the view. | |
virtual void | PostValueChange (const Variant &cNewValue) |
virtual void | LabelChanged (const String &cNewLabel) |
virtual void | EnableStatusChanged (bool bIsEnabled) |
virtual bool | Invoked (Message *pcMessage) |
Intercept outgoing messages. | |
virtual void | Activated (bool bIsActive) |
Hook called when the view gain or loose focus. | |
Classes | |
class | Private |
CheckBox::CheckBox | ( | Rect | cFrame, | |
const String & | cName, | |||
const String & | cLabel, | |||
Message * | pcMessage, | |||
uint32 | nResizeMask = CF_FOLLOW_LEFT|CF_FOLLOW_TOP , |
|||
uint32 | nFlags = WID_WILL_DRAW|WID_CLEAR_BACKGROUND|WID_FULL_UPDATE_ON_RESIZE | |||
) |
CheckBox::~CheckBox | ( | ) |
void CheckBox::MouseDown | ( | const Point & | cPosition, | |
uint32 | nButtons | |||
) | [virtual] |
cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. |
Reimplemented from os::View.
pcData
member will point to a Message containing the dragged data. Look at BeginDrag() for a more detailed description of the drag and drop system. cPosition | Mouse position in the views coordinate system at the time the mouse was pressed. | |
nButtons | Index of the pressed button. Buttons start at 1 for the left button, 2 for the right button, 3 for the middle button. Additional buttons might be supported by the mouse driver and will then be assigned numbers from 4 and up. | |
pcData | Pointer to a Message object containing the dragged data if this mouse-up was the end of a drag and drop operation. If no data was dragged it will be NULL. |
Reimplemented from os::View.
void CheckBox::KeyDown | ( | const char * | pzString, | |
const char * | pzRawString, | |||
uint32 | nQualifiers | |||
) | [virtual] |
pzString | String containing a single UTF-8 encoded character. This is the character generated by the pressed key according to the current keymap accounting for any qualifiers that might be pressed. | |
pzRawString | Same as pzString except that the key is converted without accounting for qualifiers. Ie. if 'A' is pressed while pressing <SHIFT> pzString will contain 'A' and pzRawString will contain 'a'. | |
nQualifiers | Bitmask describing which qualifiers that was active when the key was pressed. |
Reimplemented from os::View.
void CheckBox::KeyUp | ( | const char * | pzString, | |
const char * | pzRawString, | |||
uint32 | nQualifiers | |||
) | [virtual] |
void CheckBox::Paint | ( | const Rect & | cUpdateRect | ) | [virtual] |
cUpdateRect | A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible. |
Reimplemented from os::View.
void CheckBox::PostValueChange | ( | const Variant & | cNewValue | ) | [virtual] |
Reimplemented from os::Control.
void CheckBox::LabelChanged | ( | const String & | cNewLabel | ) | [virtual] |
Reimplemented from os::Control.
void CheckBox::EnableStatusChanged | ( | bool | bIsEnabled | ) | [virtual] |
Implements os::Control.
bool CheckBox::Invoked | ( | Message * | pcMessage | ) | [virtual] |
pcMessage | Pointer to the message that is about to be sendt. You can do any modification you like to this message (but never delete it). |
Reimplemented from os::Control.
void CheckBox::Activated | ( | bool | bIsActive | ) | [virtual] |
bIsActive | - true if the view gain and false if it loose focus. |
Reimplemented from os::View.