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
  
   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
   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] m A 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] x A float size to be used as the margin for the left and right sides.   [in] y A 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] left A float size to be used as the margin for the left side.   [in] top A float size to be used as the margin for the top side.   [in] right A float size to be used as the margin for the right side.   [in] bottom A float size to be used as the margin for the bottom side.  
 
 
Member Data Documentation
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: