Covellite++
Version: 2.3.2 Revision: 2584 Platform: x64 Build: 19:03 05.09.2026
Кроссплатформенный фреймворк для разработки приложений на С++
Toggle main menu visibility
Загрузка...
Поиск...
Не найдено
External.hpp
См. документацию.
1
2
#pragma once
3
18
19
#ifdef COVELLITE_GUI_RMLUI
20
21
#ifndef __USING_GTEST
22
23
#include <RmlUi/RmlUi.hpp>
24
namespace
CovelliteGui = ::Rml;
25
26
#else
// __USING_GTEST
27
28
// 01 Январь 2025 17:58 (unicornum.verum@gmail.com)
29
TODO(
"Заменить ссылку, когда в Alicorn SDK попадет исправленый файл RmlUi.mock.hpp"
);
30
//#include <RmlUi\RmlUi.mock.hpp>
31
#include <Externals\Alicorn\Externals\include\rmlui\RmlUi.mock.hpp>
32
33
namespace
CovelliteGui = ::mock::Rml;
34
35
namespace
mock
36
{
37
38
namespace
CovelliteGui = ::CovelliteGui;
39
40
namespace
Rml
41
{
42
43
using
EventListener_tested = EventListener;
44
45
}
// namespace Rml
46
47
}
// namespace mock
48
49
#endif
// __USING_GTEST
50
51
namespace
covellite
52
{
53
54
namespace
gui
55
{
56
57
using
CovelliteGuiTime_t = double;
58
using
CovelliteGuiUnicode_t = CovelliteGui::Character;
59
60
inline ::std::string CovelliteGuiStringToUtf8(
61
const
CovelliteGui::String & _String)
62
{
63
return
_String;
64
}
65
66
inline
void
CovelliteGuiRemove(CovelliteGui::ElementDocument * _pDocument)
67
{
68
_pDocument->Close();
69
}
70
71
inline
void
CovelliteGuiRemove(CovelliteGui::Context * _pContext)
72
{
73
CovelliteGui::RemoveContext(_pContext->GetName());
74
}
75
76
inline
void
CovelliteGuiLoadFontFace(const ::std::string & _Path)
77
{
78
CovelliteGui::LoadFontFace(_Path.c_str());
79
}
80
81
inline
void
CovelliteGuiLoadFontFace(const ::std::vector<uint8_t> & _Data)
82
{
83
CovelliteGui::LoadFontFace(_Data.data(),
static_cast<
int
>
(_Data.size()),
84
""
, CovelliteGui::Style::FontStyle::Normal,
85
CovelliteGui::Style::FontWeight::Normal);
86
}
87
88
inline
void
CovelliteGuiSetProgressBarValue(
89
CovelliteGui::Element * _pProgressBar,
90
const
float
_Value)
91
{
92
auto
& Control =
93
dynamic_cast<
CovelliteGui::ElementProgress &
>
(*_pProgressBar);
94
95
Control.SetValue(_Value);
96
}
97
98
}
// namespace gui
99
100
}
// namespace covellite
101
102
#else
// COVELLITE_GUI_*
103
104
namespace
CovelliteGui
105
{
106
107
template
<
typename
>
class
Vector2;
108
using
Vector2i = Vector2<int>;
109
class
ElementDocument;
110
class
Element;
111
class
Context;
112
113
}
// namespace CovelliteGui
114
115
#endif
// COVELLITE_GUI_*
Solution
Solution
Covellite.Gui
Covellite.Gui
External.hpp
Документация по Covellite++. Последние изменения:
. Создано системой
1.18.0