| Top |
GimpWidgetsGimpWidgets — A collection of convenient widget constructors, standard callbacks and helper functions. |
| GtkWidget * | gimp_int_radio_group_new () |
| void | gimp_int_radio_group_set_active () |
| GtkWidget * | gimp_spin_button_new () |
| GtkWidget * | gimp_scale_entry_new () |
| void | gimp_scale_entry_set_logarithmic () |
| gboolean | gimp_scale_entry_get_logarithmic () |
| GtkWidget * | gimp_color_scale_entry_new () |
| #define | GIMP_RANDOM_SEED_SPINBUTTON() |
| #define | GIMP_RANDOM_SEED_SPINBUTTON_ADJ() |
| #define | GIMP_RANDOM_SEED_TOGGLE() |
| GtkWidget * | gimp_random_seed_new () |
| #define | GIMP_COORDINATES_CHAINBUTTON() |
| GtkWidget * | gimp_coordinates_new () |
| void | gimp_toggle_button_update () |
| void | gimp_radio_button_update () |
| void | gimp_int_adjustment_update () |
| void | gimp_uint_adjustment_update () |
| void | gimp_float_adjustment_update () |
| void | gimp_double_adjustment_update () |
| GQuark | gimp_widgets_error_quark () |
A collection of convenient widget constructors, standard callbacks and helper functions.
GtkWidget * gimp_int_radio_group_new (gboolean in_frame,const gchar *frame_title,GCallback radio_button_callback,gpointer radio_button_callback_data,GDestroyNotify radio_button_callback_destroy,gint initial,...);
Convenience function to create a group of radio buttons embedded into
a GtkFrame or GtkBox. This function does the same thing as
gimp_radio_group_new2(), but it takes integers as item_data
instead of
pointers, since that is a very common case (mapping an enum to a radio
group).
[skip]
in_frame |
|
|
frame_title |
The title of the Frame or |
[nullable] |
radio_button_callback |
The callback each button's "toggled" signal will be connected with. |
[scope notified] |
radio_button_callback_data |
The data which will be passed to |
[closure radio_button_callback] |
radio_button_callback_destroy |
. |
[destroy radio_button_callback_data] |
initial |
The |
|
... |
A |
void gimp_int_radio_group_set_active (GtkRadioButton *radio_button,gint item_data);
Calls gtk_toggle_button_set_active() with the radio button that was created
with a matching item_data
. This function does the same thing as
gimp_radio_group_set_active(), but takes integers as item_data
instead
of pointers.
GtkWidget * gimp_spin_button_new (GtkAdjustment *adjustment,gdouble climb_rate,guint digits);
Creates a new GimpSpinButton.
adjustment |
the GtkAdjustment object that this spin
button should use, or |
[allow-none] |
climb_rate |
specifies by how much the rate of change in the value will accelerate if you continue to hold down an up/down button or arrow key |
|
digits |
the number of decimal places to display |
Since: 2.10.10
GtkWidget * gimp_scale_entry_new (const gchar *text,gdouble value,gdouble lower,gdouble upper,guint digits);
This function creates a GtkLabel, a GtkHScale and a GtkSpinButton and attaches them to a 3-column GtkGrid.
void gimp_scale_entry_set_logarithmic (GimpScaleEntry *entry,gboolean logarithmic);
Sets whether entry
's scale widget will behave in a linear
or logarithmic fashion. Useful when an entry has to attend large
ranges, but smaller selections on that range require a finer
adjustment.
entry |
a GimpScaleEntry as returned by |
|
logarithmic |
a boolean value to set or reset logarithmic behaviour of the scale widget |
Since: 2.2
gboolean
gimp_scale_entry_get_logarithmic (GimpScaleEntry *entry);
TRUE if entry
's scale widget will behave in
logarithmic fashion, FALSE for linear behaviour.
Since: 2.2
GtkWidget * gimp_color_scale_entry_new (const gchar *text,gdouble value,gdouble lower,gdouble upper,guint digits);
GtkWidget * gimp_random_seed_new (guint32 *seed,gboolean *random_seed);
Creates a widget that allows the user to control how the random number generator is initialized.
GtkWidget * gimp_coordinates_new (GimpUnit unit,const gchar *unit_format,gboolean menu_show_pixels,gboolean menu_show_percent,gint spinbutton_width,GimpSizeEntryUpdatePolicy update_policy,gboolean chainbutton_active,gboolean chain_constrains_ratio,const gchar *xlabel,gdouble x,gdouble xres,gdouble lower_boundary_x,gdouble upper_boundary_x,gdouble xsize_0,gdouble xsize_100,const gchar *ylabel,gdouble y,gdouble yres,gdouble lower_boundary_y,gdouble upper_boundary_y,gdouble ysize_0,gdouble ysize_100);
Convenience function that creates a GimpSizeEntry with two fields for x/y coordinates/sizes with a GimpChainButton attached to constrain either the two fields' values or the ratio between them.
unit |
The initial unit of the GimpUnitMenu. |
|
unit_format |
A printf-like unit-format string as is used with
|
|
menu_show_pixels |
|
|
menu_show_percent |
|
|
spinbutton_width |
The horizontal size of the GimpSizeEntry's GtkSpinButton's. |
|
update_policy |
The update policy for the GimpSizeEntry. |
|
chainbutton_active |
|
|
chain_constrains_ratio |
|
|
xlabel |
The label for the X coordinate. |
|
x |
The initial value of the X coordinate. |
|
xres |
The horizontal resolution in DPI. |
|
lower_boundary_x |
The lower boundary of the X coordinate. |
|
upper_boundary_x |
The upper boundary of the X coordinate. |
|
xsize_0 |
The X value which will be treated as 0%. |
|
xsize_100 |
The X value which will be treated as 100%. |
|
ylabel |
The label for the Y coordinate. |
|
y |
The initial value of the Y coordinate. |
|
yres |
The vertical resolution in DPI. |
|
lower_boundary_y |
The lower boundary of the Y coordinate. |
|
upper_boundary_y |
The upper boundary of the Y coordinate. |
|
ysize_0 |
The Y value which will be treated as 0%. |
|
ysize_100 |
The Y value which will be treated as 100%. |
void gimp_int_adjustment_update (GtkAdjustment *adjustment,gpointer data);
Note that the GtkAdjustment's value (which is a gdouble) will be
rounded with RINT().
void gimp_uint_adjustment_update (GtkAdjustment *adjustment,gpointer data);
Note that the GtkAdjustment's value (which is a gdouble) will be rounded with (guint) (value + 0.5).
void gimp_float_adjustment_update (GtkAdjustment *adjustment,gpointer data);
void gimp_double_adjustment_update (GtkAdjustment *adjustment,gpointer data);
GQuark
gimp_widgets_error_quark (void);
This function is never called directly. Use GIMP_WIDGETS_ERROR() instead.
#define GIMP_WIDGETS_ERROR (gimp_widgets_error_quark ())
The GIMP widgets error domain.
Since: 2.8