AwnTooltip

AwnTooltip

Synopsis

struct              AwnTooltip;
struct              AwnTooltipClass;
GtkWidget *         awn_tooltip_new_for_widget          (GtkWidget *widget);
void                awn_tooltip_set_text                (AwnTooltip *tooltip,
                                                         const gchar *text);
gchar *             awn_tooltip_get_text                (AwnTooltip *tooltip);
void                awn_tooltip_set_focus_widget        (AwnTooltip *tooltip,
                                                         GtkWidget *widget);
void                awn_tooltip_set_font_name           (AwnTooltip *tooltip,
                                                         const gchar *font_name);
void                awn_tooltip_set_font_color          (AwnTooltip *tooltip,
                                                         DesktopAgnosticColor *font_color);
void                awn_tooltip_set_outline_color       (AwnTooltip *tooltip,
                                                         DesktopAgnosticColor *outline);
void                awn_tooltip_set_background_color    (AwnTooltip *tooltip,
                                                         DesktopAgnosticColor *bg_color);
void                awn_tooltip_set_delay               (AwnTooltip *tooltip,
                                                         gint msecs);
gint                awn_tooltip_get_delay               (AwnTooltip *tooltip);
void                awn_tooltip_update_position         (AwnTooltip *tooltip);
void                awn_tooltip_set_position_hint       (AwnTooltip *tooltip,
                                                         GtkPositionType position,
                                                         gint size);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----AwnTooltip

Implemented Interfaces

AwnTooltip implements AtkImplementorIface and GtkBuildable.

Properties

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

Description

Details

struct AwnTooltip

struct AwnTooltip;


struct AwnTooltipClass

struct AwnTooltipClass {
    GtkWindowClass parent_class;

    /* Future padding */
    void (*_tooltip0)(void);
    void (*_tooltip1)(void);
    void (*_tooltip2)(void);
    void (*_tooltip3)(void);
};


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_outline_color ()

void                awn_tooltip_set_outline_color       (AwnTooltip *tooltip,
                                                         DesktopAgnosticColor *outline);


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

Property Details

The "delay" property

  "delay"                    gint                  : Read / Write / Construct

Delay.

Allowed values: >= 0

Default value: 0


The "focus-widget" property

  "focus-widget"             GtkWidget*            : Read / Write

Widget to focus on.


The "offset" property

  "offset"                   gint                  : Read / Write / Construct

Icon Offset.

Allowed values: >= 0

Default value: 0


The "smart-behavior" property

  "smart-behavior"           gboolean              : Read / Write / Construct

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

Default value: TRUE


The "toggle-on-click" property

  "toggle-on-click"          gboolean              : Read / Write / Construct

Toggles tooltip visibility on click.

Default value: TRUE


The "tooltip-bg-color" property

  "tooltip-bg-color"         DesktopAgnosticColor*  : Read / Write / Construct

Tooltip Background Color.


The "tooltip-font-color" property

  "tooltip-font-color"       DesktopAgnosticColor*  : Read / Write / Construct

Tooltip Font Color.


The "tooltip-font-name" property

  "tooltip-font-name"        gchar*                : Read / Write / Construct

Tooltip Font Name.

Default value: "Sans 8"


The "tooltip-outline-color" property

  "tooltip-outline-color"    DesktopAgnosticColor*  : Read / Write / Construct

Tooltip Outline Color.