3#include <alicorn/std/string.forward.hpp>
4#include <Covellite/Gui/IWindow.hpp>
5#include <Covellite/Gui/ILayer.hpp>
46 using DocumentId_t = ::std::string;
47 using ElementId_t = ::std::string;
51 using String_t = ::alicorn::extension::std::String;
52 using Path_t = ::boost::filesystem::path;
56 public ::alicorn::extension::testing::Proxy<Proxy>
59 MOCK_METHOD2(Constructor, Id_t(IWindow_t *, Path_t));
60 MOCK_METHOD3(Constructor, Id_t(IWindow_t *, Path_t, ::std::string));
61 MOCK_METHOD1(Constructor, Id_t(Id_t));
62 MOCK_METHOD1(SetFocus,
void(Id_t));
63 MOCK_METHOD2(SetMeaning,
void(Id_t, String_t));
64 MOCK_METHOD1(GetMeaning, String_t(Id_t));
65 MOCK_METHOD2(SetClassStyle,
void(Id_t, String_t));
66 MOCK_METHOD2(Subscribe,
void(Id_t, Id_t));
67 MOCK_METHOD1(Show,
void(Id_t));
68 MOCK_METHOD1(Hide,
void(Id_t));
69 MOCK_METHOD1(GetId, DocumentId_t(Id_t));
70 MOCK_METHOD2(GetElement, Id_t(Id_t, ElementId_t));
71 MOCK_METHOD1(GetWidth,
int(Id_t));
72 MOCK_METHOD1(GetHeight,
int(Id_t));
73 MOCK_METHOD2(EmployFontSize,
float (Id_t,
float));
78 Layer & operator= (
const Layer &) =
delete;
79 bool operator== (
const Layer & _Value)
const {
return (m_Id == _Value.m_Id); }
87 Proxy::GetInstance()->SetFocus(m_Id);
90 void SetMeaning(
const String_t & _Value)
92 Proxy::GetInstance()->SetMeaning(m_Id, _Value);
95 String_t GetMeaning(
void)
const
97 return Proxy::GetInstance()->GetMeaning(m_Id);
100 void SetClassStyle(
const String_t & _Value)
102 Proxy::GetInstance()->SetClassStyle(m_Id, _Value);
110 Element(Id_t _Id) : m_Id(_Id) {}
116 Proxy::GetInstance()->Show(m_Id);
121 Proxy::GetInstance()->Hide(m_Id);
124 DocumentId_t GetId(
void)
const
126 return Proxy::GetInstance()->GetId(m_Id);
129 Element GetElement(
const ElementId_t & _Id)
const
131 return Proxy::GetInstance()->GetElement(m_Id, _Id);
134 int GetWidth(
void)
const
136 return Proxy::GetInstance()->GetWidth(m_Id);
139 int GetHeight(
void)
const
141 return Proxy::GetInstance()->GetHeight(m_Id);
144 float EmployFontSize(
float _Value)
146 return Proxy::GetInstance()->EmployFontSize(m_Id, _Value);
150 Layer(IWindow_t & _Param1,
const Path_t & _Param2) :
151 m_Id(Proxy::GetInstance()->Constructor(&_Param1, _Param2))
156 Layer(IWindow_t & _Param1,
const Path_t & _Param2, const ::std::string & _Param3) :
157 m_Id(Proxy::GetInstance()->Constructor(&_Param1, _Param2, _Param3))
162 explicit Layer(::mock::Id_t _Param1) :
163 m_Id(Proxy::GetInstance()->Constructor(_Param1))
Класс входит в проект Covellite.Gui Интерфейсный класс слоя (текущего отображаемого экрана).
Definition ILayer.hpp:26
Класс входит в проект Covellite.Gui Интерфесный класс окна, отображающего элементы GUI.
Definition IWindow.hpp:31