![]() |
![]() |
![]() |
GIMP Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GimpUnitStore; struct GimpUnitStoreClass; GimpUnitStore * gimp_unit_store_new (gint num_values
); void gimp_unit_store_set_has_pixels (GimpUnitStore *store
,gboolean has_pixels
); gboolean gimp_unit_store_get_has_pixels (GimpUnitStore *store
); void gimp_unit_store_set_has_percent (GimpUnitStore *store
,gboolean has_percent
); gboolean gimp_unit_store_get_has_percent (GimpUnitStore *store
); void gimp_unit_store_set_pixel_value (GimpUnitStore *store
,gint index
,gdouble value
); void gimp_unit_store_set_pixel_values (GimpUnitStore *store
,gdouble first_value
,...
); void gimp_unit_store_set_resolution (GimpUnitStore *store
,gint index
,gdouble resolution
); void gimp_unit_store_set_resolutions (GimpUnitStore *store
,gdouble first_resolution
,...
); gdouble gimp_unit_store_get_value (GimpUnitStore *store
,GimpUnit unit
,gint index
); void gimp_unit_store_get_values (GimpUnitStore *store
,GimpUnit unit
,gdouble *first_value
,...
);
"has-percent" gboolean : Read / Write "has-pixels" gboolean : Read / Write "long-format" gchar* : Read / Write "num-values" gint : Read / Write / Construct Only "short-format" gchar* : Read / Write
struct GimpUnitStoreClass { GObjectClass parent_class; /* Padding for future expansion */ void (*_gtk_reserved1) (void); void (*_gtk_reserved2) (void); void (*_gtk_reserved3) (void); void (*_gtk_reserved4) (void); };
void gimp_unit_store_set_has_pixels (GimpUnitStore *store
,gboolean has_pixels
);
void gimp_unit_store_set_has_percent (GimpUnitStore *store
,gboolean has_percent
);
void gimp_unit_store_set_pixel_value (GimpUnitStore *store
,gint index
,gdouble value
);
void gimp_unit_store_set_pixel_values (GimpUnitStore *store
,gdouble first_value
,...
);
void gimp_unit_store_set_resolution (GimpUnitStore *store
,gint index
,gdouble resolution
);
void gimp_unit_store_set_resolutions (GimpUnitStore *store
,gdouble first_resolution
,...
);
gdouble gimp_unit_store_get_value (GimpUnitStore *store
,GimpUnit unit
,gint index
);
void gimp_unit_store_get_values (GimpUnitStore *store
,GimpUnit unit
,gdouble *first_value
,...
);