gimppropwidgets

gimppropwidgets

Synopsis




GtkWidget*          gimp_prop_number_pair_entry_new     (GObject *config,
                                                         const gchar *left_number_property,
                                                         const gchar *right_number_property,
                                                         const gchar *default_left_number_property,
                                                         const gchar *default_right_number_property,
                                                         const gchar *user_override_property,
                                                         gboolean connect_numbers_changed,
                                                         gboolean connect_ratio_changed,
                                                         const gchar *separators,
                                                         gboolean allow_simplification,
                                                         gdouble min_valid_value,
                                                         gdouble max_valid_value);
GtkWidget*          gimp_prop_color_button_new          (GObject *config,
                                                         const gchar *property_name,
                                                         const gchar *title,
                                                         gint width,
                                                         gint height,
                                                         GimpColorAreaType type);
GtkWidget*          gimp_prop_expanding_frame_new       (GObject *config,
                                                         const gchar *property_name,
                                                         const gchar *button_label,
                                                         GtkWidget *child,
                                                         GtkWidget **button);
GtkWidget*          gimp_prop_paint_mode_menu_new       (GObject *config,
                                                         const gchar *property_name,
                                                         gboolean with_behind_mode,
                                                         gboolean with_replace_modes);
GtkWidget*          gimp_prop_view_new                  (GObject *config,
                                                         const gchar *property_name,
                                                         GimpContext *context,
                                                         gint size);

Description

Details

gimp_prop_number_pair_entry_new ()

GtkWidget*          gimp_prop_number_pair_entry_new     (GObject *config,
                                                         const gchar *left_number_property,
                                                         const gchar *right_number_property,
                                                         const gchar *default_left_number_property,
                                                         const gchar *default_right_number_property,
                                                         const gchar *user_override_property,
                                                         gboolean connect_numbers_changed,
                                                         gboolean connect_ratio_changed,
                                                         const gchar *separators,
                                                         gboolean allow_simplification,
                                                         gdouble min_valid_value,
                                                         gdouble max_valid_value);

config :

Object to which properties are attached.

left_number_property :

Name of double property for left number.

right_number_property :

Name of double property for right number.

default_left_number_property :

Name of double property for default left number.

default_right_number_property :

Name of double property for default right number.

user_override_property :

Name of boolean property for user override mode.

connect_numbers_changed :

TRUE to connect to the widgets "numbers-changed" signal, FALSE to not connect.

connect_ratio_changed :

TRUE to connect to the widgets "ratio-changed" signal, FALSE to not connect.

separators :

allow_simplification :

min_valid_value :

max_valid_value :

What to pass to gimp_number_pair_entry_new().

Returns :

A GimpNumberPairEntry widget.

gimp_prop_color_button_new ()

GtkWidget*          gimp_prop_color_button_new          (GObject *config,
                                                         const gchar *property_name,
                                                         const gchar *title,
                                                         gint width,
                                                         gint height,
                                                         GimpColorAreaType type);

Creates a GimpColorPanel to set and display the value of a GimpRGB property. Pressing the button brings up a color selector dialog.

config :

GimpConfig object to which property is attached.

property_name :

Name of GimpRGB property.

title :

Title of the GimpColorPanel that is to be created

width :

Width of color button.

height :

Height of color button.

type :

How transparency is represented.

Returns :

A new GimpColorPanel widget. Since GIMP 2.4

gimp_prop_expanding_frame_new ()

GtkWidget*          gimp_prop_expanding_frame_new       (GObject *config,
                                                         const gchar *property_name,
                                                         const gchar *button_label,
                                                         GtkWidget *child,
                                                         GtkWidget **button);

config :

property_name :

button_label :

child :

button :

Returns :


gimp_prop_paint_mode_menu_new ()

GtkWidget*          gimp_prop_paint_mode_menu_new       (GObject *config,
                                                         const gchar *property_name,
                                                         gboolean with_behind_mode,
                                                         gboolean with_replace_modes);

Creates a GimpPaintModeMenu widget to display and set the specified Enum property, for which the enum must be GimpLayerModeEffects.

config :

GimpConfig object to which property is attached.

property_name :

Name of Enum property.

with_behind_mode :

Whether to include "Behind" mode in the menu.

with_replace_modes :

Whether to include the "Replace", "Erase" and "Anti Erase" modes in the menu.

Returns :

The newly created GimpPaintModeMenu widget. Since GIMP 2.4

gimp_prop_view_new ()

GtkWidget*          gimp_prop_view_new                  (GObject *config,
                                                         const gchar *property_name,
                                                         GimpContext *context,
                                                         gint size);

Creates a widget to display the value of a GimpViewable property.

config :

GimpConfig object to which property is attached.

property_name :

Name of GimpViewable property.

context :

a Gimpcontext.

size :

Width and height of preview display.

Returns :

A new GimpView widget. Since GIMP 2.4