coordinates_new


Description:

[ CCode ( cname = "gimp_coordinates_new" ) ]
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.

Parameters:

unit

The initial unit of the GimpUnitMenu.

unit_format

A printf-like unit-format string as is used with gimp_unit_menu_new.

menu_show_pixels

true if the GimpUnitMenu should contain an item for GIMP_UNIT_PIXEL.

menu_show_percent

true if the GimpUnitMenu should contain an item for GIMP_UNIT_PERCENT.

spinbutton_width

The horizontal size of the SizeEntry's SpinButton's.

update_policy

The update policy for the SizeEntry.

chainbutton_active

true if the attached ChainButton should be active.

chain_constrains_ratio

true if the chainbutton should constrain the fields' aspect ratio. If false, the values will be constrained.

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%.

Returns:

The new SizeEntry.


Namespace: GimpUi
Package: gimp-ui-3.0