Pyro higlevel API
|
Public Member Functions | |
CheckMenu (const String &cLabel, Message *pcMsg, bool bChecked=false) | |
CheckMenu (Menu *pcMenu, Message *pcMsg, bool bChecked=false) | |
~CheckMenu () | |
virtual void | Draw () |
Draws the os::MenuItem. More... | |
virtual void | SetHighlighted (bool bHighlighted) |
Tells the system to highlight or unhighlight this element... More... | |
virtual Point | GetContentSize () const |
bool | IsChecked () const |
Find out if the menu is currently selected. More... | |
void | SetChecked (bool bChecked) |
Check or uncheck a menu. More... | |
virtual bool | Invoked (Message *pcMessage) |
Intercept outgoing messages. More... | |
virtual bool | IsSelectable () const |
Tells the system whether or not this item can be selected. More... | |
Public Member Functions inherited from os::MenuItem | |
MenuItem (const String &cLabel, Message *pcMsg, const String &cShortcut="", Image *pcImage=NULL) | |
Constructor. More... | |
MenuItem (Menu *pcMenu, Message *pcMsg, const String &cShortcut="", Image *pcImage=NULL) | |
Constructor. More... | |
~MenuItem () | |
internal More... | |
Menu * | GetSubMenu () const |
Gets the Sub Menu(Menu that is inside the MenuItem)... More... | |
Menu * | GetSuperMenu () const |
Gets the Super Menu(Menu that holds the MenuItem)... More... | |
Rect | GetFrame () const |
Gets the frame of the MenuItem... More... | |
virtual Point | GetContentSize () |
Gets the size of the MenuItem... More... | |
virtual float | GetColumnWidth (int nColumn) const |
Gets the size of a column. More... | |
virtual int | GetNumColumns () const |
Get number of columns. More... | |
const String & | GetLabel () const |
Gets the label of the MenuItem... More... | |
void | SetLabel (const os::String &cTitle) |
Sets the label of the MenuItem... More... | |
Point | GetContentLocation () const |
Returns the current location of this item... More... | |
void | SetEnable (bool bEnabled) |
Tells the system to disable or enable this element... More... | |
bool | IsEnabled () const |
Tells the programmer whether this element is enabled or disabled... More... | |
bool | IsHighlighted () const |
Tells the programmer whether this element is highlighted or not highlighted... More... | |
Image * | GetImage () const |
Gets the image that is attached to the MenuItem... More... | |
void | SetImage (Image *pcImage, bool bRefresh=false) |
Sets the image that you want to attach to the MenuItem... More... | |
void | SetShortcut (const String &cShortcut) |
Sets the shortcut for the MenuItem. More... | |
const String & | GetShortcut () const |
Gets the shortcut for the menu item... More... | |
Public Member Functions inherited from os::Invoker | |
Invoker () | |
Default constructor. More... | |
Invoker (Message *pcMessage) | |
Constructor. More... | |
Invoker (Message *pcMessage, const Handler *pcHandler, const Looper *pcLooper=NULL) | |
Constructor. More... | |
Invoker (Message *pcMessage, const Messenger &cTarget) | |
Constructor. More... | |
virtual | ~Invoker () |
Destructor. More... | |
virtual status_t | SetMessage (Message *pcMessage) |
Assign a new message to the invoker. More... | |
Message * | GetMessage () const |
Get the message currently assigned to the invoker. More... | |
uint32 | GetCode () const |
Get the code field from the currently assigned message. More... | |
virtual void | TargetChanged (const Messenger &cOldTarget) |
Virtual hook called by the system after the target has been changed. More... | |
virtual void | MessageChanged (const Message &cOldMsg) |
Virtual hook called by the system after the message has been changed. More... | |
virtual status_t | SetTarget (const Handler *pcHandler, const Looper *pcLooper=NULL) |
Set a new message target. More... | |
virtual status_t | SetTarget (const Messenger &cMessenger) |
Set a new message target. More... | |
bool | IsTargetLocal () const |
Check if the target lives in our process. More... | |
Handler * | GetTarget (Looper **ppcLooper=NULL) const |
Get the current target. More... | |
Messenger | GetMessenger () const |
Get the messenger used to target messages sendt by the invoker. More... | |
virtual status_t | SetHandlerForReply (Handler *pcHandler) |
Set a reply target for messages sendt by this messenger. More... | |
Handler * | GetHandlerForReply () const |
Get the current reply target for replies on messages sendt by the invoker. More... | |
virtual status_t | Invoke (Message *pcMessage=NULL) |
Send the current message to the current target. More... | |
CheckMenu::~CheckMenu | ( | ) |
|
virtual |
Reimplemented from os::MenuItem.
References os::font_height::ascender, os::Rect::Bounds(), os::COL_MENU_BACKGROUND, os::COL_MENU_TEXT, os::COL_SEL_MENU_BACKGROUND, os::COL_SEL_MENU_TEXT, os::font_height::descender, DM_COPY, DM_OVER, os::View::DrawBitmap(), os::View::DrawString(), os::View::FillRect(), os::get_default_color(), os::Bitmap::GetBounds(), os::View::GetFontHeight(), os::MenuItem::GetFrame(), os::MenuItem::GetLabel(), os::MenuItem::GetSuperMenu(), os::Rect::Height(), os::Rect::left, os::font_height::line_gap, os::View::SetBgColor(), os::View::SetDrawingMode(), os::View::SetFgColor(), and os::Rect::top.
|
virtual |
|
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::MenuItem.
References os::Message::AddBool().
bool CheckMenu::IsChecked | ( | ) | const |
|
virtual |
Reimplemented from os::MenuItem.
void CheckMenu::SetChecked | ( | bool | bChecked | ) |
bChecked | - True to check the menu, or false to uncheck |
|
virtual |
bHighlighted | - To highlight this element set this to true(default) and to unhighlight set this to false. |
Reimplemented from os::MenuItem.
References os::MenuItem::SetHighlighted().