~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to UnitTests/TestApp/WrapPanel.h

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
        @file
3
 
        @author         Albert Semenov
4
 
        @date           02/2011
5
 
*/
6
 
#ifndef __WRAP_PANEL_H__
7
 
#define __WRAP_PANEL_H__
8
 
 
9
 
#include "MyGUI_Prerequest.h"
10
 
#include "Panel.h"
11
 
 
12
 
namespace MyGUI
13
 
{
14
 
 
15
 
        class WrapPanel :
16
 
                public Panel
17
 
        {
18
 
                MYGUI_RTTI_DERIVED( WrapPanel )
19
 
 
20
 
        public:
21
 
                WrapPanel();
22
 
 
23
 
                Align getContentAlign() const;
24
 
                void setContentAlign(Align _value);
25
 
 
26
 
                const IntSize& getSpacer() const;
27
 
                void setSpacer(const IntSize& _value);
28
 
 
29
 
                bool getContentFloat() const;
30
 
                void setContentFloat(bool _value);
31
 
 
32
 
                Align getSnapFloat() const;
33
 
                void setSnapFloat(Align _value);
34
 
 
35
 
        protected:
36
 
                virtual IntSize overrideMeasure(const IntSize& _sizeAvailable);
37
 
                virtual void overrideArrange();
38
 
 
39
 
        private:
40
 
                void alignChildLine(size_t _startIndex, size_t _stopIndex, const IntCoord& _coordAvailable, int _lineWidth);
41
 
 
42
 
                IntSize simpleMeasure(const IntSize& _sizeAvailable);
43
 
                void simpleArrange();
44
 
 
45
 
                IntSize floatMeasure(const IntSize& _sizeAvailable);
46
 
                void floatArrange();
47
 
 
48
 
        private:
49
 
                Align mContentAlign;
50
 
                Align mSnapFloat;
51
 
                bool mContentFloat;
52
 
                IntSize mSpacer;
53
 
        };
54
 
 
55
 
} // namespace MyGUI
56
 
 
57
 
#endif // __WRAP_PANEL_H__