MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / LoadClassText

Function LoadClassText

src/Core/Bindings/obe/Graphics/Canvas/Canvas.cpp:187–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 bindRectangle["Type"] = sol::var(obe::Graphics::Canvas::Rectangle::Type);
186 }
187 void LoadClassText(sol::state_view state)
188 {
189 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();
190 sol::usertype<obe::Graphics::Canvas::Text> bindText
191 = CanvasNamespace.new_usertype<obe::Graphics::Canvas::Text>("Text",
192 sol::call_constructor,
193 sol::constructors<obe::Graphics::Canvas::Text(
194 obe::Graphics::Canvas::Canvas&, const std::string&)>(),
195 sol::base_classes,
196 sol::bases<obe::Graphics::Canvas::CanvasPositionable,
197 obe::Graphics::Canvas::CanvasElement,
198 obe::Types::ProtectedIdentifiable, obe::Types::Identifiable>());
199 bindText["draw"] = &obe::Graphics::Canvas::Text::draw;
200 bindText["refresh"] = &obe::Graphics::Canvas::Text::refresh;
201 bindText["text"] = sol::property(&obe::Graphics::Canvas::Text::currentText);
202 bindText["fontPath"] = &obe::Graphics::Canvas::Text::fontPath;
203 bindText["shape"] = &obe::Graphics::Canvas::Text::shape;
204 bindText["h_align"] = &obe::Graphics::Canvas::Text::h_align;
205 bindText["v_align"] = &obe::Graphics::Canvas::Text::v_align;
206 bindText["texts"] = &obe::Graphics::Canvas::Text::texts;
207 bindText["Type"] = sol::var(obe::Graphics::Canvas::Text::Type);
208 }
209 void LoadFunctionCanvasElementTypeToString(sol::state_view state)
210 {
211 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();

Callers

nothing calls this directly

Calls 2

propertyFunction · 0.85
varFunction · 0.85

Tested by

no test coverage detected