![]() |
![]() |
![]() |
nbtk 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); NbtkWidget* nbtk_tooltip_get_widget (NbtkTooltip *tooltip); void nbtk_tooltip_set_widget (NbtkTooltip *tooltip, NbtkWidget *widget); void nbtk_tooltip_show (NbtkTooltip *tooltip); void nbtk_tooltip_hide (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 |
NbtkWidget* nbtk_tooltip_get_widget (NbtkTooltip *tooltip);
Get the widget associated with the tooltip
|
a NbtkTooltip |
Returns : |
the associated tooltip |
void nbtk_tooltip_set_widget (NbtkTooltip *tooltip, NbtkWidget *widget);
Sets the text displayed on the tooltip
|
a NbtkTooltip |
|
text to set the widget 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 |