2
* Copyright (c) 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_SPLITTER_H_
20
#define _STUB_SPLITTER_H_
22
#include "stub_view.h"
27
class SplitterImpl : public ViewImpl
30
SplitterImpl(::mforms::Splitter *self, bool horiz)
35
static bool __stdcall create(::mforms::Splitter *self, bool horiz)
40
static void __stdcall add(Splitter *self, View *child, int minwidth)
44
static void __stdcall remove(Splitter *self, View *child)
48
static void __stdcall set_position(Splitter *self, int pos)
52
static int __stdcall get_position(Splitter *self)
57
static void __stdcall set_expanded(Splitter *self, bool first, bool expand)
65
::mforms::ControlFactory *f = ::mforms::ControlFactory::get_instance();
67
f->_splitter_impl.create= &SplitterImpl::create;
68
f->_splitter_impl.add= &SplitterImpl::add;
69
f->_splitter_impl.remove= &SplitterImpl::remove;
70
f->_splitter_impl.set_position= &SplitterImpl::set_position;
71
f->_splitter_impl.get_position= &SplitterImpl::get_position;
72
f->_splitter_impl.set_expanded= &SplitterImpl::set_expanded;
75
virtual ~SplitterImpl()
84
#endif /* _STUB_SPLITTER_H_ */