Sha256: 306c4f89b792e9fc01eb7d0b86e172093c712413b801fd83310f32a89ab8b4c9

Contents?: true

Size: 1.83 KB

Versions: 94

Compression:

Stored size: 1.83 KB

Contents

module Fox
  #
  # A Color Bar is a widget which controls the brightness (value) of a
  # color by means of the hue, saturation, value specification system.
  # It is most useful when used together with the Color Wheel which controls
  # the hue and saturation.
  # The options <tt>COLORBAR_HORIZONTAL</tt> and <tt>COLORBAR_VERTICAL</tt> control the orientation
  # of the bar.
  #
  # === Events
  #
  # The following messages are sent by FXColorBar to its target:
  #
  # +SEL_CHANGED+::  sent continuously while the user is dragging the spot around; the message data is a three-element array containing the hue, saturation and value values.
  # +SEL_COMMAND+::  sent when the user releases the mouse button and "drops" the spot at its new location; the message data is a three-element array containing the hue, saturation and value values.
  # +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.
  #
  # === Color bar orientation
  #
  # +COLORBAR_HORIZONTAL+:: Color bar shown horizontally
  # +COLORBAR_VERTICAL+:: Color bar shown vertically

  class FXColorBar < FXFrame

    # Hue [Float]
    attr_accessor :hue

    # Saturation [Float]
    attr_accessor :sat

    # Value [Float]
    attr_accessor :val

    # Color bar style (one of +COLORBAR_HORIZONTAL+ or +COLORBAR_VERTICAL+) [Integer]
    attr_accessor :barStyle

    # Status line help text [String]
    attr_accessor :helpText

    # Tool tip message [String]
    attr_accessor :tipText

    # Construct color bar
    def initialize(parent, target=nil, selector=0, opts=FRAME_NORMAL, x=0, y=0, width=0, height=0, padLeft=DEFAULT_PAD, padRight=DEFAULT_PAD, padTop=DEFAULT_PAD, padBottom=DEFAULT_PAD) # :yields: theColorBar
    end
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

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