FlatUI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Enumerations Groups Pages
flatui::Margin Struct Reference

Specifies the margins for a group, in units of virtual resolution. More...

#include <flatui.h>

Detailed Description

Specifies the margins for a group, in units of virtual resolution.

Public Member Functions

 Margin (float m)
 Create a Margin with all four sides of equal size. More...
 
 Margin (float x, float y)
 Create a Margin with the left and right sizes of x, and top and bottom sizes of y. More...
 
 Margin (float left, float top, float right, float bottom)
 Creates a margin specifying all four sides individually. More...
 

Public Attributes

mathfu::vec4_packed borders
 A vector of four floats containing the values for the four sides of the margin. More...
 

Constructor & Destructor Documentation

flatui::Margin::Margin ( float  m)
inline

Create a Margin with all four sides of equal size.

Parameters
[in]mA float size to be used as the margin on all sides.
flatui::Margin::Margin ( float  x,
float  y 
)
inline

Create a Margin with the left and right sizes of x, and top and bottom sizes of y.

Parameters
[in]xA float size to be used as the margin for the left and right sides.
[in]yA float size to be used as the margin for the right and left sides.
flatui::Margin::Margin ( float  left,
float  top,
float  right,
float  bottom 
)
inline

Creates a margin specifying all four sides individually.

Parameters
[in]leftA float size to be used as the margin for the left side.
[in]topA float size to be used as the margin for the top side.
[in]rightA float size to be used as the margin for the right side.
[in]bottomA float size to be used as the margin for the bottom side.

Member Data Documentation

flatui::Margin::borders

A vector of four floats containing the values for the four sides of the margin.

The internal layout of the margin is: left, top, right, bottom.


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