Sha256: ad83d77929c4f810c087a506cf98f704de5359e2d4eb1a6ee3bf72956dbc2c34

Contents?: true

Size: 1.69 KB

Versions: 5

Compression:

Stored size: 1.69 KB

Contents

module Fox
  #
  # A Color Wheel is a widget which controls the hue and saturation values of a
  # color. It is most often used together with a Color Bar which controls the
  # brightness.
  #
  # === Events
  #
  # The following messages are sent by FXColorWheel to its target:
  #
  # +SEL_CHANGED+::		sent continuously, while the color is changing; the message data is a 3-element array of floats containing the hue, saturation and value.
  # +SEL_COMMAND+::		sent when the new color is set; the message data is a 3-element array of floats containing the hue, saturation and value.
  # +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.
  #
  class FXColorWheel < FXFrame

    # Hue [Float]
    attr_accessor :hue
    
    # Saturation [Float]
    attr_accessor :sat
    
    # Value [Float]
    attr_accessor :val
  
    # Status line help text [String]  
    attr_accessor :helpText
  
    # Tool tip message [String]  
    attr_accessor :tipText

    #
    # Construct color wheel
    #
    # ==== Parameters:
    #
    # +p+::	Parent widget [FXComposite]
    # +tgt+::	Message target object [FXObject]
    # +sel+::	Message identifier [Integer]
    # +opts+::	Options [Integer]
    # +x+::
    # +y+::
    # +w+::
    # +h+::
    # +pl+::
    # +pr+::
    # +pt+::
    # +pb+::
    #
    def initialize(p, tgt=nil, sel=0, opts=FRAME_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD) # :yields: theColorWheel
    end

    # Set hue, saturation and value all in one shot.
    def setHueSatVal(h, s, v); end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-1.6.0 rdoc-sources/FXColorWheel.rb
fxruby-1.6.1 rdoc-sources/FXColorWheel.rb
fxruby-1.6.2 rdoc-sources/FXColorWheel.rb
fxruby-1.6.3 rdoc-sources/FXColorWheel.rb
fxruby-1.6.4 rdoc-sources/FXColorWheel.rb