Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Base class for horizontal or vertical rulers
Synopsis
- data Ruler
- class WidgetClass o => RulerClass o
- castToRuler :: GObjectClass obj => obj -> Ruler
- toRuler :: RulerClass o => o -> Ruler
- data MetricType
- = Pixels
- | Inches
- | Centimeters
- rulerRange :: RulerClass self => Attr self (Double, Double, Double, Double)
- rulerLower :: RulerClass self => Attr self Double
- rulerUpper :: RulerClass self => Attr self Double
- rulerPosition :: RulerClass self => Attr self Double
- rulerMaxSize :: RulerClass self => Attr self Double
- rulerMetric :: RulerClass self => Attr self MetricType
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.
- Rulers are removed in Gtk3 and thus this module is blank. There is no replacement
Class Hierarchy
Types
Instances
Eq Ruler Source # | |
Ord Ruler Source # | |
GObjectClass Ruler Source # | |
Defined in Graphics.UI.Gtk.Types | |
RulerClass Ruler Source # | |
Defined in Graphics.UI.Gtk.Types | |
WidgetClass Ruler Source # | |
Defined in Graphics.UI.Gtk.Types | |
ObjectClass Ruler Source # | |
Defined in Graphics.UI.Gtk.Types |
class WidgetClass o => RulerClass o Source #
Instances
RulerClass VRuler Source # | |
Defined in Graphics.UI.Gtk.Types | |
RulerClass HRuler Source # | |
Defined in Graphics.UI.Gtk.Types | |
RulerClass Ruler Source # | |
Defined in Graphics.UI.Gtk.Types |
castToRuler :: GObjectClass obj => obj -> Ruler Source #
toRuler :: RulerClass o => o -> Ruler Source #
Enums
data MetricType Source #
Units of measure
Removed in Gtk3.
Instances
Enum MetricType Source # | |
Defined in Graphics.UI.Gtk.General.Enums succ :: MetricType -> MetricType # pred :: MetricType -> MetricType # toEnum :: Int -> MetricType # fromEnum :: MetricType -> Int # enumFrom :: MetricType -> [MetricType] # enumFromThen :: MetricType -> MetricType -> [MetricType] # enumFromTo :: MetricType -> MetricType -> [MetricType] # enumFromThenTo :: MetricType -> MetricType -> MetricType -> [MetricType] # | |
Eq MetricType Source # | |
Defined in Graphics.UI.Gtk.General.Enums (==) :: MetricType -> MetricType -> Bool # (/=) :: MetricType -> MetricType -> Bool # | |
Show MetricType Source # | |
Defined in Graphics.UI.Gtk.General.Enums showsPrec :: Int -> MetricType -> ShowS # show :: MetricType -> String # showList :: [MetricType] -> ShowS # |
Attributes
rulerRange :: RulerClass self => Attr self (Double, Double, Double, Double) Source #
Range of ruler
rulerLower :: RulerClass self => Attr self Double Source #
Lower limit of ruler.
Default value: 0
rulerUpper :: RulerClass self => Attr self Double Source #
Upper limit of ruler.
Default value: 0
rulerPosition :: RulerClass self => Attr self Double Source #
Position of mark on the ruler.
Default value: 0
rulerMaxSize :: RulerClass self => Attr self Double Source #
Maximum size of the ruler.
Default value: 0
rulerMetric :: RulerClass self => Attr self MetricType Source #
The metric used for the ruler.
Default value: 'Pixels'
Since 2.8