Inkscape
Vector Graphics Editor
|
Utilities to more easily use Gtk::EventController & subclasses like Gesture. More...
Functions | |
bool | has_flag (Gdk::ModifierType const state, Gdk::ModifierType const flags) |
Helper to query if ModifierType state contains one or more of given flag(s). | |
bool | has_flag (GdkModifierType const state, GdkModifierType const flags) |
template<typename Slot > | |
auto | use_state (Slot &&slot) |
template<typename Slot , typename Controller > | |
auto | use_state (Slot &&slot, Controller &controller) |
Utilities to more easily use Gtk::EventController & subclasses like Gesture.
|
inline |
Helper to query if ModifierType state contains one or more of given flag(s).
Definition at line 25 of file controller.h.
Referenced by Inkscape::UI::Widget::ColorWheelBase::_on_motion(), Inkscape::UI::Widget::CanvasGrid::_rulerButtonPress(), get_constrained(), Inkscape::UI::Dialog::ObjectsPanel::on_click(), InkScale::on_click_pressed(), Inkscape::UI::Dialog::ColorItem::on_click_released(), Inkscape::UI::Widget::SpinButton::on_key_pressed(), Inkscape::UI::on_key_pressed(), Inkscape::UI::Widget::GradientWithStops::on_key_pressed(), Inkscape::UI::Widget::ColorPlate::on_motion(), Inkscape::UI::Widget::ColorSlider::on_motion(), Inkscape::UI::Widget::ColorWheelHSL::on_motion(), InkScale::on_motion_motion(), Inkscape::UI::Dialog::ObjectsPanel::on_motion_motion(), Inkscape::UI::Dialog::SwatchesPanel::on_selector_key_pressed(), Inkscape::UI::Dialog::ObjectsPanel::on_tree_key_pressed(), Inkscape::UI::Dialog::AttrDialog::onPopoverKeyPressed(), Inkscape::UI::Dialog::AttrDialog::onTreeViewKeyPressed(), Inkscape::UI::Dialog::AttrDialog::onTreeViewKeyReleased(), Inkscape::UI::Dialog::ObjectsPanel::selectCursorItem(), Inkscape::UI::Dialog::ObjectsPanel::toggleLocked(), and Inkscape::UI::Dialog::ObjectsPanel::toggleVisible().
|
inline |
Definition at line 30 of file controller.h.
auto Inkscape::UI::Controller::use_state | ( | Slot && | slot | ) |
Definition at line 43 of file controller.h.
Referenced by Inkscape::UI::Dialog::LayerPropertiesDialog::_setup_layers_controls(), Inkscape::UI::Toolbar::ToolToolbar::attachHandlers(), Inkscape::UI::Widget::Canvas::Canvas(), Inkscape::UI::Widget::CanvasGrid::CanvasGrid(), Inkscape::UI::Widget::ColorPlate::ColorPlate(), Inkscape::UI::Dialog::ColorItem::common_setup(), Inkscape::UI::Widget::ColorWheelBase::construct(), Inkscape::UI::Dialog::DialogMultipaned::DialogMultipaned(), Inkscape::UI::Dialog::FilterEffectsDialog::FilterModifier::FilterModifier(), InkScale::InkScale(), Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel(), Inkscape::UI::Dialog::FilterEffectsDialog::PrimitiveList::PrimitiveList(), Inkscape::UI::Widget::Rotateable::Rotateable(), Inkscape::UI::Widget::Ruler::Ruler(), Inkscape::UI::Widget::SelectedStyle::SelectedStyle(), and use_state().
auto Inkscape::UI::Controller::use_state | ( | Slot && | slot, |
Controller & | controller | ||
) |
Definition at line 58 of file controller.h.
References use_state().