Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
654 B · 34 lines
C++
at master
1234567891011121314151617181920212223242526272829303132333435#include "StyleBuilder.h"
StyleBuilder::StyleBuilder(){}
StyleBuilder& StyleBuilder::AddStyle(ImGuiStyleVar style, float value){ stylesFloat[style] = value; return *this;}
StyleBuilder& StyleBuilder::AddStyle(ImGuiStyleVar style, const ImVec2& value){ stylesVec2[style] = value; return *this;}
StyleBuilder& StyleBuilder::AddStyle(ImGuiStyleVar style, ImGuiDir value){ stylesDir[style] = value; return *this;}
StyleBuilder& StyleBuilder::AddColor(ImGuiCol color, const ImVec4& value){ colors[color] = value; return *this;}
Style StyleBuilder::Build(){ return Style(stylesFloat, stylesVec2, colors);}