DIWNE::DGui
Classes
Name | |
---|---|
struct | DIWNE::DGui::RectData <br>Helper data structure for BeginRect()/EndRect(). |
Functions
Name | |
---|---|
void | AlignTextToPadding(ImVec2 padding)<br>Variant of ImGui::AlignTextToFramePadding for custom frame padding. |
void | BeginGroup() |
RectData | BeginRect()<br>Begin measurement of an ImGui item rect. |
void | BeginVerticalAlign(float yOffset)<br>Dummy that begins at the max cursor position. |
void | DummyMax(const ImVec2 & size)<br>Dummy that begins at the max cursor position. Expands current content by the size and starts a new line. |
void | DummyMaxSameLine(const ImVec2 & size)<br>Dummy that begins at the max cursor position. Expands current content by the size and continues the line. |
void | DummyXY(const ImVec2 & size)<br>Dummy that effectively moves the cursor by exactly the passed size in the X and Y direction. |
void | DummyXYSameLine(const ImVec2 & size) |
ImRect | EndRect(RectData & data)<br>End measurement of a previous BeginRect() call. Finalized the passed rect data. |
void | EndVerticalAlign(float yOffset =0.0f) |
float | GetFrameHeight(ImVec2 padding)<br>Variant of ImGui::GetFrameHeight() for custom frame padding. |
bool | InvisibleButton(const std::string & id, const ImVec2 & size, bool disabled, bool & hovered, bool & active)<br>Invisible button that can optionally be disabled to allow drag operations with no active id. |
bool | InvisibleButton(const std::string id, const ImVec2 & size, bool disabled)<br>Invisible button that can optionally be disabled to allow drag operations with no active id. |
void | LimitLine(float newMaxX)<br>Limits the width of an ImGui line to not exceed a particular X coordinate. |
void | NewLine(float vSpacingFactor =0.f)<br>Ensures a new ImGui line and moves the cursor so that no vertical item spacing is applied, or just a fraction of it. |
void | SameLineDummy(const ImVec2 & size) |
void | Tooltip(const char * header, const char * description, const ImColor & color, float wrapWidth =35.0f) |
ImVec2 | truncScreenCursorPos() |
Functions Documentation
function AlignTextToPadding
inline void AlignTextToPadding(
ImVec2 padding
)
inline void AlignTextToPadding(
ImVec2 padding
)
Variant of ImGui::AlignTextToFramePadding for custom frame padding.
function BeginGroup
inline void BeginGroup()
inline void BeginGroup()
function BeginRect
inline RectData BeginRect()
inline RectData BeginRect()
Begin measurement of an ImGui item rect.
Much like BeginGroup(), but just the item rect size measuring part. Returns temporary RectData that need to be passed to the corresponding EndRect() call. Explicit passing of data is necessary as we don't have a global stack for it like Dear ImGui does.
function BeginVerticalAlign
inline void BeginVerticalAlign(
float yOffset
)
inline void BeginVerticalAlign(
float yOffset
)
Dummy that begins at the max cursor position.
Expands current content by the size and starts a new line with no vertical spacing, can be used to add trailing padding.
function DummyMax
inline void DummyMax(
const ImVec2 & size
)
inline void DummyMax(
const ImVec2 & size
)
Dummy that begins at the max cursor position. Expands current content by the size and starts a new line.
function DummyMaxSameLine
inline void DummyMaxSameLine(
const ImVec2 & size
)
inline void DummyMaxSameLine(
const ImVec2 & size
)
Dummy that begins at the max cursor position. Expands current content by the size and continues the line.
function DummyXY
inline void DummyXY(
const ImVec2 & size
)
inline void DummyXY(
const ImVec2 & size
)
Dummy that effectively moves the cursor by exactly the passed size in the X and Y direction.
function DummyXYSameLine
inline void DummyXYSameLine(
const ImVec2 & size
)
inline void DummyXYSameLine(
const ImVec2 & size
)
function EndRect
inline ImRect EndRect(
RectData & data
)
inline ImRect EndRect(
RectData & data
)
End measurement of a previous BeginRect() call. Finalized the passed rect data.
function EndVerticalAlign
inline void EndVerticalAlign(
float yOffset =0.0f
)
inline void EndVerticalAlign(
float yOffset =0.0f
)
function GetFrameHeight
inline float GetFrameHeight(
ImVec2 padding
)
inline float GetFrameHeight(
ImVec2 padding
)
Variant of ImGui::GetFrameHeight() for custom frame padding.
function InvisibleButton
inline bool InvisibleButton(
const std::string & id,
const ImVec2 & size,
bool disabled,
bool & hovered,
bool & active
)
inline bool InvisibleButton(
const std::string & id,
const ImVec2 & size,
bool disabled,
bool & hovered,
bool & active
)
Invisible button that can optionally be disabled to allow drag operations with no active id.
function InvisibleButton
inline bool InvisibleButton(
const std::string id,
const ImVec2 & size,
bool disabled
)
inline bool InvisibleButton(
const std::string id,
const ImVec2 & size,
bool disabled
)
Invisible button that can optionally be disabled to allow drag operations with no active id.
function LimitLine
inline void LimitLine(
float newMaxX
)
inline void LimitLine(
float newMaxX
)
Limits the width of an ImGui line to not exceed a particular X coordinate.
function NewLine
inline void NewLine(
float vSpacingFactor =0.f
)
inline void NewLine(
float vSpacingFactor =0.f
)
Ensures a new ImGui line and moves the cursor so that no vertical item spacing is applied, or just a fraction of it.
Parameters:
- vSpacingFactor The factor of spacing applied, 0 by default (no spacing).
function SameLineDummy
inline void SameLineDummy(
const ImVec2 & size
)
inline void SameLineDummy(
const ImVec2 & size
)
function Tooltip
inline void Tooltip(
const char * header,
const char * description,
const ImColor & color,
float wrapWidth =35.0f
)
inline void Tooltip(
const char * header,
const char * description,
const ImColor & color,
float wrapWidth =35.0f
)
function truncScreenCursorPos
inline ImVec2 truncScreenCursorPos()
inline ImVec2 truncScreenCursorPos()
Updated on 2025-05-31 at 12:55:31 +0000