mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -119,6 +119,20 @@ namespace ImGui
|
||||
;
|
||||
}
|
||||
|
||||
inline void PushEnabled(bool _enabled)
|
||||
{
|
||||
extern void PushItemFlag(int option, bool enabled);
|
||||
PushItemFlag(1<<2 /*ImGuiItemFlags_Disabled*/, !_enabled);
|
||||
PushStyleVar(ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * (_enabled ? 1.0f : 0.5f) );
|
||||
}
|
||||
|
||||
inline void PopEnabled()
|
||||
{
|
||||
extern void PopItemFlag();
|
||||
PopItemFlag();
|
||||
PopStyleVar();
|
||||
}
|
||||
|
||||
} // namespace ImGui
|
||||
|
||||
#endif // IMGUI_H_HEADER_GUARD
|
||||
|
||||
Reference in New Issue
Block a user