| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include "imguiWrappedHeader.h"
- #include "StyleWrapper.h"
- #include "WrapperConverter.h"
- void iggStyleGetItemSpacing(IggGuiStyle handle, IggVec2 *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- exportValue(*value, style->ItemSpacing);
- }
- void iggStyleGetItemInnerSpacing(IggGuiStyle handle, IggVec2 *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- exportValue(*value, style->ItemInnerSpacing);
- }
- void iggStyleGetWindowPadding(IggGuiStyle handle, IggVec2 *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- exportValue(*value, style->WindowPadding);
- }
- void iggStyleGetFramePadding(IggGuiStyle handle, IggVec2 *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- exportValue(*value, style->FramePadding);
- }
- void iggStyleSetColor(IggGuiStyle handle, int colorID, IggVec4 const *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- if ((colorID >= 0) && (colorID < ImGuiCol_COUNT))
- {
- importValue(style->Colors[colorID], *value);
- }
- }
- void iggStyleGetColor(IggGuiStyle handle, int index, IggVec4 *value)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle*>(handle);
- if ((index >= 0) && (index < ImGuiCol_COUNT))
- {
- exportValue(*value, style->Colors[index]);
- }
- }
- void iggStyleScaleAllSizes(IggGuiStyle handle, float scale)
- {
- ImGuiStyle *style = reinterpret_cast<ImGuiStyle *>(handle);
- style->ScaleAllSizes(scale);
- }
|