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

Function LoadClassRectangle

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

Source from the content-addressed store, hash-verified

168 bindPolygon["Type"] = sol::var(obe::Graphics::Canvas::Polygon::Type);
169 }
170 void LoadClassRectangle(sol::state_view state)
171 {
172 sol::table CanvasNamespace = state["obe"]["Graphics"]["Canvas"].get<sol::table>();
173 sol::usertype<obe::Graphics::Canvas::Rectangle> bindRectangle
174 = CanvasNamespace.new_usertype<obe::Graphics::Canvas::Rectangle>("Rectangle",
175 sol::call_constructor,
176 sol::constructors<obe::Graphics::Canvas::Rectangle(
177 obe::Graphics::Canvas::Canvas&, const std::string&)>(),
178 sol::base_classes,
179 sol::bases<obe::Graphics::Canvas::CanvasPositionable,
180 obe::Graphics::Canvas::CanvasElement,
181 obe::Types::ProtectedIdentifiable, obe::Types::Identifiable>());
182 bindRectangle["draw"] = &obe::Graphics::Canvas::Rectangle::draw;
183 bindRectangle["shape"] = &obe::Graphics::Canvas::Rectangle::shape;
184 bindRectangle["size"] = &obe::Graphics::Canvas::Rectangle::size;
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>();

Callers

nothing calls this directly

Calls 1

varFunction · 0.85

Tested by

no test coverage detected