gtk-0.12.3: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net
Safe HaskellSafe-Infered

Graphics.UI.Gtk.Special.Ruler

Contents

Description

Base class for horizontal or vertical rulers

Synopsis

Detail

The Ruler widget is a base class for horizontal and vertical rulers. Rulers are used to show the mouse pointer's location in a window. The ruler can either be horizontal or vertical on the window. Within the ruler a small triangle indicates the location of the mouse relative to the horizontal or vertical ruler. See HRuler to learn how to create a new horizontal ruler. See VRuler to learn how to create a new vertical ruler.

Class Hierarchy

 | GObject
 | +----Object
 | +----Widget
 | +----Ruler
 | +----HRuler
 | +----VRuler

Types

Enums

data MetricType Source

Units of measure

Constructors

Pixels 
Inches 
Centimeters 

Attributes

rulerRange :: RulerClass self => Attr self (Double, Double, Double, Double)Source

Range of ruler

rulerLower :: RulerClass self => Attr self DoubleSource

Lower limit of ruler.

Default value: 0

rulerUpper :: RulerClass self => Attr self DoubleSource

Upper limit of ruler.

Default value: 0

rulerPosition :: RulerClass self => Attr self DoubleSource

Position of mark on the ruler.

Default value: 0

rulerMaxSize :: RulerClass self => Attr self DoubleSource

Maximum size of the ruler.

Default value: 0

rulerMetric :: RulerClass self => Attr self MetricTypeSource

The metric used for the ruler.

Default value: ''Pixels''

Since 2.8