| Top |
GwyRectSelectionLabels * gwy_rect_selection_labels_new (gboolean none_is_full,GCallback callback,gpointer cbdata);
Creates a table displaying rectangular selection information.
The returned object will destroy itself when the table is destroyed.
none_is_full |
|
|
callback |
Callback to call when the selection is edited. |
|
cbdata |
Data to pass to |
The newly created rectangular selection information, as an opaque pointer. The table widget can be
obtained with gwy_rect_selection_labels_get_table().
GtkWidget *
gwy_rect_selection_labels_get_table (GwyRectSelectionLabels *rlabels);
Gets the table widget of a rectangular selection information.
void gwy_rect_selection_labels_select (GwyRectSelectionLabels *rlabels,GwySelection *selection,GwyField *field);
Updates selection data using rectangular selection information table.
gboolean gwy_rect_selection_labels_fill (GwyRectSelectionLabels *rlabels,GwySelection *selection,GwyField *field,gdouble *selreal,gint *selpix);
Updates rectangular selection info display.
It is possible to pass NULL field
but non-NULL selection
. This can lead to TRUE return value (if the
selection is non-empty), but the labels will be still cleared as there is no way to convert between real and pixel
coordinates.
rlabels |
Rectangular selection info table. |
|
selection |
A rectangular selection to fill information from. It can be |
|
field |
A data field to use for real/pixel coordinate transforms. It can be |
|
selreal |
If not |
|
selpix |
If not |