A solid color or a two-color linear gradient. More...
#include <GuiGeometry.h>
Static Public Member Functions | |
| static GuiFill | solid (PixelColor c) |
| A single flat color. | |
| static GuiFill | linear (PixelColor a, PixelColor b, float angleDeg) |
| A linear gradient across the shape's bounding box. | |
Public Attributes | |
| PixelColor | from |
| Solid color, or the gradient's start color. | |
| PixelColor | to |
| The gradient's end color (unused when solid). | |
| float | angle |
| Gradient direction in degrees: 0 = left to right, 90 = top to bottom. | |
| bool | gradient |
| true for a gradient, false for a solid color. | |
A solid color or a two-color linear gradient.
Definition at line 60 of file GuiGeometry.h.
|
static |
A linear gradient across the shape's bounding box.
| a | Start color |
| b | End color |
| angleDeg | 0 = left to right, 90 = top to bottom |
Definition at line 467 of file GuiGeometry.cpp.
|
static |
A single flat color.
Definition at line 457 of file GuiGeometry.cpp.
| float GuiFill::angle |
Gradient direction in degrees: 0 = left to right, 90 = top to bottom.
Definition at line 63 of file GuiGeometry.h.
| PixelColor GuiFill::from |
Solid color, or the gradient's start color.
Definition at line 61 of file GuiGeometry.h.
| bool GuiFill::gradient |
true for a gradient, false for a solid color.
Definition at line 64 of file GuiGeometry.h.
| PixelColor GuiFill::to |
The gradient's end color (unused when solid).
Definition at line 62 of file GuiGeometry.h.