Simple GUI Library
Sgl::Insets Struct Reference
Collaboration diagram for Sgl::Insets:

Public Member Functions

 Insets (int32_t top, int32_t right, int32_t bottom, int32_t left)
 
 Insets (int32_t topBottom, int32_t rightLeft)
 
 Insets (int32_t inset)
 
Insetsoperator+= (const Insets &second)
 
Insetsoperator-= (const Insets &second)
 

Public Attributes

int32_t top = 0
 
int32_t right = 0
 
int32_t bottom = 0
 
int32_t left = 0
 

Static Public Attributes

static const Insets EMPTY = Insets{0, 0, 0, 0}
 

Detailed Description

Definition at line 15 of file insets.h.

Constructor & Destructor Documentation

◆ Insets() [1/3]

Sgl::Insets::Insets ( int32_t  top,
int32_t  right,
int32_t  bottom,
int32_t  left 
)

Definition at line 15 of file insets.cpp.

◆ Insets() [2/3]

Sgl::Insets::Insets ( int32_t  topBottom,
int32_t  rightLeft 
)

Definition at line 18 of file insets.cpp.

◆ Insets() [3/3]

Sgl::Insets::Insets ( int32_t  inset)

Definition at line 21 of file insets.cpp.

Member Function Documentation

◆ operator+=()

Insets & Sgl::Insets::operator+= ( const Insets second)

Definition at line 24 of file insets.cpp.

◆ operator-=()

Insets & Sgl::Insets::operator-= ( const Insets second)

Definition at line 34 of file insets.cpp.

Member Data Documentation

◆ bottom

int32_t Sgl::Insets::bottom = 0

Definition at line 27 of file insets.h.

◆ EMPTY

const Insets Sgl::Insets::EMPTY = Insets{0, 0, 0, 0}
static

Definition at line 17 of file insets.h.

◆ left

int32_t Sgl::Insets::left = 0

Definition at line 28 of file insets.h.

◆ right

int32_t Sgl::Insets::right = 0

Definition at line 26 of file insets.h.

◆ top

int32_t Sgl::Insets::top = 0

Definition at line 25 of file insets.h.


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