MyGUI: MyGUI_Types.h Source File

MyGUI 3.4.3

MyGUI_Types.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_TYPES_H_
8#define MYGUI_TYPES_H_
9
10#include "MyGUI_Prerequest.h"
11
12#include <cstdint>
13#include <vector>
14#include <map>
15#include <string>
16
17#include "MyGUI_Align.h"
18#include "MyGUI_TPoint.h"
19#include "MyGUI_TSize.h"
20#include "MyGUI_TRect.h"
21#include "MyGUI_TCoord.h"
22
23namespace MyGUI
24{
25
26 // определяем типы
27 using IntPoint = types::TPoint<int>;
28 using FloatPoint = types::TPoint<float>;
29
30 using IntSize = types::TSize<int>;
31 using FloatSize = types::TSize<float>;
32
33 using IntRect = types::TRect<int>;
34 using FloatRect = types::TRect<float>;
35
36 using IntCoord = types::TCoord<int>;
37 using FloatCoord = types::TCoord<float>;
38 using DoubleCoord = types::TCoord<double>;
39
40 using MapString = std::map<std::string, std::string, std::less<>>;
41 using VectorString = std::vector<std::string>;
42 using PairString = std::pair<std::string, std::string>;
43 using VectorStringPairs = std::vector<PairString>;
44
45 // TODO: remove this types
46 using uint8 = uint8_t;
47 using uint16 = uint16_t;
48 using uint32 = uint32_t;
49
50 using Char = unsigned int;
51
52} // namespace MyGUI
53
54#endif // MYGUI_TYPES_H_
MyGUI_Align.h
MyGUI_Prerequest.h
MyGUI_TCoord.h
MyGUI_TPoint.h
MyGUI_TRect.h
MyGUI_TSize.h
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::uint32
uint32_t uint32
Definition MyGUI_Types.h:48
MyGUI::uint8
uint8_t uint8
Definition MyGUI_Types.h:46
MyGUI::VectorString
std::vector< std::string > VectorString
Definition MyGUI_Types.h:41
MyGUI::IntRect
types::TRect< int > IntRect
Definition MyGUI_Types.h:33
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::FloatCoord
types::TCoord< float > FloatCoord
Definition MyGUI_Types.h:37
MyGUI::PairString
std::pair< std::string, std::string > PairString
Definition MyGUI_Types.h:42
MyGUI::FloatRect
types::TRect< float > FloatRect
Definition MyGUI_Types.h:34
MyGUI::MapString
std::map< std::string, std::string, std::less<> > MapString
Definition MyGUI_Types.h:40
MyGUI::DoubleCoord
types::TCoord< double > DoubleCoord
Definition MyGUI_Types.h:38
MyGUI::VectorStringPairs
std::vector< PairString > VectorStringPairs
Definition MyGUI_Types.h:43
MyGUI::FloatPoint
types::TPoint< float > FloatPoint
Definition MyGUI_Types.h:28
MyGUI::Char
unsigned int Char
Definition MyGUI_Types.h:50
MyGUI::FloatSize
types::TSize< float > FloatSize
Definition MyGUI_Types.h:31
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::uint16
uint16_t uint16
Definition MyGUI_Types.h:47
MyGUI::types::TCoord
Definition MyGUI_TCoord.h:19
MyGUI::types::TPoint
Definition MyGUI_TPoint.h:18
MyGUI::types::TRect
Definition MyGUI_TRect.h:18
MyGUI::types::TSize
Definition MyGUI_TSize.h:18