TGUI  v0.6.10
Borders.hpp
1 //
3 // TGUI - Texus's Graphical User Interface
4 // Copyright (C) 2012-2015 Bruno Van de Velde (vdv_b@tgui.eu)
5 //
6 // This software is provided 'as-is', without any express or implied warranty.
7 // In no event will the authors be held liable for any damages arising from the use of this software.
8 //
9 // Permission is granted to anyone to use this software for any purpose,
10 // including commercial applications, and to alter it and redistribute it freely,
11 // subject to the following restrictions:
12 //
13 // 1. The origin of this software must not be misrepresented;
14 // you must not claim that you wrote the original software.
15 // If you use this software in a product, an acknowledgment
16 // in the product documentation would be appreciated but is not required.
17 //
18 // 2. Altered source versions must be plainly marked as such,
19 // and must not be misrepresented as being the original software.
20 //
21 // 3. This notice may not be removed or altered from any source distribution.
22 //
24 
25 
26 #ifndef TGUI_BORDERS_HPP
27 #define TGUI_BORDERS_HPP
28 
30 
31 namespace tgui
32 {
34 
35  class TGUI_API Borders
36  {
37  public:
38 
48  Borders(unsigned int leftBorderWidth = 0,
49  unsigned int topBorderHeight = 0,
50  unsigned int rightBorderWidth = 0,
51  unsigned int bottomBorderHeight = 0) :
52  left (leftBorderWidth),
53  top (topBorderHeight),
54  right (rightBorderWidth),
55  bottom(bottomBorderHeight)
56  {
57  }
58 
60  unsigned int left;
61 
63  unsigned int top;
64 
66  unsigned int right;
67 
69  unsigned int bottom;
70  };
71 
73 }
74 
76 
77 #endif // TGUI_BORDERS_HPP
Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Borders(unsigned int leftBorderWidth=0, unsigned int topBorderHeight=0, unsigned int rightBorderWidth=0, unsigned int bottomBorderHeight=0)
Default constructor.
Definition: Borders.hpp:48
unsigned int left
Width of the left border.
Definition: Borders.hpp:60
unsigned int top
Height of the top border.
Definition: Borders.hpp:63
unsigned int right
Width of the right border.
Definition: Borders.hpp:66
unsigned int bottom
Height of the bottom border.
Definition: Borders.hpp:69
Definition: Borders.hpp:35