Empeld
Empeld plugin documentation.
pluginbase.Helpers.Data.SolidBrush Class Reference
Inheritance diagram for pluginbase.Helpers.Data.SolidBrush:
pluginbase.Helpers.Data.IBrush

Public Member Functions

 SolidBrush (Rgba c)
 
 SolidBrush (float r, float g, float b)
 
 SolidBrush (float r, float g, float b, float a)
 
Rgba GetColor (float x, float y)
 

Static Public Member Functions

static implicit operator SolidBrush (Rgba c)
 
static implicit operator Rgba (SolidBrush b)
 

Properties

Rgba Default [get]
 
- Properties inherited from pluginbase.Helpers.Data.IBrush
Rgba Default [get]
 

Constructor & Destructor Documentation

◆ SolidBrush() [1/3]

pluginbase.Helpers.Data.SolidBrush.SolidBrush ( Rgba  c)
13  {
14  _color = c;
15  }

◆ SolidBrush() [2/3]

pluginbase.Helpers.Data.SolidBrush.SolidBrush ( float  r,
float  g,
float  b 
)
18  :this(new Rgba(r,g,b))
19  {}
Class the represents a floating-point color of red, green, blue, and alpha
Definition: Rgba.cs:11

◆ SolidBrush() [3/3]

pluginbase.Helpers.Data.SolidBrush.SolidBrush ( float  r,
float  g,
float  b,
float  a 
)
22  :this(new Rgba(r,g,b,a))
23  {}
Class the represents a floating-point color of red, green, blue, and alpha
Definition: Rgba.cs:11

Member Function Documentation

◆ GetColor()

Rgba pluginbase.Helpers.Data.SolidBrush.GetColor ( float  x,
float  y 
)

Implements pluginbase.Helpers.Data.IBrush.

36  {
37  return _color;
38  }

◆ operator Rgba()

static implicit pluginbase.Helpers.Data.SolidBrush.operator Rgba ( SolidBrush  b)
static
31  {
32  return b._color;
33  }

◆ operator SolidBrush()

static implicit pluginbase.Helpers.Data.SolidBrush.operator SolidBrush ( Rgba  c)
static
26  {
27  return new SolidBrush(c);
28  }
SolidBrush(Rgba c)
Definition: SolidBrush.cs:12

Property Documentation

◆ Default

Rgba pluginbase.Helpers.Data.SolidBrush.Default
get

The documentation for this class was generated from the following file: