#include <mgui/tooltip.h>
Public Member Functions | |
| void | Attach (Widget widget, bool DeleteOnCtrlDestroy=false) |
| bool | CheckMotion (const XEvent &event, bool AutoHide=true) |
| bool | CheckMotion (int x, int y, bool AutoHide=true) |
| CTRL_TOOLTIP () | |
| void | CTRL_TOOLTIP::Enable () |
| void | Detach () |
| void | Disable () |
| INT32 | GetDelay () const |
| int | GetPixelDelta () const |
| int | GetPriority () const |
| const STYLE & | GetStyle () const |
| const MISTRING & | GetText () const |
| void | Hide () |
| bool | IsDisabled () const |
| bool | IsVisible () const |
| void | SetDelay (INT32 delay) |
| void | SetImage (const MGD::DEVICE &imgdev, const MGD::DEVICE_BINARY *maskdev=0, const LPOINT2D *pos=0) |
| void | SetPixelDelta (int PixelDelta) |
| void | SetPriority (int priority) |
| void | SetStyle (const STYLE &style) |
| void | SetText (const MISTRING &text) |
| void | Show () |
| virtual | ~CTRL_TOOLTIP () |
Static Public Member Functions | |
| static CTRL_TOOLTIP * | FindAttached (Widget widget) |
Private Member Functions | |
| virtual void | v_OnHide () |
| virtual void | v_OnShow () |
| virtual bool | v_OnShowRequest (int x, int y) |
Classes | |
| struct | STYLE |
| ToolTip style. More... | |
Definition at line 55 of file tooltip.h.
| MGUI::CTRL_TOOLTIP::CTRL_TOOLTIP | ( | ) |
Constructor.
| virtual MGUI::CTRL_TOOLTIP::~CTRL_TOOLTIP | ( | ) | [virtual] |
Destructor.
| void MGUI::CTRL_TOOLTIP::Attach | ( | Widget | widget, | |
| bool | DeleteOnCtrlDestroy = false | |||
| ) |
Attach instance to Widget (X only).
| widget | Widget to attach to |
| DeleteOnCtrlDestroy | Delete ToolTip instance when associated control is destroyed |
| bool MGUI::CTRL_TOOLTIP::CheckMotion | ( | const XEvent & | event, | |
| bool | AutoHide = true | |||
| ) |
| bool MGUI::CTRL_TOOLTIP::CheckMotion | ( | int | x, | |
| int | y, | |||
| bool | AutoHide = true | |||
| ) |
| void MGUI::CTRL_TOOLTIP::CTRL_TOOLTIP::Enable | ( | ) |
Enable automatic ToolTip display mechanism.
| void MGUI::CTRL_TOOLTIP::Detach | ( | ) |
Detach instance from control.
| void MGUI::CTRL_TOOLTIP::Disable | ( | ) |
| static CTRL_TOOLTIP* MGUI::CTRL_TOOLTIP::FindAttached | ( | Widget | widget | ) | [static] |
| INT32 MGUI::CTRL_TOOLTIP::GetDelay | ( | ) | const [inline] |
| int MGUI::CTRL_TOOLTIP::GetPixelDelta | ( | ) | const [inline] |
| int MGUI::CTRL_TOOLTIP::GetPriority | ( | ) | const [inline] |
| const STYLE& MGUI::CTRL_TOOLTIP::GetStyle | ( | ) | const [inline] |
| const MISTRING& MGUI::CTRL_TOOLTIP::GetText | ( | ) | const [inline] |
| void MGUI::CTRL_TOOLTIP::Hide | ( | ) |
Hide ToolTip if visible.
This is usually done automatically unless disabled.
| bool MGUI::CTRL_TOOLTIP::IsDisabled | ( | ) | const [inline] |
| bool MGUI::CTRL_TOOLTIP::IsVisible | ( | ) | const [inline] |
| void MGUI::CTRL_TOOLTIP::SetDelay | ( | INT32 | delay | ) |
Set delay for automatic ToolTip display.
| delay | ToolTip popup delay in milliseconds |
| void MGUI::CTRL_TOOLTIP::SetImage | ( | const MGD::DEVICE & | imgdev, | |
| const MGD::DEVICE_BINARY * | maskdev = 0, |
|||
| const LPOINT2D * | pos = 0 | |||
| ) |
Set image, optional mask and position for graphical ToolTip.
This does not actually display the ToolTip.
| imgdev | Device containing associated image |
| maskdev | Optional device containing mask |
| pos | Optional position relative to cursor |
| void MGUI::CTRL_TOOLTIP::SetPixelDelta | ( | int | PixelDelta | ) | [inline] |
| void MGUI::CTRL_TOOLTIP::SetPriority | ( | int | priority | ) | [inline] |
Set priority if multiple CTRL_TOOLTIP instances are attached to the same control.
If multiple instances attached the one with the highest priority will be shown.
| priority | Priority to set |
| void MGUI::CTRL_TOOLTIP::SetStyle | ( | const STYLE & | style | ) | [inline] |
| void MGUI::CTRL_TOOLTIP::SetText | ( | const MISTRING & | text | ) |
Set text to show next time ToolTip is displayed.
Does not cause ToolTip to appear.
| text | Text to show |
| void MGUI::CTRL_TOOLTIP::Show | ( | ) |
Show the ToolTip.
This is usually done automatically unless disabled.
| virtual void MGUI::CTRL_TOOLTIP::v_OnHide | ( | ) | [private, virtual] |
Called after ToolTip is hidden.
Generally used to send notifications about action. Default implementation does nothing.
| virtual void MGUI::CTRL_TOOLTIP::v_OnShow | ( | ) | [private, virtual] |
Called after ToolTip is shown.
Generally used to send notifications about action. Default implementation does nothing.
| virtual bool MGUI::CTRL_TOOLTIP::v_OnShowRequest | ( | int | x, | |
| int | y | |||
| ) | [private, virtual] |
Override to perform custom ToolTip creating.
When overriding, use SetText or SetImage to control what will be displayed.
1.5.2