Parent

Methods

Files

Wx::Colour

Constants

WHITE
(Not documented)
BLACK
(Not documented)
RED
(Not documented)
GREEN
(Not documented)
BLUE
(Not documented)
YELLOW
(Not documented)
MAGENTA
(Not documented)
CYAN
(Not documented)
LIGHT_GREY
(Not documented)

Public Instance Methods

==(other) click to toggle source

Colours are equal to one another if they have the same red, green and blue intensity, and the same alpha

# File wx/classes/colour.rb, line 35
  def ==(other)
    if not other.is_a?(self.class)
      raise ArgumentError, "No comparison of #{self} to #{other}"
    end
    [ red, green, blue, alpha ] == 
      [ other.red, other.green, other.blue, other.alpha ]
  end
to_s() click to toggle source

More informative output for inspect etc

# File wx/classes/colour.rb, line 44
  def to_s
    "#<Wx::Colour: (#{red}, #{green}, #{blue} *#{alpha})>"
  end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.