mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-05-09 18:41:36 +00:00
17 lines
751 B
C++
17 lines
751 B
C++
#ifndef RECOMPUI_ELEMENTS_PRESETS
|
|
#define RECOMPUI_ELEMENTS_PRESETS
|
|
|
|
#include "common.h"
|
|
|
|
namespace recompui {
|
|
Rml::Element *add_button(Rml::ElementDocument *doc, Rml::Element *parent_el, const Rml::String contents = "", ButtonVariant variant = ButtonVariant::Primary, bool isLarge = false);
|
|
Rml::Element *add_icon_button(Rml::ElementDocument *doc, Rml::Element *parent_el, const std::string &svg_src, ButtonVariant variant = ButtonVariant::Tertiary);
|
|
|
|
inline Rml::Element *add_div_with_class(Rml::ElementDocument *doc, Rml::Element *parent_el, const std::string& cls) {
|
|
Rml::Element *el = parent_el->AppendChild(doc->CreateElement("div"));
|
|
el->SetClass(cls, true);
|
|
return el;
|
|
}
|
|
} // namespace recompui
|
|
|
|
#endif
|