| 32 | #include "PatchCableSource.h" |
| 33 | |
| 34 | ClickButton::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 | |
| 46 | ClickButton::ClickButton(IButtonListener* owner, const char* label, IUIControl* anchor, AnchorDirection anchorDirection, ButtonDisplayStyle displayStyle /*= ButtonDisplayStyle::kText*/) |
| 47 | : ClickButton(owner, label, -1, -1, displayStyle) |
nothing calls this directly
no test coverage detected