AwnTooltip

AwnTooltip

Functions

Properties

gint delay Read / Write / Construct
GtkWidget * focus-widget Read / Write
gint offset Read / Write / Construct
gboolean smart-behavior Read / Write / Construct
gboolean toggle-on-click Read / Write / Construct
DesktopAgnosticColor * tooltip-bg-color Read / Write / Construct
DesktopAgnosticColor * tooltip-font-color Read / Write / Construct
gchar * tooltip-font-name Read / Write / Construct
DesktopAgnosticColor * tooltip-outline-color Read / Write / Construct

Types and Values

Object Hierarchy

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

Implemented Interfaces

AwnTooltip implements AtkImplementorIface and GtkBuildable.

Description

Functions

awn_tooltip_new_for_widget ()

GtkWidget *
awn_tooltip_new_for_widget (GtkWidget *widget);


awn_tooltip_set_text ()

void
awn_tooltip_set_text (AwnTooltip *tooltip,
                      const gchar *text);


awn_tooltip_get_text ()

gchar *
awn_tooltip_get_text (AwnTooltip *tooltip);


awn_tooltip_set_focus_widget ()

void
awn_tooltip_set_focus_widget (AwnTooltip *tooltip,
                              GtkWidget *widget);


awn_tooltip_set_font_name ()

void
awn_tooltip_set_font_name (AwnTooltip *tooltip,
                           const gchar *font_name);


awn_tooltip_set_font_color ()

void
awn_tooltip_set_font_color (AwnTooltip *tooltip,
                            DesktopAgnosticColor *font_color);


awn_tooltip_set_background_color ()

void
awn_tooltip_set_background_color (AwnTooltip *tooltip,
                                  DesktopAgnosticColor *bg_color);


awn_tooltip_set_delay ()

void
awn_tooltip_set_delay (AwnTooltip *tooltip,
                       gint msecs);


awn_tooltip_get_delay ()

gint
awn_tooltip_get_delay (AwnTooltip *tooltip);


awn_tooltip_update_position ()

void
awn_tooltip_update_position (AwnTooltip *tooltip);


awn_tooltip_set_position_hint ()

void
awn_tooltip_set_position_hint (AwnTooltip *tooltip,
                               GtkPositionType position,
                               gint size);

Types and Values

AwnTooltipPrivate

typedef struct _AwnTooltipPrivate AwnTooltipPrivate;


struct AwnTooltip

struct AwnTooltip;

Property Details

The “delay” property

  “delay”                    gint

Delay.

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0


The “focus-widget” property

  “focus-widget”             GtkWidget *

Widget to focus on.

Flags: Read / Write


The “offset” property

  “offset”                   gint

Icon Offset.

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0


The “smart-behavior” property

  “smart-behavior”           gboolean

Will show the tooltip on enter-notify-event and hide on leave-notify-event.

Flags: Read / Write / Construct

Default value: TRUE


The “toggle-on-click” property

  “toggle-on-click”          gboolean

Toggles tooltip visibility on click.

Flags: Read / Write / Construct

Default value: TRUE


The “tooltip-bg-color” property

  “tooltip-bg-color”         DesktopAgnosticColor *

Tooltip Background Color.

Flags: Read / Write / Construct


The “tooltip-font-color” property

  “tooltip-font-color”       DesktopAgnosticColor *

Tooltip Font Color.

Flags: Read / Write / Construct


The “tooltip-font-name” property

  “tooltip-font-name”        gchar *

Tooltip Font Name.

Flags: Read / Write / Construct

Default value: "Sans 8"


The “tooltip-outline-color” property

  “tooltip-outline-color”    DesktopAgnosticColor *

Tooltip Outline Color.

Flags: Read / Write / Construct