26#ifndef TGUI_BORDERS_HPP
27#define TGUI_BORDERS_HPP
29#include <TGUI/Config.hpp>
62 Borders(
float leftBorderWidth,
float topBorderHeight,
float rightBorderWidth,
float bottomBorderHeight) :
63 left (leftBorderWidth),
64 top (topBorderHeight),
65 right (rightBorderWidth),
66 bottom(bottomBorderHeight)
97 return (left == borders.
left) && (top == borders.
top) && (right == borders.
right) && (bottom == borders.
bottom);
111 return !(*
this == borders);
164 void setBorders(
float leftBorder,
float topBorder,
float rightBorder,
float bottomBorder)
166 setBorders({leftBorder, topBorder, rightBorder, bottomBorder});
179 setBorders({width, height});
238 void setPadding(
float leftPadding,
float topPadding,
float rightPadding,
float bottomPadding)
240 setPadding({leftPadding, topPadding, rightPadding, bottomPadding});
253 setPadding({width, height});
Definition: Borders.hpp:38
float bottom
Height of the bottom border.
Definition: Borders.hpp:127
float left
Width of the left border.
Definition: Borders.hpp:118
Borders(float leftBorderWidth, float topBorderHeight, float rightBorderWidth, float bottomBorderHeight)
Constructor that initializes the borders.
Definition: Borders.hpp:62
float top
Height of the top border.
Definition: Borders.hpp:121
Borders(float size=0)
Default constructor.
Definition: Borders.hpp:44
Borders(float width, float height)
Constructor that initializes the borders.
Definition: Borders.hpp:78
bool operator==(const Borders &borders) const
Compare two borders.
Definition: Borders.hpp:95
float right
Width of the right border.
Definition: Borders.hpp:124
bool operator!=(const Borders &borders) const
Compare two borders.
Definition: Borders.hpp:109
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34