![]() |
![]() |
![]() |
Netbook Toolkit Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
NbtkTooltip; const gchar * nbtk_tooltip_get_label (NbtkTooltip *tooltip
); void nbtk_tooltip_set_label (NbtkTooltip *tooltip
,const gchar *text
); void nbtk_tooltip_show (NbtkTooltip *tooltip
); void nbtk_tooltip_hide (NbtkTooltip *tooltip
); void nbtk_tooltip_set_tip_area (NbtkTooltip *tooltip
,const ClutterGeometry *area
); const ClutterGeometry* nbtk_tooltip_get_tip_area (NbtkTooltip *tooltip
);
NbtkTooltip implements a single tooltip. It should not normally be created
by the application but by the widget implementing tooltip capabilities, for
example, #nbtk_button_set_tooltip()
.
typedef struct _NbtkTooltip NbtkTooltip;
The contents of this structure is private and should only be accessed using the provided API.
const gchar * nbtk_tooltip_get_label (NbtkTooltip *tooltip
);
Get the text displayed on the tooltip
|
a NbtkTooltip |
Returns : |
the text for the tooltip. This must not be freed by the application |
void nbtk_tooltip_set_label (NbtkTooltip *tooltip
,const gchar *text
);
Sets the text displayed on the tooltip
|
a NbtkTooltip |
|
text to set the label to |
void nbtk_tooltip_show (NbtkTooltip *tooltip
);
Show the tooltip relative to the associated widget.
|
a NbtkTooltip |
void nbtk_tooltip_hide (NbtkTooltip *tooltip
);
Hide the tooltip
|
a NbtkTooltip |
void nbtk_tooltip_set_tip_area (NbtkTooltip *tooltip
,const ClutterGeometry *area
);
Set the area on the stage that the tooltip applies to.
|
A NbtkTooltip |
|
A ClutterGeometry |
const ClutterGeometry* nbtk_tooltip_get_tip_area (NbtkTooltip *tooltip
);
Retrieve the area on the stage that the tooltip currently applies to
|
A NbtkTooltip |
Returns : |
the ClutterGeometry, owned by the tooltip which must not be freed by the application. |