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
22
using namespace mforms;
26
_popover_impl= &ControlFactory::get_instance()->_popover_impl;
27
_popover_impl->create(this);
30
void Popover::set_content(View* content)
32
_popover_impl->set_content(this, content);
35
void Popover::show(int x, int y, StartPosition position)
37
_popover_impl->show(this, x, y, position);
40
void Popover::set_size(int width, int height)
42
_popover_impl->set_size(this, width, height);
47
_popover_impl->close(this);