Sha256: 50c395149d7836836027df0d8780cdd23372b71ec2c9b856d7277455fd73b4d1

Contents?: true

Size: 1.49 KB

Versions: 37

Compression:

Stored size: 1.49 KB

Contents

module Fox
  #
  # Seven-segment (eg LCD/watch style) widget, useful for making
  # indicators and timers.  Besides numbers, the seven-segment
  # display widget can also display some letters and punctuations.
  #
  # === 7 Segment styles
  #
  # +SEVENSEGMENT_NORMAL+::	Draw segments normally
  # +SEVENSEGMENT_SHADOW+::	Draw shadow under the segments
  #
  class FX7Segment < FXFrame
    # The text for this label [String]
    attr_accessor :text
    
    # The text color [FXColor]
    attr_accessor :textColor
    
    # Cell width, in pixels [Integer]
    attr_accessor :cellWidth
    
    # Cell height, in pixels [Integer]
    attr_accessor :cellHeight
    
    # Segment thickness, in pixels [Integer]
    attr_accessor :thickness
    
    # Current text-justification mode [Integer]
    attr_accessor :justify
    
    # Status line help text [String]
    attr_accessor :helpText
    
    # Tool tip message [String]
    attr_accessor :tipText
    
    # Create a seven segment display
    def initialize(p, text, opts=SEVENSEGMENT_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: the7Segment
    end
  
    #
    # Change 7 segment style, where _style_ is either +SEVENSEGMENT_NORMAL+ or
    # +SEVENSEGMENT_SHADOW+.
    #
    def set7SegmentStyle(style); end

    #
    # Return the current 7 segment style, which is either +SEVENSEGMENT_NORMAL+
    # or +SEVENSEGMENT_SHADOW+.
    #
    def get7SegmentStyle(); end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
fxruby-1.6.22.pre2-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.22.pre2 rdoc-sources/FX7Segment.rb
fxrubi-1.6.22.pre1-x86-mingw32 rdoc-sources/FX7Segment.rb
fxrubi-1.6.22.pre1 rdoc-sources/FX7Segment.rb
fxruby-1.6.20-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.20-x86-linux rdoc-sources/FX7Segment.rb
fxruby-1.6.20 rdoc-sources/FX7Segment.rb
fxruby-1.6.20-universal-darwin-10 rdoc-sources/FX7Segment.rb
fxruby-1.6.19-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.14-mswin32 rdoc-sources/FX7Segment.rb
fxruby-1.6.13-mswin32 rdoc-sources/FX7Segment.rb
fxruby-1.6.11 rdoc-sources/FX7Segment.rb
fxruby-1.6.10 rdoc-sources/FX7Segment.rb
fxruby-1.6.12 rdoc-sources/FX7Segment.rb
fxruby-1.6.13 rdoc-sources/FX7Segment.rb
fxruby-1.6.14-universal-darwin-9 rdoc-sources/FX7Segment.rb
fxruby-1.6.15-universal-darwin-9 rdoc-sources/FX7Segment.rb
fxruby-1.6.14 rdoc-sources/FX7Segment.rb
fxruby-1.6.15 rdoc-sources/FX7Segment.rb
fxruby-1.6.15-x86-mswin32-60 rdoc-sources/FX7Segment.rb