feat: add LabelButton API
This commit is contained in:
parent
c8e8cb86ce
commit
70e17b5f8f
8 changed files with 126 additions and 5 deletions
|
@ -19,6 +19,10 @@ Button::Button(views::Button* button) : View(button) {
|
|||
|
||||
Button::~Button() {}
|
||||
|
||||
void Button::ButtonPressed(views::Button* sender, const ui::Event& event) {
|
||||
Emit("click");
|
||||
}
|
||||
|
||||
// static
|
||||
mate::WrappableBase* Button::New(mate::Arguments* args) {
|
||||
args->ThrowError("Button can not be created directly");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue