2
* Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; version 2 of the
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19
#ifndef _STUB_BUTTON_H_
20
#define _STUB_BUTTON_H_
22
#include "stub_view.h"
27
class ButtonImpl : public ViewImpl
30
ButtonImpl(::mforms::Button *self, bool concrete= false)
35
static void __stdcall callback(::mforms::Button* self)
39
static bool __stdcall create(::mforms::Button *self, ::mforms::ButtonType)
44
static void __stdcall set_text(::mforms::Button *self, const std::string &text)
48
static void __stdcall enable_internal_padding(Button *self, bool enabled)
52
static void __stdcall set_icon(Button *self, const std::string &path)
61
::mforms::ControlFactory *f = ::mforms::ControlFactory::get_instance();
63
f->_button_impl.create= &ButtonImpl::create;
64
f->_button_impl.set_text= &ButtonImpl::set_text;
65
f->_button_impl.set_icon= &ButtonImpl::set_icon;
66
f->_button_impl.enable_internal_padding= &ButtonImpl::enable_internal_padding;