Inkscape
Vector Graphics Editor
|
Like Gtk::Stack, but for holding a stack of Inkscape canvases. More...
#include <stack.h>
Public Member Functions | |
Stack () | |
void | add (Gtk::Widget &widget) |
void | remove (Gtk::Widget &widget) |
void | setActive (Gtk::Widget *widget) |
Protected Member Functions | |
void | snapshot_vfunc (Glib::RefPtr< Gtk::Snapshot > const &snapshot) override |
Private Attributes | |
Gtk::Widget * | _active = nullptr |
Like Gtk::Stack, but for holding a stack of Inkscape canvases.
The main difference is that widgets retain their previous allocation on becoming hidden, i.e. their width/height aren't set to zero.
This is needed to suport generating previews for background tabs.
Inkscape::UI::Widget::Stack::Stack | ( | ) |
Definition at line 9 of file stack.cpp.
References Inkscape::UI::containerize().
void Inkscape::UI::Widget::Stack::add | ( | Gtk::Widget & | widget | ) |
Definition at line 16 of file stack.cpp.
Referenced by Inkscape::UI::Widget::CanvasGrid::addTab().
void Inkscape::UI::Widget::Stack::remove | ( | Gtk::Widget & | widget | ) |
Definition at line 22 of file stack.cpp.
References _active.
Referenced by Inkscape::UI::Widget::CanvasGrid::removeTab().
void Inkscape::UI::Widget::Stack::setActive | ( | Gtk::Widget * | widget | ) |
Definition at line 30 of file stack.cpp.
References _active.
Referenced by Inkscape::UI::Widget::CanvasGrid::switchTab().
|
overrideprotected |
|
private |
Definition at line 28 of file stack.h.
Referenced by remove(), setActive(), and snapshot_vfunc().