xyginext  0.2.0
Second generation of xygine game creation framework
Public Types | Public Member Functions | Public Attributes | List of all members
xy::ui::Style Struct Reference

#include <Gui.hpp>

Public Types

enum  Colour {
  Text = 0, TextDisabled, WindowBg, ChildBg,
  PopupBg, Border, BorderShadow, FrameBg,
  FrameBgHovered, FrameBgActive, TitleBg, TitleBgActive,
  TitleBgCollapsed, MenuBarBg, ScrollbarBg, ScrollbarGrab,
  ScrollbarGrabHovered, ScrollbarGrabActive, CheckMark, SliderGrab,
  SliderGrabActive, Button, ButtonHovered, ButtonActive,
  Header, HeaderHovered, HeaderActive, Separator,
  SeparatorHovered, SeparatorActive, ResizeGrip, ResizeGripHovered,
  ResizeGripActive, PlotLines, PlotLinesHovered, PlotHistogram,
  PlotHistogramHovered, TextSelectedBg, ModalWindowDarkening, DragDropTarget,
  Count
}
 

Public Member Functions

XY_EXPORT_API bool loadFromFile (const std::string &path)
 
XY_EXPORT_API bool saveToFile (const std::string &path)
 

Public Attributes

float Alpha = 1.f
 
sf::Vector2i WindowPadding = {8,8}
 
float WindowRounding = 7.f
 
float WindowBorderSize = 0.f
 
sf::Vector2u WindowMinSize = {32,32}
 
sf::Vector2f WindowTitleAlign = {0.f,0.5f}
 
float ChildRounding = 0.f
 
float ChildBorderSize = 1.f
 
float PopupRounding = 0.f
 
float PopupBorderSize = 1.f
 
sf::Vector2i FramePadding = {4,3}
 
float FrameRounding = 0.f
 
float FrameBorderSize = 1.f
 
sf::Vector2i ItemSpacing = {8,4}
 
sf::Vector2i ItemInnerSpacing = {4,4}
 
sf::Vector2i TouchExtraPadding {0,0}
 
float IndentSpacing = 21.f
 
float ColumnsMinSpacing = 6.f
 
float ScrollbarSize = 16.f
 
float ScrollbarRounding = 9.f
 
float GrabMinSize = 10.f
 
float GrabRounding = 0.f
 
sf::Vector2f ButtonTextAlign = {0.5f,0.5f}
 
sf::Vector2i DisplayWindowPadding = {22,22}
 
sf::Vector2i DisplaySafeAreaPadding = {4,4}
 
bool AntiAliasedLines = true
 
bool AntiAliasedFill = true
 
float CurveTessellationTol = 1.25f
 
std::array< sf::Color, Colour::Count > colours
 

Detailed Description

See also
ImGui::ImGuiStyle