![]() |
![]() |
![]() |
libsexy Reference Manual |
---|
SexyTooltipSexyTooltip — A tooltip-like window container which allows arbitrary widgets as children. |
SexyTooltip; GtkWidget* sexy_tooltip_new (void); GtkWidget* sexy_tooltip_new_with_label (const gchar *text); void sexy_tooltip_position_to_widget (SexyTooltip *tooltip, GtkWidget *widget); void sexy_tooltip_position_to_rect (SexyTooltip *tooltip, GdkRectangle *rect, GdkScreen *screen);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----SexyTooltip
SexyTooltip is a GtkWindow which mimics the appearance of a normal gtk+ tooltip, but allows arbitrary widgets rather than just text.
typedef struct _SexyTooltip SexyTooltip;
The SexyTooltip struct contains private data only, and should be manipulated using the functions below.
GtkWidget* sexy_tooltip_new (void);
Creates a new SexyTooltip widget
Returns : | a new SexyTooltip |
GtkWidget* sexy_tooltip_new_with_label (const gchar *text);
Creates a new SexyTooltip widget with text content
text : |
The text to show in the tooltip. |
Returns : | a new SexyTooltip |
void sexy_tooltip_position_to_widget (SexyTooltip *tooltip, GtkWidget *widget);
Helper function to position the tooltip window relative to an on-screen widget. This uses a simplified version of the positioning function used by GtkTooltips.
tooltip : |
A SexyTooltip. |
widget : |
The widget to position to. |
void sexy_tooltip_position_to_rect (SexyTooltip *tooltip, GdkRectangle *rect, GdkScreen *screen);
Helper function to position the tooltip window relative to an arbitrary rectangle on a given screen. This uses a simplified version of the positioning function used by GtkTooltips.
tooltip : |
A SexyTooltip |
rect : |
A rectangle to position the tooltip near. |
screen : |
The screen to position the tooltip on. |
<< SexyIconEntry |