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 = { 0, 0, 0, 0 } |
| Solid color, or the gradient's start color. | |
| PixelColor | to = { 0, 0, 0, 0 } |
| The gradient's end color (unused when solid). | |
| float | angle = 0.0f |
| Gradient direction in degrees: 0 = left to right, 90 = top to bottom. | |
| bool | gradient = false |
| true for a gradient, false for a solid color. | |
A solid color or a two-color linear gradient.
Definition at line 66 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 475 of file GuiGeometry.cpp.
|
static |
A single flat color.
Definition at line 465 of file GuiGeometry.cpp.
| float GuiFill::angle = 0.0f |
Gradient direction in degrees: 0 = left to right, 90 = top to bottom.
Definition at line 69 of file GuiGeometry.h.
| PixelColor GuiFill::from = { 0, 0, 0, 0 } |
Solid color, or the gradient's start color.
Definition at line 67 of file GuiGeometry.h.
| bool GuiFill::gradient = false |
true for a gradient, false for a solid color.
Definition at line 70 of file GuiGeometry.h.
| PixelColor GuiFill::to = { 0, 0, 0, 0 } |
The gradient's end color (unused when solid).
Definition at line 68 of file GuiGeometry.h.