SexyTooltip

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

Functions

Types and Values

struct SexyTooltip

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBin
                        ╰── GtkWindow
                            ╰── SexyTooltip

Implemented Interfaces

SexyTooltip implements AtkImplementorIface and GtkBuildable.

Description

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

Functions

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

Parameters

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.

Parameters

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.

Parameters

tooltip

A SexyTooltip

 

rect

A rectangle to position the tooltip near.

 

screen

The screen to position the tooltip on.

 

Types and Values

struct SexyTooltip

struct SexyTooltip;

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