SexyTooltip

## SexyTooltip SexyTooltip — A tooltip-like window container which allows arbitrary widgets as children. |

## Synopsis

                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);

## Object Hierarchy

      GObject
       +----GtkObject
             +----GtkWidget
                   +----GtkContainer
                         +----GtkBin
                               +----GtkWindow
                                     +----SexyTooltip

## Implemented Interfaces

SexyTooltip implements AtkImplementorIface.

## Description

SexyTooltip is a GtkWindow which mimics the appearance of a normal gtk+ tooltip, but allows arbitrary widgets rather than just text.

## Details

### SexyTooltip

    typedef struct _SexyTooltip SexyTooltip;

The SexyTooltip struct contains private data only, and should be manipulated using the functions below.

### sexy_tooltip_new ()

    GtkWidget*  sexy_tooltip_new                (void);

Creates a new SexyTooltip widget

Returns : | a new SexyTooltip

### sexy_tooltip_new_with_label ()

    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

### sexy_tooltip_position_to_widget ()

    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.

### sexy_tooltip_position_to_rect ()

    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.