#include <pgtooltiphelp.h>
Public Member Functions | |
| PG_ToolTipHelp (PG_Widget *parent, const std::string &text, int delay=10, const std::string &style="ToolTipHelp") | |
| Create a ToolTipHelp for the given widget. | |
| void | SetText (const std::string &text) |
| Changes the help text. | |
| void | ShowHelp (const PG_Point &pos) |
| Show the help to be shown. | |
| void | HideHelp () |
| Hides the ToolTip Help. | |
Protected Types | |
| enum | { off, counting, shown } |
Protected Member Functions | |
| bool | onParentEnter (PG_Pointer dummy) |
| bool | onParentLeave (PG_Pointer dummy) |
| bool | onParentDelete (const PG_MessageObject *object) |
| bool | onMouseMotion (const SDL_MouseMotionEvent *motion) |
| bool | onIdle () |
Protected Attributes | |
| PG_Widget * | parentWidget |
| PG_TimerObject::ID | id |
| Uint32 | lastTick |
| enum PG_ToolTipHelp:: { ... } | status |
| std::string | my_text |
| std::string | labelStyle |
| int | my_delay |
Static Protected Attributes | |
| static PG_LineEdit * | toolTipLabel = NULL |
Classes | |
| class | Ticker |
The ToolTipHelp will delete itself when the parent widget is deleted. It is also safe to delete the ToolTipHelp object manually prior to deleting the widget.
Query the cursor size and position the help so it doesn't overlap with large cursors
Definition at line 55 of file pgtooltiphelp.h.
|
|
Definition at line 82 of file pgtooltiphelp.h. |
|
||||||||||||||||||||
|
Create a ToolTipHelp for the given widget. It automatically enables SigIdle calls for PG_Application
Definition at line 43 of file pgtooltiphelp.cpp. References PG_Application::GetApp(), onIdle(), onMouseMotion(), onParentDelete(), onParentEnter(), onParentLeave(), SetText(), PG_MessageObject::sigDelete, PG_Widget::sigMouseEnter, PG_Widget::sigMouseLeave, and PG_MessageObject::sigMouseMotion. |
|
|
Hides the ToolTip Help.
Definition at line 162 of file pgtooltiphelp.cpp. References toolTipLabel. Referenced by onMouseMotion(), and onParentDelete(). |
|
|
Definition at line 64 of file pgtooltiphelp.cpp. References counting, PG_Application::GetEventSupplier(), PG_Widget::IsMouseInside(), lastTick, off, parentWidget, ShowHelp(), shown, and status. Referenced by PG_ToolTipHelp(). |
|
|
Definition at line 118 of file pgtooltiphelp.cpp. References counting, HideHelp(), lastTick, and status. Referenced by PG_ToolTipHelp(), and ShowHelp(). |
|
|
Definition at line 110 of file pgtooltiphelp.cpp. References HideHelp(), off, and status. Referenced by PG_ToolTipHelp(). |
|
|
Referenced by PG_ToolTipHelp(). |
|
|
Referenced by PG_ToolTipHelp(). |
|
|
Changes the help text.
Definition at line 60 of file pgtooltiphelp.cpp. References my_text. Referenced by PG_ToolTipHelp(). |
|
|
Show the help to be shown.
Definition at line 129 of file pgtooltiphelp.cpp. References PG_Application::GetScreen(), PG_Widget::GetTextSize(), labelStyle, PG_Widget::MoveWidget(), my_text, onMouseMotion(), PG_LineEdit::SetEditable(), PG_LineEdit::SetText(), PG_Widget::Show(), PG_MessageObject::sigMouseMotion, toolTipLabel, PG_Point::x, and PG_Point::y. Referenced by onIdle(). |
|
|
Definition at line 79 of file pgtooltiphelp.h. |
|
|
Definition at line 85 of file pgtooltiphelp.h. Referenced by ShowHelp(). |
|
|
Definition at line 80 of file pgtooltiphelp.h. Referenced by onIdle(), and onMouseMotion(). |
|
|
Definition at line 87 of file pgtooltiphelp.h. |
|
|
Definition at line 84 of file pgtooltiphelp.h. Referenced by SetText(), and ShowHelp(). |
|
|
Definition at line 78 of file pgtooltiphelp.h. Referenced by onIdle(). |
|
|
Referenced by onIdle(), onMouseMotion(), and onParentDelete(). |
|
|
Definition at line 39 of file pgtooltiphelp.cpp. Referenced by HideHelp(), and ShowHelp(). |
1.4.2