Symphony Of Empires
UI::Border Class Reference

Border class that defines the texture and size of borders of the widgets. More...

#include <widget.hpp>

Public Member Functions

 Border ()=default
 
 Border (std::shared_ptr< Eng3D::Texture > _texture, glm::ivec2 _size, glm::ivec2 _texture_size, glm::ivec2 _offset=glm::ivec2(0))
 

Public Attributes

std::shared_ptr< Eng3D::Texturetexture = nullptr
 
glm::ivec2 size
 
glm::ivec2 texture_size
 
glm::ivec2 offset = glm::ivec2(0, 0)
 

Detailed Description

Border class that defines the texture and size of borders of the widgets.

Definition at line 153 of file widget.hpp.

Constructor & Destructor Documentation

◆ Border() [1/2]

UI::Border::Border ( )
default

◆ Border() [2/2]

UI::Border::Border ( std::shared_ptr< Eng3D::Texture _texture,
glm::ivec2  _size,
glm::ivec2  _texture_size,
glm::ivec2  _offset = glm::ivec2(0) 
)
inline

Definition at line 161 of file widget.hpp.

Member Data Documentation

◆ offset

glm::ivec2 UI::Border::offset = glm::ivec2(0, 0)

Definition at line 158 of file widget.hpp.

◆ size

glm::ivec2 UI::Border::size

Definition at line 156 of file widget.hpp.

◆ texture

std::shared_ptr<Eng3D::Texture> UI::Border::texture = nullptr

Definition at line 155 of file widget.hpp.

◆ texture_size

glm::ivec2 UI::Border::texture_size

Definition at line 157 of file widget.hpp.


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