Top |
void | gtk_ruler_set_metric () |
void | gtk_ruler_set_range () |
GtkMetricType | gtk_ruler_get_metric () |
void | gtk_ruler_get_range () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkRuler ├── GtkHRuler ╰── GtkVRuler
void gtk_ruler_set_metric (GtkRuler *ruler
,GtkMetricType metric
);
gtk_ruler_set_metric
is deprecated and should not be used in newly-written code.
void gtk_ruler_set_range (GtkRuler *ruler
,gdouble lower
,gdouble upper
,gdouble position
,gdouble max_size
);
gtk_ruler_set_range
is deprecated and should not be used in newly-written code.
This sets the range of the ruler.
Deprecated
: 2.24: GtkRuler has been removed from GTK 3 for being
unmaintained and too specialized. There is no replacement.
GtkMetricType
gtk_ruler_get_metric (GtkRuler *ruler
);
gtk_ruler_get_metric
is deprecated and should not be used in newly-written code.
Gets the units used for a GtkRuler. See gtk_ruler_set_metric()
.
the units currently used for ruler
Deprecated
: 2.24: GtkRuler has been removed from GTK 3 for being
unmaintained and too specialized. There is no replacement.
void gtk_ruler_get_range (GtkRuler *ruler
,gdouble *lower
,gdouble *upper
,gdouble *position
,gdouble *max_size
);
gtk_ruler_get_range
is deprecated and should not be used in newly-written code.
Retrieves values indicating the range and current position of a GtkRuler.
See gtk_ruler_set_range()
.
Deprecated
: 2.24: GtkRuler has been removed from GTK 3 for being
unmaintained and too specialized. There is no replacement.
ruler |
a GtkRuler |
|
lower |
location to store lower limit of the ruler, or |
[allow-none] |
upper |
location to store upper limit of the ruler, or |
[allow-none] |
position |
location to store the current position of the mark on the ruler, or |
[allow-none] |
max_size |
location to store the maximum size of the ruler used when calculating
the space to leave for the text, or |
struct GtkRuler;
GtkRuler
is deprecated and should not be used in newly-written code.
struct GtkRulerMetric { gchar *metric_name; gchar *abbrev; /* This should be points_per_unit. This is the size of the unit * in 1/72nd's of an inch and has nothing to do with screen pixels */ gdouble pixels_per_unit; gdouble ruler_scale[10]; gint subdivide[5]; /* five possible modes of subdivision */ };
GtkRulerMetric
is deprecated and should not be used in newly-written code.
“lower”
property “lower” double
Lower limit of ruler.
Owner: GtkRuler
Flags: Read / Write
Default value: 0
“max-size”
property “max-size” double
Maximum size of the ruler.
Owner: GtkRuler
Flags: Read / Write
Default value: 0
“metric”
property“metric” GtkMetricType
The metric used for the ruler.
Owner: GtkRuler
Flags: Read / Write
Default value: GTK_PIXELS
Since: 2.8
“position”
property “position” double
Position of mark on the ruler.
Owner: GtkRuler
Flags: Read / Write
Default value: 0