libgui 2.01
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
 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.
 

Detailed Description

A solid color or a two-color linear gradient.

Definition at line 60 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 467 of file GuiGeometry.cpp.

◆ solid()

GuiFill GuiFill::solid ( PixelColor c)
static

A single flat color.

Definition at line 457 of file GuiGeometry.cpp.

Member Data Documentation

◆ angle

float GuiFill::angle

Gradient direction in degrees: 0 = left to right, 90 = top to bottom.

Definition at line 63 of file GuiGeometry.h.

◆ from

PixelColor GuiFill::from

Solid color, or the gradient's start color.

Definition at line 61 of file GuiGeometry.h.

◆ gradient

bool GuiFill::gradient

true for a gradient, false for a solid color.

Definition at line 64 of file GuiGeometry.h.

◆ to

PixelColor GuiFill::to

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

Definition at line 62 of file GuiGeometry.h.


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