Sha256: ef4faff760fb455e7175ce25ea5cbc4334886f81496db0c0a5fceef240c395d7
Contents?: true
Size: 1.93 KB
Versions: 5
Compression:
Stored size: 1.93 KB
Contents
module Fox # # An FXRuler widget can be placed alongside a document to measure position # and size of entities within the document. # # === Events # # The following messages are sent by FXRuler to its target: # # +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance. # +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance. # # === Ruler options # # +RULER_NORMAL+:: Default appearance (default) # +RULER_HORIZONTAL+:: Ruler is horizontal (default) # +RULER_VERTICAL+:: Ruler is vertical # +RULER_TICKS_OFF+:: Tick marks off (default) # +RULER_TICKS_TOP+:: Ticks on the top (if horizontal) # +RULER_TICKS_BOTTOM+:: Ticks on the bottom (if horizontal) # +RULER_TICKS_LEFT+:: Ticks on the left (if vertical) # +RULER_TICKS_RIGHT+:: Ticks on the right (if vertical) # +RULER_TICKS_CENTER+:: Tickmarks centered # +RULER_NUMBERS+:: Show numbers # +RULER_ARROW+:: Draw small arrow for cursor position # +RULER_MARKERS+:: Draw markers for indentation settings # +RULER_METRIC+:: Metric subdivision (default) # +RULER_ENGLISH+:: English subdivision # # === Message identifiers: # # +ID_ARROW+:: write me # class FXRuler < FXFrame # The text font [FXFont] attr_accessor :font # The slider value [Integer] attr_accessor :value # The ruler style [Integer] attr_accessor :rulerStyle # The current text color [FXColor] attr_accessor :textColor # The status line help text for this ruler [String] attr_accessor :helpText # The tool tip message for this ruler [String] attr_accessor :tipText # # Return an initialized FXRuler instance. # def initialize(p, tgt=nil, sel=0, opts=RULER_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD) # :yields: theRuler end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fxruby-1.2.2 | rdoc-sources/FXRuler.rb |
fxruby-1.2.3 | rdoc-sources/FXRuler.rb |
fxruby-1.2.4 | rdoc-sources/FXRuler.rb |
fxruby-1.2.5 | rdoc-sources/FXRuler.rb |
fxruby-1.2.6 | rdoc-sources/FXRuler.rb |