#include <Window.h>
◆ Window() [1/2]
6 : Fl_Window{
int(_width),
int(_height), title.c_str()},
10}
pix_amount height
Definition Window.h:56
pix_amount width
Definition Window.h:55
virtual void init()
Definition Window.cpp:21
W & reference_to(void *ptr_wid)
Definition Widgets.h:16
◆ Window() [2/2]
14 : Fl_Window{
int(top_left_corner.x),
int(top_left_corner.y),
int(_width),
15 int(_height), title.c_str()},
19}
◆ ~Window()
virtual Graph_lib::Window::~Window |
( |
| ) |
|
|
virtualdefault |
◆ attach() [1/2]
void Graph_lib::Window::attach |
( |
Shape & | shape | ) |
|
41{
shapes.push_back(&shape); }
std::vector< Shape * > shapes
Definition Window.h:54
◆ attach() [2/2]
31 {
32 Fl_Group::begin();
33
34 widget.attach(*this);
35 Fl_Group::end();
36
37}
◆ detach() [1/2]
void Graph_lib::Window::detach |
( |
Shape & | shape | ) |
|
Удаляет фигуру из соотв. списка
43 {
44
45 for (
unsigned int i =
shapes.size(); 0 <
i; --
i)
47}
◆ detach() [2/2]
Отвязывает виджет от окна, деактивируя коллбэки
◆ draw()
void Graph_lib::Window::draw |
( |
| ) |
|
|
protected |
26 {
27 Fl_Window::draw();
29}
void draw()
Definition Window.cpp:26
◆ h()
◆ init()
void Graph_lib::Window::init |
( |
| ) |
|
|
privatevirtual |
Reimplemented in Graphix_window.
21 {
22 Fl_Group::resizable(this);
23 Fl_Window::show();
24}
◆ put_on_top() [1/2]
void Graph_lib::Window::put_on_top |
( |
Shape & | shape | ) |
|
49 {
52}
void attach(Shape &)
Definition Window.cpp:41
void detach(Shape &)
Удаляет фигуру из соотв. списка
Definition Window.cpp:43
◆ put_on_top() [2/2]
void Graph_lib::Window::put_on_top |
( |
Widget & | widget | ) |
|
◆ resize()
30 {
33 size(_width, _height);
34 }
◆ set_label()
void Graph_lib::Window::set_label |
( |
const std::string & | s | ) |
|
|
inline |
◆ w()
◆ height
◆ shapes
std::vector<Shape*> Graph_lib::Window::shapes |
|
private |
◆ width
The documentation for this class was generated from the following files: