Inkscape
Vector Graphics Editor
|
Helpers to connect signals to events that popup a menu in both GTK3 and GTK4. More...
Go to the source code of this file.
Namespaces | |
namespace | Inkscape |
Helper class to stream background task notifications as a series of messages. | |
namespace | Inkscape::UI |
User interface code. | |
Functions | |
static bool | Inkscape::UI::on_key_pressed (unsigned const keyval, unsigned, Gdk::ModifierType state, PopupMenuSlot const &slot) |
static void | Inkscape::UI::on_click_pressed (int n_press, double x, double y, Gtk::GestureClick &click, PopupMenuSlot const &slot) |
void | Inkscape::UI::on_popup_menu (Gtk::Widget &widget, PopupMenuSlot slot) |
Connect slot to a widgetʼs key and button events that traditionally trigger a popup menu, i.e.: | |
static void | Inkscape::UI::popup_at (Gtk::Popover &popover, Gtk::Widget &widget, double const x_offset, double const y_offset, int width, int height) |
void | Inkscape::UI::popup_at (Gtk::Popover &popover, Gtk::Widget &widget, double x_offset=0.0, double y_offset=0.0) |
Replace Gtk::Menu::popup_at_pointer. | |
void | Inkscape::UI::popup_at (Gtk::Popover &popover, Gtk::Widget &widget, std::optional< Geom::Point > const &offset) |
void | Inkscape::UI::popup_at_center (Gtk::Popover &popover, Gtk::Widget &widget) |
As popup_at() but point to center of widget. | |
void | Inkscape::UI::popup_at (Gtk::Popover &popover, Gtk::Widget &widget, Gdk::Rectangle const &rect) |
As popup_at() but point to center of rect rect must be valid within the coords of @widget, & @awidget must be a descendant of @parent. | |
Helpers to connect signals to events that popup a menu in both GTK3 and GTK4.
Plus miscellaneous helpers primarily useful with widgets used as popop menus.
Definition in file popup-menu.cpp.