gtk.Ruler.Ruler Class Reference

Inheritance diagram for gtk.Ruler.Ruler:

gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG gtk.HRuler.HRuler gtk.VRuler.VRuler List of all members.

Public Member Functions

GtkRulergetRulerStruct ()
 this (GtkRuler *gtkRuler)
 Sets our main struct and passes it to the parent class.
void setMetric (GtkMetricType metric)
 This calls the GTKMetricType to set the ruler to units defined.
void setRange (double lower, double upper, double position, double maxSize)
 This sets the range of the ruler using gfloat lower, gfloat upper, gfloat position, and gfloat max_size.
GtkMetricType getMetric ()
 Gets the units used for a GtkRuler.
void getRange (double *lower, double *upper, double *position, double *maxSize)
 Retrieves values indicating the range and current position of a GtkRuler.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkRulergtkRuler
 the main Gtk struct

Constructor & Destructor Documentation

gtk.Ruler.Ruler.this ( GtkRuler gtkRuler  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

GtkMetricType gtk.Ruler.Ruler.getMetric (  ) 

Gets the units used for a GtkRuler.

See gtk_ruler_set_metric(). ruler: a GtkRuler Returns: the units currently used for ruler

void gtk.Ruler.Ruler.getRange ( double *  lower,
double *  upper,
double *  position,
double *  maxSize 
)

Retrieves values indicating the range and current position of a GtkRuler.

See gtk_ruler_set_range(). ruler: a GtkRuler lower: location to store lower limit of the ruler, or NULL upper: location to store upper limit of the ruler, or NULL position: location to store the current position of the mark on the ruler, or NULL max_size: location to store the maximum size of the ruler used when calculating the space to leave for the text, or NULL. Property Details The "lower" property "lower" gdouble : Read / Write Lower limit of ruler. Default value: 0

GtkRuler* gtk.Ruler.Ruler.getRulerStruct (  ) 

void* gtk.Ruler.Ruler.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Widget.Widget.

Reimplemented in gtk.HRuler.HRuler, and gtk.VRuler.VRuler.

void gtk.Ruler.Ruler.setMetric ( GtkMetricType  metric  ) 

This calls the GTKMetricType to set the ruler to units defined.

Available units are GTK_PIXELS, GTK_INCHES, or GTK_CENTIMETERS. The default unit of measurement is GTK_PIXELS. ruler: the gtkruler metric: the unit of measurement

void gtk.Ruler.Ruler.setRange ( double  lower,
double  upper,
double  position,
double  maxSize 
)

This sets the range of the ruler using gfloat lower, gfloat upper, gfloat position, and gfloat max_size.

ruler: the gtkruler lower: the lower limit of the ruler upper: the upper limit of the ruler position: the mark on the ruler max_size: the maximum size of the ruler


Member Data Documentation

GtkRuler* gtk.Ruler.Ruler.gtkRuler [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo