Inkscape
Vector Graphics Editor
|
A class you can inherit to access GTK4ʼs Widget.css_changed & .focus vfuncs, missing in gtkmm4. More...
#include <widget-vfuncs-class-init.h>
Classes | |
struct | CFuncs |
Holds pointers to C vfunc implementations. More... | |
Protected Member Functions | |
WidgetVfuncsClassInit () | |
~WidgetVfuncsClassInit () override | |
virtual void | css_changed (GtkCssStyleChange *change) |
Called after gtk_widget_css_changed(): when a CSS widget node is validated & style changed. | |
virtual std::optional< bool > | focus (Gtk::DirectionType direction) |
Called before gtk_widget_focus(): return true if moving in direction keeps focus w/in self, false if moving left focus outside widget, or nullopt for no decision & to call base vfunc. | |
Static Private Attributes | |
static CFuncs::CssChanged | _css_changed |
static CFuncs::Focus | _focus |
static constexpr CFuncs | cfuncs |
A class you can inherit to access GTK4ʼs Widget.css_changed & .focus vfuncs, missing in gtkmm4.
Use this if in gtkmm 3, you were connecting to ::style-updated or overriding on_style_updated() – or overriding on_focus() in a way that needs to change the result from that of the base vfunc See https://gitlab.gnome.org/GNOME/gtkmm/-/issues/147 The subclass must also inherit from Gtk::Widget or a subclass thereof.
Definition at line 29 of file widget-vfuncs-class-init.h.
|
protected |
Definition at line 85 of file widget-vfuncs-class-init.cpp.
|
overrideprotected |
Definition at line 94 of file widget-vfuncs-class-init.cpp.
|
inlineprotectedvirtual |
Called after gtk_widget_css_changed(): when a CSS widget node is validated & style changed.
Reimplemented in Inkscape::UI::Widget::Ruler, Inkscape::UI::Widget::GradientWithStops, Inkscape::UI::Widget::ImageProperties, Inkscape::UI::Dialog::FilterEffectsDialog::PrimitiveList, and Inkscape::UI::Widget::MarkerComboBox.
Definition at line 45 of file widget-vfuncs-class-init.h.
|
inlineprotectedvirtual |
Called before gtk_widget_focus(): return true if moving in direction keeps focus w/in self, false if moving left focus outside widget, or nullopt for no decision & to call base vfunc.
Reimplemented in Inkscape::UI::Widget::GradientWithStops, and Inkscape::UI::Widget::ColorWheelHSL.
Definition at line 49 of file widget-vfuncs-class-init.h.
|
staticprivate |
Definition at line 53 of file widget-vfuncs-class-init.h.
|
staticprivate |
Definition at line 54 of file widget-vfuncs-class-init.h.
|
staticconstexprprivate |
Definition at line 56 of file widget-vfuncs-class-init.h.