Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::ImageToggler Class Reference

#include <imagetoggler.h>

Inheritance diagram for Inkscape::UI::Widget::ImageToggler:

Public Member Functions

 ImageToggler (char const *on, char const *off)
 
sigc::signal< void(const Glib::ustring &)> signal_toggled ()
 
Glib::PropertyProxy< bool > property_active ()
 
Glib::PropertyProxy< bool > property_activatable ()
 
Glib::PropertyProxy< bool > property_gossamer ()
 
Glib::PropertyProxy< std::string > property_active_icon ()
 
void set_force_visible (bool force_visible)
 Sets whether to force visible icons in ALL cells of the column, EVEN IF their activatable & property_active() properties are false.
 

Private Member Functions

void set_icon_name ()
 
void snapshot_vfunc (Glib::RefPtr< Gtk::Snapshot > const &snapshot, Gtk::Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, Gtk::CellRendererState flags) override
 
bool activate_vfunc (Glib::RefPtr< Gdk::Event const > const &event, Gtk::Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, Gtk::CellRendererState flags) override
 

Private Attributes

Glib::ustring _pixOnName
 
Glib::ustring _pixOffName
 
bool _force_visible = false
 
Glib::Property< bool > _property_active
 
Glib::Property< bool > _property_activatable
 
Glib::Property< bool > _property_gossamer
 
Glib::Property< std::string > _property_active_icon
 
sigc::signal< void(const Glib::ustring &)> _signal_toggled
 

Detailed Description

Definition at line 23 of file imagetoggler.h.

Constructor & Destructor Documentation

◆ ImageToggler()

Inkscape::UI::Widget::ImageToggler::ImageToggler ( char const *  on,
char const *  off 
)

Member Function Documentation

◆ activate_vfunc()

bool Inkscape::UI::Widget::ImageToggler::activate_vfunc ( Glib::RefPtr< Gdk::Event const > const &  event,
Gtk::Widget &  widget,
const Glib::ustring &  path,
const Gdk::Rectangle &  background_area,
const Gdk::Rectangle &  cell_area,
Gtk::CellRendererState  flags 
)
overrideprivate

Definition at line 86 of file imagetoggler.cpp.

References _signal_toggled.

◆ property_activatable()

Glib::PropertyProxy< bool > Inkscape::UI::Widget::ImageToggler::property_activatable ( )
inline

Definition at line 30 of file imagetoggler.h.

References _property_activatable.

Referenced by Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel().

◆ property_active()

Glib::PropertyProxy< bool > Inkscape::UI::Widget::ImageToggler::property_active ( )
inline

Definition at line 29 of file imagetoggler.h.

References _property_active.

Referenced by ImageToggler(), and Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel().

◆ property_active_icon()

Glib::PropertyProxy< std::string > Inkscape::UI::Widget::ImageToggler::property_active_icon ( )
inline

◆ property_gossamer()

Glib::PropertyProxy< bool > Inkscape::UI::Widget::ImageToggler::property_gossamer ( )
inline

Definition at line 31 of file imagetoggler.h.

References _property_gossamer.

◆ set_force_visible()

void Inkscape::UI::Widget::ImageToggler::set_force_visible ( bool  force_visible)

Sets whether to force visible icons in ALL cells of the column, EVEN IF their activatable & property_active() properties are false.

The ObjectsPanel uses this to show all blend icons.

Definition at line 38 of file imagetoggler.cpp.

References _force_visible.

Referenced by Inkscape::UI::Dialog::ObjectsPanel::blendModePopup(), and Inkscape::UI::Dialog::ObjectsPanel::ObjectsPanel().

◆ set_icon_name()

void Inkscape::UI::Widget::ImageToggler::set_icon_name ( )
private

Definition at line 43 of file imagetoggler.cpp.

References _pixOffName, _pixOnName, _property_active, and _property_active_icon.

Referenced by ImageToggler().

◆ signal_toggled()

sigc::signal< void(const Glib::ustring &)> Inkscape::UI::Widget::ImageToggler::signal_toggled ( )
inline

Definition at line 27 of file imagetoggler.h.

References _signal_toggled.

◆ snapshot_vfunc()

void Inkscape::UI::Widget::ImageToggler::snapshot_vfunc ( Glib::RefPtr< Gtk::Snapshot > const &  snapshot,
Gtk::Widget &  widget,
const Gdk::Rectangle &  background_area,
const Gdk::Rectangle &  cell_area,
Gtk::CellRendererState  flags 
)
overrideprivate

Member Data Documentation

◆ _force_visible

bool Inkscape::UI::Widget::ImageToggler::_force_visible = false
private

Definition at line 55 of file imagetoggler.h.

Referenced by set_force_visible(), and snapshot_vfunc().

◆ _pixOffName

Glib::ustring Inkscape::UI::Widget::ImageToggler::_pixOffName
private

Definition at line 54 of file imagetoggler.h.

Referenced by set_icon_name().

◆ _pixOnName

Glib::ustring Inkscape::UI::Widget::ImageToggler::_pixOnName
private

Definition at line 53 of file imagetoggler.h.

Referenced by set_icon_name().

◆ _property_activatable

Glib::Property<bool> Inkscape::UI::Widget::ImageToggler::_property_activatable
private

Definition at line 57 of file imagetoggler.h.

Referenced by property_activatable(), and snapshot_vfunc().

◆ _property_active

Glib::Property<bool> Inkscape::UI::Widget::ImageToggler::_property_active
private

Definition at line 56 of file imagetoggler.h.

Referenced by property_active(), set_icon_name(), and snapshot_vfunc().

◆ _property_active_icon

Glib::Property<std::string> Inkscape::UI::Widget::ImageToggler::_property_active_icon
private

Definition at line 59 of file imagetoggler.h.

Referenced by property_active_icon(), and set_icon_name().

◆ _property_gossamer

Glib::Property<bool> Inkscape::UI::Widget::ImageToggler::_property_gossamer
private

Definition at line 58 of file imagetoggler.h.

Referenced by property_gossamer(), and snapshot_vfunc().

◆ _signal_toggled

sigc::signal<void (const Glib::ustring&)> Inkscape::UI::Widget::ImageToggler::_signal_toggled
private

Definition at line 61 of file imagetoggler.h.

Referenced by activate_vfunc(), and signal_toggled().


The documentation for this class was generated from the following files: