MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ClickButton

Method ClickButton

Source/ClickButton.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include "PatchCableSource.h"
33
34ClickButton::ClickButton(IButtonListener* owner, const char* label, int x, int y, ButtonDisplayStyle displayStyle /*= ButtonDisplayStyle::kText*/)
35: mOwner(owner)
36, mDisplayStyle(displayStyle)
37{
38 assert(owner);
39 SetLabel(label);
40 SetPosition(x, y);
41 (dynamic_cast<IDrawableModule*>(owner))->AddUIControl(this);
42 SetParent(dynamic_cast<IClickable*>(owner));
43 SetShouldSaveState(false);
44}
45
46ClickButton::ClickButton(IButtonListener* owner, const char* label, IUIControl* anchor, AnchorDirection anchorDirection, ButtonDisplayStyle displayStyle /*= ButtonDisplayStyle::kText*/)
47: ClickButton(owner, label, -1, -1, displayStyle)

Callers

nothing calls this directly

Calls 1

AddUIControlMethod · 0.80

Tested by

no test coverage detected