MCPcopy Create free account
hub / github.com/Fluorohydride/ygopro / CGUIImageButton

Method CGUIImageButton

gframe/CGUIImageButton.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 driver->setTransform(irr::video::ETS_VIEW, oldViewMat);
96}
97CGUIImageButton::CGUIImageButton(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
98 : CGUIButton(environment, parent, id, rectangle) {
99 isDrawImage = true;
100 isFixedSize = false;
101 imageRotation = 0.0f;
102 imageScale = core::vector2df(1.0f, 1.0f);
103 imageSize = core::dimension2di(rectangle.getWidth(), rectangle.getHeight());
104}
105CGUIImageButton* CGUIImageButton::addImageButton(IGUIEnvironment *env, const core::rect<s32>& rectangle, IGUIElement* parent, s32 id) {
106 CGUIImageButton* button = new CGUIImageButton(env, parent ? parent : 0, id, rectangle);
107 button->drop();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected