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

Per-corner radii, in the order top-left, top-right, bottom-right, bottom-left. More...

#include <GuiGeometry.h>

Public Member Functions

 GuiCorners (float r=0)
 Same radius on every corner (0 = square)
 
 GuiCorners (float tl_, float tr_, float br_, float bl_)
 

Public Attributes

float tl
 Top-left radius.
 
float tr
 Top-right radius.
 
float br
 Bottom-right radius.
 
float bl
 Bottom-left radius.
 

Detailed Description

Per-corner radii, in the order top-left, top-right, bottom-right, bottom-left.

A radius larger than half the shorter side is clamped.

Definition at line 40 of file GuiGeometry.h.

Constructor & Destructor Documentation

◆ GuiCorners() [1/2]

GuiCorners::GuiCorners ( float r = 0)
inline

Same radius on every corner (0 = square)

Definition at line 46 of file GuiGeometry.h.

◆ GuiCorners() [2/2]

GuiCorners::GuiCorners ( float tl_,
float tr_,
float br_,
float bl_ )
inline

Definition at line 47 of file GuiGeometry.h.

Member Data Documentation

◆ bl

float GuiCorners::bl

Bottom-left radius.

Definition at line 44 of file GuiGeometry.h.

◆ br

float GuiCorners::br

Bottom-right radius.

Definition at line 43 of file GuiGeometry.h.

◆ tl

float GuiCorners::tl

Top-left radius.

Definition at line 41 of file GuiGeometry.h.

◆ tr

float GuiCorners::tr

Top-right radius.

Definition at line 42 of file GuiGeometry.h.


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