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