Inkscape
Vector Graphics Editor
|
Holds a single child widget while allowing a single popover to be displayed over it. More...
#include <popover-bin.h>
Public Member Functions | |
PopoverBin () | |
void | setChild (Gtk::Widget *child) |
void | setPopover (Gtk::Popover *popover) |
Private Member Functions | |
void | _replace (Gtk::Widget *&holder, Gtk::Widget *widget) |
Private Attributes | |
Gtk::Widget * | _child = nullptr |
Gtk::Widget * | _popover = nullptr |
Holds a single child widget while allowing a single popover to be displayed over it.
Setting another popover displaces (unparents) the old one. If it is managed, this typically also causes it to be deleted.
Thus, a useful pattern to deal with popovers that are constructed on-the-fly is to create it using Gtk::make_managed(), then attach it using setPopover().
Definition at line 18 of file popover-bin.h.
Inkscape::UI::Widget::PopoverBin::PopoverBin | ( | ) |
Definition at line 9 of file popover-bin.cpp.
References Inkscape::UI::containerize().
|
private |
Definition at line 16 of file popover-bin.cpp.
Referenced by setChild(), and setPopover().
|
inline |
Definition at line 23 of file popover-bin.h.
References _child, _replace(), and child.
Referenced by Inkscape::UI::Widget::CanvasGrid::CanvasGrid(), Inkscape::UI::Dialog::DocumentProperties::DocumentProperties(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Widget::SelectedStyle::SelectedStyle(), and Inkscape::UI::Toolbar::ToolToolbar::ToolToolbar().
|
inline |
Definition at line 24 of file popover-bin.h.
References _popover, and _replace().
Referenced by Inkscape::UI::Dialog::ObjectsPanel::blendModePopup(), Inkscape::UI::Dialog::ObjectsPanel::colorTagPopup(), Inkscape::UI::Dialog::do_remove_popup_menu(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), Inkscape::UI::Widget::SelectedStyle::on_fill_click(), Inkscape::UI::Widget::SelectedStyle::on_opacity_popup(), Inkscape::UI::Widget::SelectedStyle::on_stroke_click(), Inkscape::UI::Widget::SelectedStyle::on_sw_click(), Inkscape::UI::Widget::CanvasGrid::setPopover(), and Inkscape::UI::Toolbar::ToolToolbar::ToolToolbar().
|
private |
Definition at line 29 of file popover-bin.h.
Referenced by setChild().
|
private |
Definition at line 30 of file popover-bin.h.
Referenced by setPopover().