libgui 3.00
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
GuiFill Struct Reference

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.
 

Detailed Description

A solid color or a two-color linear gradient.

Definition at line 66 of file GuiGeometry.h.

Member Function Documentation

◆ linear()

GuiFill GuiFill::linear ( PixelColor a,
PixelColor b,
float angleDeg )
static

A linear gradient across the shape's bounding box.

Parameters
aStart color
bEnd color
angleDeg0 = left to right, 90 = top to bottom

Definition at line 475 of file GuiGeometry.cpp.

◆ solid()

GuiFill GuiFill::solid ( PixelColor c)
static

A single flat color.

Definition at line 465 of file GuiGeometry.cpp.

Member Data Documentation

◆ angle

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.

◆ from

PixelColor GuiFill::from = { 0, 0, 0, 0 }

Solid color, or the gradient's start color.

Definition at line 67 of file GuiGeometry.h.

◆ gradient

bool GuiFill::gradient = false

true for a gradient, false for a solid color.

Definition at line 70 of file GuiGeometry.h.

◆ to

PixelColor GuiFill::to = { 0, 0, 0, 0 }

The gradient's end color (unused when solid).

Definition at line 68 of file GuiGeometry.h.


The documentation for this struct was generated from the following files: