- public bool cairo_set_focus_line_pattern (Context cr, Widget widget)
Sets color and dash pattern for stroking a focus line on the given
cr.
- public void cairo_set_source_color (Context cr, Color color, ColorConfig config, bool softproof, Widget? widget)
Sets color as the source pattern within cr,
taking into account the profile of the [class@Gdk.
- public Surface cairo_surface_create_from_pixbuf (Pixbuf pixbuf)
Create a Cairo image surface from a GdkPixbuf.
- public void context_help (Widget widget)
This function invokes the context help inspector.
- public Widget coordinates_new (Unit unit, string unit_format, bool menu_show_pixels, bool menu_show_percent, int spinbutton_width, SizeEntryUpdatePolicy update_policy, bool chainbutton_active, bool chain_constrains_ratio, string xlabel, double x, double xres, double lower_boundary_x, double upper_boundary_x, double xsize_0, double xsize_100, string ylabel, double y, double yres, double lower_boundary_y, double upper_boundary_y, double ysize_0, double ysize_100)
Convenience function that creates a
SizeEntry with two fields for x/y coordinates/sizes with a
ChainButton attached to constrain either the two fields' values or the ratio
between them.
- public void double_adjustment_update (Adjustment adjustment, out double data)
- public Widget enum_icon_box_new (Type enum_type, string icon_prefix, IconSize icon_size, owned Callback? callback, out unowned Widget first_button)
Creates a horizontal box of radio buttons with named icons.
- public Widget enum_icon_box_new_with_range (Type enum_type, int minimum, int maximum, string icon_prefix, IconSize icon_size, owned Callback? callback, out unowned Widget first_button)
Just like
enum_icon_box_new, this function creates a group of radio buttons, but additionally it supports limiting the range of available
enum values.
- public void enum_icon_box_set_child_padding (Widget icon_box, int xpad, int ypad)
- public void enum_icon_box_set_icon_size (Widget icon_box, IconSize icon_size)
- public Widget enum_radio_box_new (Type enum_type, owned Callback? callback, out unowned Widget first_button)
Creates a new group of
RadioButtons representing the enum values.
- public Widget enum_radio_box_new_with_range (Type enum_type, int minimum, int maximum, owned Callback? callback, out unowned Widget first_button)
Just like
enum_radio_box_new, this function creates a group of radio buttons, but additionally it supports limiting the range of available
enum values.
- public Widget enum_radio_frame_new (Type enum_type, Widget? label_widget, owned Callback? callback, out unowned Widget first_button)
- public Widget enum_radio_frame_new_with_range (Type enum_type, int minimum, int maximum, Widget? label_widget, owned Callback? callback, out unowned Widget first_button)
- public bool event_triggers_context_menu (Event event, bool on_release)
Alternative of
triggers_context_menu with the additional feature of
allowing a menu triggering to happen on a button release event.
- public void float_adjustment_update (Adjustment adjustment, out float data)
- public unowned Monitor get_monitor_at_pointer ()
- public unowned Widget grid_attach_aligned (Grid grid, int left, int top, string label_text, float label_xalign, float label_yalign, Widget widget, int widget_columns)
Note that the label_text can be
null and that the widget will be attached starting at (column + 1) in this case, too.
- public void help_connect (Widget widget, string? tooltip, owned HelpFunc help_func, string help_id)
Note that this function is automatically called by all libgimp dialog
constructors.
- public Quark help_id_quark ()
This function returns the
Quark which should be used as key when attaching help IDs to widgets and
objects.
- public void help_set_help_data (Widget widget, string? tooltip, string help_id)
The reason why we don't use
set_tooltip_text is that elements in the GIMP user interface
should, if possible, also have a help_id set for context-sensitive help.
- public void help_set_help_data_with_markup (Widget widget, string tooltip, string help_id)
Just like
help_set_help_data, but supports to pass text which is marked up with <link linkend="PangoMarkupFormat">Pango text markup
language</link>.
- public void icons_init ()
Initializes the GIMP stock icon factory.
- public bool icons_set_icon_theme (File path)
- public void init (string prog_name)
This function initializes GTK with [func@Gtk.
- public void int_adjustment_update (Adjustment adjustment, out int data)
Note that the
Adjustment's value (which is a double) will be rounded with RINT
.
- public void int_radio_group_set_active (RadioButton radio_button, int item_data)
Calls
set_active with the radio button that was created with a
matching item_data.
- public ColorProfile? monitor_get_color_profile (Monitor monitor)
This function returns the
ColorProfile of monitor or null
if there is no profile configured.
- public Widget proc_view_new (string procedure_name)
- public Widget prop_boolean_combo_box_new (Object config, string property_name, string true_text, string false_text)
Creates a
ComboBox widget to display and set the specified boolean property.
- public Widget prop_boolean_radio_frame_new (Object config, string property_name, string? title, string true_text, string false_text)
Creates a pair of radio buttons which function to set and display the
specified boolean property.
- public Widget prop_brush_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_check_button_new (Object config, string property_name, string? label)
Creates a
CheckButton that displays and sets the specified boolean property.
- public Widget prop_choice_combo_box_new (Object config, string property_name)
Creates a
StringComboBox widget to display and set the specified property.
- public Widget prop_choice_radio_frame_new (Object config, string property_name)
Creates a [class@GimpUi.
- public Widget prop_color_area_new (Object config, string property_name, int width, int height, ColorAreaType type)
Creates a ColorArea
to set and display the value of an RGB property.
- public Widget prop_color_select_new (Object config, string property_name, int width, int height, ColorAreaType type)
Creates a ColorButton
to set and display the value of a color property.
- public bool prop_coordinates_connect (Object config, string x_property_name, string y_property_name, string unit_property_name, Widget sizeentry, Widget chainbutton, double xresolution, double yresolution)
- public Widget prop_coordinates_new (Object config, string x_property_name, string y_property_name, string unit_property_name, string unit_format, SizeEntryUpdatePolicy update_policy, double xresolution, double yresolution, bool has_chainbutton)
Creates a SizeEntry
to set and display two double or int properties, which will usually represent X and Y coordinates, and their associated unit property.
- public Widget prop_drawable_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_entry_new (Object config, string property_name, int max_len)
Creates a Entry
to set and display the value of the specified string property.
- public Widget prop_enum_check_button_new (Object config, string property_name, string? label, int false_value, int true_value)
Creates a
CheckButton that displays and sets the specified property of type Enum.
- public Widget prop_enum_combo_box_new (Object config, string property_name, int minimum, int maximum)
Creates a IntComboBox
widget to display and set the specified enum property.
- public Widget prop_enum_icon_box_new (Object config, string property_name, string icon_prefix, int minimum, int maximum)
Creates a horizontal box of radio buttons with named icons, which
function to set and display the value of the specified Enum property.
- public Widget prop_enum_label_new (Object config, string property_name)
- public Widget prop_enum_radio_box_new (Object config, string property_name, int minimum, int maximum)
Creates a group of radio buttons which function to set and display the
specified enum property.
- public Widget prop_enum_radio_frame_new (Object config, string property_name, string? title, int minimum, int maximum)
Creates a group of radio buttons which function to set and display the
specified enum property.
- public Widget prop_expander_new (Object config, string property_name, string? label)
Creates a
Expander controlled by the specified boolean property.
- public Widget prop_file_chooser_button_new (Object config, string property_name, string? title, FileChooserAction action)
- public Widget prop_file_chooser_button_new_with_dialog (Object config, string property_name, Widget dialog)
- public Widget prop_file_chooser_new (Object config, string property_name, string? label, string? title)
Creates a [class@GimpUi.
- public Widget prop_font_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_gradient_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_hscale_new (Object config, string property_name, double step_increment, double page_increment, int digits)
Creates a horizontal scale to control the value of the specified
integer or double property.
- public Widget prop_icon_image_new (Object config, string property_name, IconSize icon_size)
Creates a widget to display a icon image representing the value of the
specified string property, which should encode an icon name.
- public Widget prop_image_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_int_combo_box_new (Object config, string property_name, IntStore store)
Creates a IntComboBox
widget to display and set the specified property.
- public Widget prop_int_radio_frame_new (Object config, string property_name, string? title, IntStore store)
Creates a group of radio buttons which function to set and display the
specified int property.
- public Widget prop_item_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_label_color_new (Object config, string property_name, bool editable)
Creates a LabelColor
to set and display the value of an RGB property.
- public Widget prop_label_entry_new (Object config, string property_name, int max_len)
Creates a LabelEntry
to set and display the value of the specified string property.
- public Widget prop_label_new (Object config, string property_name)
Creates a Label
to display the value of the specified property.
- public Widget prop_label_spin_new (Object config, string property_name, int digits)
Creates a LabelSpin
to set and display the value of the specified double property.
- public Widget prop_memsize_entry_new (Object config, string property_name)
Creates a
MemsizeEntry (spin button and option menu) to set and display the value of the specified memsize property.
- public Widget prop_palette_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_path_editor_new (Object config, string path_property_name, string writable_property_name, string filechooser_title)
Creates a PathEditor
to edit the specified path and writable path properties.
- public Widget prop_pattern_chooser_new (Object config, string property_name, string? chooser_title)
Creates a [class@GimpUi.
- public Widget prop_pointer_combo_box_new (Object config, string property_name, IntStore store)
Creates a IntComboBox
widget to display and set the specified property.
- public Widget prop_scale_entry_new (Object config, string property_name, string? label, double factor, bool limit_scale, double lower_limit, double upper_limit)
Creates a ScaleEntry
(slider and spin button) to set and display the value of a specified int or double property with sensible default settings
depending on the range (decimal places, increments, etc.
- public Widget prop_size_entry_new (Object config, string property_name, bool property_is_pixel, string unit_property_name, string unit_format, SizeEntryUpdatePolicy update_policy, double resolution)
Creates a SizeEntry
to set and display the specified double or int property, and its associated unit property.
- public Widget prop_spin_button_new (Object config, string property_name, double step_increment, double page_increment, int digits)
Creates a spin button to set and display the value of the specified
double property.
- public Widget prop_spin_scale_new (Object config, string property_name, double step_increment, double page_increment, int digits)
Creates a spin scale to set and display the value of the specified int
or double property.
- public Widget prop_string_combo_box_new (Object config, string property_name, TreeModel model, int id_column, int label_column)
Creates a
StringComboBox widget to display and set the specified property.
- public Widget prop_switch_new (Object config, string property_name, string label, out unowned Widget label_out, out unowned Widget switch_out)
Creates a Box
with a switch and a label that displays and sets the specified boolean property.
- public TextBuffer prop_text_buffer_new (Object config, string property_name, int max_len)
Creates a
TextBuffer to set and display the value of the specified string property.
- public Widget prop_toggle_new (Object config, string property_name, string icon_name, string label, out unowned Widget image_out)
Creates a [class@Gtk.
- public Widget prop_unit_combo_box_new (Object config, string property_name)
Creates a
UnitComboBox to set and display the value of a Unit property.
- public void prop_widget_set_factor (Widget widget, double factor, double step_increment, double page_increment, int digits)
Change the display factor of the property widget
relatively to the property it was bound to.
- public Widget query_boolean_box (string title, Widget parent, HelpFunc help_func, string help_id, string icon_name, string message, string true_button, string false_button, Object object, string @signal, owned QueryBooleanCallback callback)
Creates a new
Dialog that asks the user to do a boolean decision.
- public Widget query_double_box (string title, Widget parent, HelpFunc help_func, string help_id, string message, double initial, double lower, double upper, int digits, Object object, string @signal, owned QueryDoubleCallback callback)
Creates a new
Dialog that queries the user for a double value.
- public Widget query_int_box (string title, Widget parent, HelpFunc help_func, string help_id, string message, int initial, int lower, int upper, Object object, string @signal, owned QueryIntCallback callback)
Creates a new
Dialog that queries the user for an integer value.
- public Widget query_size_box (string title, Widget parent, HelpFunc help_func, string help_id, string message, double initial, double lower, double upper, int digits, Unit unit, double resolution, bool dot_for_dot, Object object, string @signal, owned QuerySizeCallback callback)
- public Widget query_string_box (string title, Widget parent, HelpFunc help_func, string help_id, string message, string initial, Object object, string @signal, owned QueryStringCallback callback)
Creates a new
Dialog that queries the user for a string value.
- public void radio_button_update (Widget widget, out int data)
- public Widget random_seed_new (uint32 seed, bool random_seed)
Creates a widget that allows the user to control how the random number
generator is initialized.
- public void scroll_adjustment_values (EventScroll sevent, Adjustment? hadj, Adjustment? vadj, out double hvalue, out double vvalue)
- public void standard_help_func (string help_id, void* help_data)
This is the standard GIMP help function which does nothing but calling
help.
- public void toggle_button_update (Widget widget, out bool data)
- public void uint_adjustment_update (Adjustment adjustment, out uint data)
- public bool widget_animation_enabled ()
This function attempts to read the user's system preference for
showing animation.
- public void widget_free_native_handle (Widget widget, ref Bytes window_handle)
Disposes a widget's native window handle created, possibly
asynchronously, by a previous call to [func@GimpUi.
- public ColorProfile? widget_get_color_profile (Widget widget)
This function returns the
ColorProfile of the monitor widget is currently displayed
on, or null if there is no profile configured.
- public ColorTransform? widget_get_color_transform (Widget widget, ColorConfig config, ColorProfile src_profile, Object src_format, Object dest_format, ColorProfile softproof_profile, ColorRenderingIntent proof_intent, bool proof_bpc)
This function returns the
ColorTransform that transforms pixels from src_profile
to the profile of the Monitor the widget is displayed on.
- public unowned Monitor widget_get_monitor (Widget widget)
- public unowned Object? widget_get_render_space (Widget widget, ColorConfig config)
- public void widget_set_native_handle (Widget widget, ref Bytes window_handle)
This function is to be used in custom widget construction to store the
window handle representing widget into window_handle so that it can later be reused to set other windows as
transient to this one (even across processes, such as in-between plug-ins), e.
- public void widget_track_monitor (Widget widget, owned Callback monitor_changed_callback)
This function behaves as if
Widget had a signal
- public Quark widgets_error_quark ()
This function is never called directly.
- public void window_set_transient (Window window)
Indicates to the window manager that window is a
transient dialog associated with the GIMP window that the plug-in has been started from.
- public void window_set_transient_for (Window window, Bytes handle)
Indicates to the window manager that window is a
transient dialog to the window identified by handle.
- public void window_set_transient_for_display (Window window, Display display)
Indicates to the window manager that window is a
transient dialog associated with the GIMP image window that is identified by its display.
- public Widget zoom_button_new (ZoomModel model, ZoomType zoom_type, IconSize icon_size)