In Files

Parent

Methods

Brush

A Brush is a very simple drawing instrument that fills a given shape with a single flat color. This is sufficient for many GUI drawing tasks, for example, providing the colour of some text.

However, if something more 'artistic' is what you're looking for, check out the other classes of brush - LinearGradientBrush, PathGradientBrush, HatchBrush and TextureBrush.

Public Class Methods

new(Color) → Brush click to toggle source

Defines a new Brush. The only argument is a Color object to define the colour. If the Color has transparency (alpha), this will be respected, so that you can make Brushes that show some of the GUI beneath them.

# File GUI_Classes.rb, line 73
def self.new
  #DUMMY
end

Public Instance Methods

setColor(Color) click to toggle source

Sets an exisiting brush to a new color. This can be useful to avoid having to allocate memory for a new Brush object, or giving the garbage collector more to do by destroying an old one.

# File GUI_Classes.rb, line 84
def setColor
  #DUMMY
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.