Sha256: de29197110a450e8708bcfe60ac556d6d54baa17b188081e424767f69c6a336b

Contents?: true

Size: 1.45 KB

Versions: 94

Compression:

Stored size: 1.45 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

94 entries across 94 versions & 1 rubygems

Version Path
fxruby-1.6.48 rdoc-sources/FX7Segment.rb
fxruby-1.6.48-x64-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.48-x64-mingw-ucrt rdoc-sources/FX7Segment.rb
fxruby-1.6.48-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.47 rdoc-sources/FX7Segment.rb
fxruby-1.6.47-x64-mingw-ucrt rdoc-sources/FX7Segment.rb
fxruby-1.6.47-x64-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.47-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.46 rdoc-sources/FX7Segment.rb
fxruby-1.6.46-x64-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.46-x64-mingw-ucrt rdoc-sources/FX7Segment.rb
fxruby-1.6.46-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.45 rdoc-sources/FX7Segment.rb
fxruby-1.6.45-x64-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.45-x64-mingw-ucrt rdoc-sources/FX7Segment.rb
fxruby-1.6.45-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.44 rdoc-sources/FX7Segment.rb
fxruby-1.6.44-x64-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.44-x86-mingw32 rdoc-sources/FX7Segment.rb
fxruby-1.6.43 rdoc-sources/FX7Segment.rb