Sha256: 841431f5620a89d9a0f7475e59e2059b7bacff1cccb62da7db34c906bda080fe

Contents?: true

Size: 1.35 KB

Versions: 18

Compression:

Stored size: 1.35 KB

Contents

module Fox
  #
  # Progress bar widget
  #
  # === Progress bar styles
  #
  # +PROGRESSBAR_HORIZONTAL+::	Horizontal display
  # +PROGRESSBAR_VERTICAL+::	Vertical display
  # +PROGRESSBAR_PERCENTAGE+::	Show percentage done
  # +PROGRESSBAR_DIAL+::	Show as a dial instead of bar
  # +PROGRESSBAR_NORMAL+::	same as <tt>FRAME_SUNKEN|FRAME_THICK</tt>
  #
  class FXProgressBar < FXFrame
    # Amount of progress [Integer]
    attr_accessor :progress
    
    # Maximum value for progress [Integer]
    attr_accessor :total

    # Bar width [Integer]
    attr_accessor :barSize

    # Bar color [FXColor]
    attr_accessor :barColor

    # Bar background color [FXColor]
    attr_accessor :barBGColor

    # Text color [FXColor]
    attr_accessor :textColor
    
    # Alternate text color [FXColor]
    attr_accessor :textAltColor
    
    # Text font [FXFont]
    attr_accessor :font
    
    # Progress bar style [Integer]
    attr_accessor :barStyle

    #
    # Construct progress bar.
    #
    def initialize(p, tgt=nil, sel=0, opts=PROGRESSBAR_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD) # :yields: theProgressBar
    end
  
    # Increment progress by given _amount_.
    def increment(amount); end
  
    # Hide progress percentage
    def hideNumber; end
  
    # Show progress percentage
    def showNumber; end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fxruby-1.2.3 rdoc-sources/FXProgressBar.rb
fxruby-1.2.2 rdoc-sources/FXProgressBar.rb
fxruby-1.2.4 rdoc-sources/FXProgressBar.rb
fxruby-1.2.5 rdoc-sources/FXProgressBar.rb
fxruby-1.4.0 rdoc-sources/FXProgressBar.rb
fxruby-1.2.6 rdoc-sources/FXProgressBar.rb
fxruby-1.4.1 rdoc-sources/FXProgressBar.rb
fxruby-1.4.2 rdoc-sources/FXProgressBar.rb
fxruby-1.4.3 rdoc-sources/FXProgressBar.rb
fxruby-1.4.4 rdoc-sources/FXProgressBar.rb
fxruby-1.4.5 rdoc-sources/FXProgressBar.rb
fxruby-1.4.6 rdoc-sources/FXProgressBar.rb
fxruby-1.4.7 rdoc-sources/FXProgressBar.rb
fxruby-1.6.0 rdoc-sources/FXProgressBar.rb
fxruby-1.6.1 rdoc-sources/FXProgressBar.rb
fxruby-1.6.2 rdoc-sources/FXProgressBar.rb
fxruby-1.6.3 rdoc-sources/FXProgressBar.rb
fxruby-1.6.4 rdoc-sources/FXProgressBar.rb