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

Method addImageButton

gframe/CGUIImageButton.cpp:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();
108 return button;
109}
110void CGUIImageButton::draw() {
111 if (!IsVisible)
112 return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected