Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
sgui::Panel Struct Reference

store panel posiiton, size and some parameters More...

#include <Panel.h>

Public Member Functions

 Panel ()=default
 Panel (const sf::FloatRect &box, const bool vis=true, const bool header=true)

Public Attributes

bool clipped = true
 is contents clipped ?
bool closable = false
 is it closable ?
bool closed = false
 is it closed ?
bool visible = true
 is it rendered ?
bool hasHeader = true
 has it an header ?
bool hasMenu = false
 has it a menu ?
bool movable = true
 is it movable ?
bool reduced = false
 is it reduced (header only) ?
bool scrollable = true
 is it scrollable ?
bool isScrolled = false
 is it scrolled ?
sf::Vector2f position = {}
 position of the panel
sf::Vector2f size = {}
 size of the panel
std::string title = ""
 title of the panel

Detailed Description

store panel posiiton, size and some parameters

Constructor & Destructor Documentation

◆ Panel() [1/2]

sgui::Panel::Panel ( )
default

◆ Panel() [2/2]

sgui::Panel::Panel ( const sf::FloatRect & box,
const bool vis = true,
const bool header = true )
inline

Member Data Documentation

◆ clipped

bool sgui::Panel::clipped = true

is contents clipped ?

◆ closable

bool sgui::Panel::closable = false

is it closable ?

◆ closed

bool sgui::Panel::closed = false

is it closed ?

◆ hasHeader

bool sgui::Panel::hasHeader = true

has it an header ?

◆ hasMenu

bool sgui::Panel::hasMenu = false

has it a menu ?

◆ isScrolled

bool sgui::Panel::isScrolled = false

is it scrolled ?

◆ movable

bool sgui::Panel::movable = true

is it movable ?

◆ position

sf::Vector2f sgui::Panel::position = {}

position of the panel

◆ reduced

bool sgui::Panel::reduced = false

is it reduced (header only) ?

◆ scrollable

bool sgui::Panel::scrollable = true

is it scrollable ?

◆ size

sf::Vector2f sgui::Panel::size = {}

size of the panel

◆ title

std::string sgui::Panel::title = ""

title of the panel

◆ visible

bool sgui::Panel::visible = true

is it rendered ?


The documentation for this struct was generated from the following file:
  • /github/workspace/src/sgui/Widgets/Panel.h