GimpWidgetsUtils

GimpWidgetsUtils — A collection of helper functions.

Functions

Description

A collection of helper functions.

Functions

gimp_table_attach_aligned ()

GtkWidget *
gimp_table_attach_aligned (GtkTable *table,
                           gint column,
                           gint row,
                           const gchar *label_text,
                           gfloat xalign,
                           gfloat yalign,
                           GtkWidget *widget,
                           gint colspan,
                           gboolean left_align);

Note that the label_text can be NULL and that the widget will be attached starting at (column + 1) in this case, too.

Parameters

table

The GtkTable the widgets will be attached to.

 

column

The column to start with.

 

row

The row to attach the widgets.

 

label_text

The text for the GtkLabel which will be attached left of the widget.

 

xalign

The horizontal alignment of the GtkLabel.

 

yalign

The vertical alignment of the GtkLabel.

 

widget

The GtkWidget to attach right of the label.

 

colspan

The number of columns the widget will use.

 

left_align

TRUE if the widget should be left-aligned.

 

Returns

The created GtkLabel.


gimp_label_set_attributes ()

void
gimp_label_set_attributes (GtkLabel *label,
                           ...);

Sets Pango attributes on a GtkLabel in a more convenient way than gtk_label_set_attributes().

This function is useful if you want to change the font attributes of a GtkLabel. This is an alternative to using PangoMarkup which is slow to parse and awkward to handle in an i18n-friendly way.

The attributes are set on the complete label, from start to end. If you need to set attributes on part of the label, you will have to use the PangoAttributes API directly.

Parameters

label

a GtkLabel

 

...

a list of PangoAttrType and value pairs terminated by -1.

 

Since: 2.2


gimp_widget_get_monitor ()

gint
gimp_widget_get_monitor (GtkWidget *widget);

gimp_get_monitor_at_pointer ()

gint
gimp_get_monitor_at_pointer (GdkScreen **screen);

gimp_widget_get_color_profile ()

GimpColorProfile *
gimp_widget_get_color_profile (GtkWidget *widget);

gimp_widget_get_color_transform ()

GimpColorTransform *
gimp_widget_get_color_transform (GtkWidget *widget,
                                 GimpColorConfig *config,
                                 GimpColorProfile *src_profile,
                                 const Babl *src_format,
                                 const Babl *dest_format);

Types and Values