3#include <Foundation/Basics.h>
4#include <Foundation/Math/Color8UNorm.h>
5#include <Foundation/Strings/String.h>
6#include <Foundation/Types/Uuid.h>
10#include <ToolsFoundation/ToolsFoundationDLL.h>
13#if PL_ENABLED(PL_COMPILE_ENGINE_AS_DLL)
14# ifdef BUILDSYSTEM_BUILDING_GUIFOUNDATION_LIB
15# define PL_GUIFOUNDATION_DLL PL_DECL_EXPORT
17# define PL_GUIFOUNDATION_DLL PL_DECL_IMPORT
20# define PL_GUIFOUNDATION_DLL
33 plQtScopedUpdatesDisabled(QWidget* pWidget1, QWidget* pWidget2 =
nullptr, QWidget* pWidget3 =
nullptr, QWidget* pWidget4 =
nullptr,
34 QWidget* pWidget5 =
nullptr, QWidget* pWidget6 =
nullptr);
38 QWidget* m_pWidgets[6];
46 plQtScopedBlockSignals(QObject* pObject1, QObject* pObject2 =
nullptr, QObject* pObject3 =
nullptr, QObject* pObject4 =
nullptr,
47 QObject* pObject5 =
nullptr, QObject* pObject6 =
nullptr);
51 QObject* m_pObjects[6];
56 return QColor(c.r, c.g, c.b, c.a);
64PL_ALWAYS_INLINE
plString qtToPlString(
const QString& sString)
66 QByteArray data = sString.toUtf8();
70PL_ALWAYS_INLINE QString plMakeQString(
plStringView sString)
76void operator>>(QDataStream& inout_stream, T*& rhs)
79 uint len =
sizeof(
void*);
80 inout_stream.readRawData((
char*)&p, len);
86void operator<<(QDataStream& inout_stream, T* rhs)
88 inout_stream.writeRawData((
const char*)&rhs,
sizeof(
void*));
94 plUInt32 uiIndices = 0;
95 inout_stream >> uiIndices;
99 for (
int i = 0; i < uiIndices; ++i)
111 inout_stream << iIndices;
113 for (plUInt32 i = 0; i < iIndices; ++i)
115 inout_stream << rhs[i];
void PushBack(const T &value)
Pushes value at the end of the array.
Definition ArrayBase_inl.h:333
void Clear()
Clears the array.
Definition ArrayBase_inl.h:184
plUInt32 GetCount() const
Returns the number of active elements in the array.
Definition ArrayBase_inl.h:172
A 8bit per channel unsigned normalized (values interpreted as 0-1) color storage format that represen...
Definition Color8UNorm.h:99
void Reserve(plUInt32 uiCapacity)
Expands the array so it can at least store the given capacity.
Definition DynamicArray_inl.h:179
Definition DynamicArray.h:81
Calls blockSignals(true) on all given QObjects, and the reverse in the destructor....
Definition GuiFoundationDLL.h:44
Calls setUpdatesEnabled(false) on all given QObjects, and the reverse in the destructor....
Definition GuiFoundationDLL.h:31
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
plUInt32 GetElementCount() const
Returns the number of bytes from the start position up to its end.
Definition StringView.h:93
const char * GetStartPointer() const
Returns the start of the view range.
Definition StringView.h:102
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11