Ardour  9.0-pre0-582-g084a23a80d
Gtkmm2ext::CellRendererPixbufToggle Class Reference

#include <cell_renderer_pixbuf_toggle.h>

Inheritance diagram for Gtkmm2ext::CellRendererPixbufToggle:
[legend]

Public Types

typedef sigc::signal< void, const Glib::ustring & > SignalToggled
 

Public Member Functions

 CellRendererPixbufToggle ()
 
virtual ~CellRendererPixbufToggle ()
 
virtual void render_vfunc (const Glib::RefPtr< Gdk::Drawable > &window, Gtk::Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, Gtk::CellRendererState flags)
 
virtual void get_size_vfunc (Gtk::Widget &widget, const Gdk::Rectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height) const
 
virtual bool activate_vfunc (GdkEvent *, Gtk::Widget &, const Glib::ustring &path, const Gdk::Rectangle &, const Gdk::Rectangle &, Gtk::CellRendererState)
 
Glib::PropertyProxy_Base _property_renderable ()
 
Glib::PropertyProxy< Glib::RefPtr< Gdk::Pixbuf > > property_pixbuf ()
 
Glib::PropertyProxy< bool > property_active ()
 
void set_active_pixbuf (Glib::RefPtr< Gdk::Pixbuf > pixbuf)
 
void set_inactive_pixbuf (Glib::RefPtr< Gdk::Pixbuf > pixbuf)
 
SignalToggledsignal_toggled ()
 
- Public Member Functions inherited from Gtk::CellRenderer
virtual ~CellRenderer ()
 
GtkCellRenderergobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkCellRenderergobj () const
 Provides access to the underlying C GtkObject. More...
 
void get_size (Widget &widget, const Gdk::Rectangle &cell_area, int &x_offset, int &y_offset, int &width, int &height) const
 
void get_size (Widget &widget, int &x_offset, int &y_offset, int &width, int &height) const
 
void render (const Glib::RefPtr< Gdk::Window > &window, Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, CellRendererState flags)
 
bool activate (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
 
CellEditablestart_editing (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags=CellRendererState(0))
 
void set_fixed_size (int width, int height)
 
void get_fixed_size (int &width, int &height) const
 
void set_alignment (float xalign, float yalign)
 
void get_alignment (float &xalign, float &yalign) const
 
void set_padding (int xpad, int ypad)
 
void get_padding (int &xpad, int &ypad) const
 
void set_visible (bool visible=true)
 
bool get_visible () const
 
void set_sensitive (bool sensitive=true)
 
bool get_sensitive () const
 
void editing_canceled ()
 
void stop_editing (bool canceled=false)
 
Glib::SignalProxy0< void > signal_editing_canceled ()
 
Glib::SignalProxy2< void, CellEditable *, const Glib::ustring & > signal_editing_started ()
 
Glib::PropertyProxy< CellRendererModeproperty_mode ()
 
Glib::PropertyProxy_ReadOnly< CellRendererModeproperty_mode () const
 
Glib::PropertyProxy< bool > property_visible ()
 
Glib::PropertyProxy_ReadOnly< bool > property_visible () const
 
Glib::PropertyProxy< bool > property_sensitive ()
 
Glib::PropertyProxy_ReadOnly< bool > property_sensitive () const
 
Glib::PropertyProxy< float > property_xalign ()
 
Glib::PropertyProxy_ReadOnly< float > property_xalign () const
 
Glib::PropertyProxy< float > property_yalign ()
 
Glib::PropertyProxy_ReadOnly< float > property_yalign () const
 
Glib::PropertyProxy< unsigned int > property_xpad ()
 
Glib::PropertyProxy_ReadOnly< unsigned int > property_xpad () const
 
Glib::PropertyProxy< unsigned int > property_ypad ()
 
Glib::PropertyProxy_ReadOnly< unsigned int > property_ypad () const
 
Glib::PropertyProxy< int > property_width ()
 
Glib::PropertyProxy_ReadOnly< int > property_width () const
 
Glib::PropertyProxy< int > property_height ()
 
Glib::PropertyProxy_ReadOnly< int > property_height () const
 
Glib::PropertyProxy< bool > property_is_expander ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_expander () const
 
Glib::PropertyProxy< bool > property_is_expanded ()
 
Glib::PropertyProxy_ReadOnly< bool > property_is_expanded () const
 
Glib::PropertyProxy_WriteOnly< Glib::ustring > property_cell_background ()
 
Glib::PropertyProxy< Gdk::Colorproperty_cell_background_gdk ()
 
Glib::PropertyProxy_ReadOnly< Gdk::Colorproperty_cell_background_gdk () const
 
Glib::PropertyProxy< bool > property_cell_background_set ()
 
Glib::PropertyProxy_ReadOnly< bool > property_cell_background_set () const
 
Glib::PropertyProxy_ReadOnly< bool > property_editing () const
 
- Public Member Functions inherited from Gtk::Object
virtual ~Object ()
 
GtkObjectgobj ()
 Provides access to the underlying C GtkObject. More...
 
const GtkObjectgobj () const
 Provides access to the underlying C GtkObject. More...
 
Glib::PropertyProxy< void * > property_user_data ()
 
Glib::PropertyProxy_ReadOnly< void * > property_user_data () const
 

Private Attributes

Glib::Property< Glib::RefPtr< Gdk::Pixbuf > > property_pixbuf_
 
Glib::Property< bool > property_active_
 
Glib::RefPtr< Gdk::Pixbufactive_pixbuf
 
Glib::RefPtr< Gdk::Pixbufinactive_pixbuf
 
SignalToggled signal_toggled_
 

Additional Inherited Members

- Protected Member Functions inherited from Gtk::CellRenderer
virtual void on_editing_canceled ()
 This is a default handler for the signal signal_editing_canceled(). More...
 
 CellRenderer ()
 
virtual CellEditablestart_editing_vfunc (GdkEvent *event, Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, CellRendererState flags)
 

Detailed Description

Definition at line 32 of file cell_renderer_pixbuf_toggle.h.

Member Typedef Documentation

◆ SignalToggled

typedef sigc::signal<void, const Glib::ustring&> Gtkmm2ext::CellRendererPixbufToggle::SignalToggled

Definition at line 53 of file cell_renderer_pixbuf_toggle.h.

Constructor & Destructor Documentation

◆ CellRendererPixbufToggle()

Gtkmm2ext::CellRendererPixbufToggle::CellRendererPixbufToggle ( )

◆ ~CellRendererPixbufToggle()

virtual Gtkmm2ext::CellRendererPixbufToggle::~CellRendererPixbufToggle ( )
inlinevirtual

Definition at line 37 of file cell_renderer_pixbuf_toggle.h.

Member Function Documentation

◆ _property_renderable()

Glib::PropertyProxy_Base Gtkmm2ext::CellRendererPixbufToggle::_property_renderable ( )
virtual

Returns the property that this CellRenderer renders. For instance, property_text for CellRendererText, and property_active for CellRendererToggle Needs to be overridden in derived classes.

Reimplemented from Gtk::CellRenderer.

◆ activate_vfunc()

virtual bool Gtkmm2ext::CellRendererPixbufToggle::activate_vfunc ( GdkEvent ,
Gtk::Widget ,
const Glib::ustring &  path,
const Gdk::Rectangle ,
const Gdk::Rectangle ,
Gtk::CellRendererState   
)
virtual

Reimplemented from Gtk::CellRenderer.

◆ get_size_vfunc()

virtual void Gtkmm2ext::CellRendererPixbufToggle::get_size_vfunc ( Gtk::Widget widget,
const Gdk::Rectangle cell_area,
int *  x_offset,
int *  y_offset,
int *  width,
int *  height 
) const
virtual

Override this in derived CellRenderers.

Obtains the width and height needed to render the cell. Used by view widgets to determine the appropriate size for the cell_area passed to render(). If cell_area is not 0, fills in the x and y offsets (if set) of the cell relative to this location. Please note that the values set in width and height, as well as those in x_offset and y_offset are inclusive of the xpad and ypad properties.

Parameters
widgetThe widget the renderer is rendering to.
cell_areaThe area a cell will be allocated, or 0.
x_offsetx offset of cell relative to cell_area.
y_offsety offset of cell relative to cell_area.
widthWidth needed to render a cell.
heightHeight needed to render a cell.

Reimplemented from Gtk::CellRenderer.

◆ property_active()

Glib::PropertyProxy<bool> Gtkmm2ext::CellRendererPixbufToggle::property_active ( )

◆ property_pixbuf()

Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > Gtkmm2ext::CellRendererPixbufToggle::property_pixbuf ( )

◆ render_vfunc()

virtual void Gtkmm2ext::CellRendererPixbufToggle::render_vfunc ( const Glib::RefPtr< Gdk::Drawable > &  window,
Gtk::Widget widget,
const Gdk::Rectangle background_area,
const Gdk::Rectangle cell_area,
const Gdk::Rectangle expose_area,
Gtk::CellRendererState  flags 
)
virtual

Reimplemented from Gtk::CellRenderer.

◆ set_active_pixbuf()

void Gtkmm2ext::CellRendererPixbufToggle::set_active_pixbuf ( Glib::RefPtr< Gdk::Pixbuf pixbuf)

◆ set_inactive_pixbuf()

void Gtkmm2ext::CellRendererPixbufToggle::set_inactive_pixbuf ( Glib::RefPtr< Gdk::Pixbuf pixbuf)

◆ signal_toggled()

SignalToggled& Gtkmm2ext::CellRendererPixbufToggle::signal_toggled ( )

Member Data Documentation

◆ active_pixbuf

Glib::RefPtr<Gdk::Pixbuf> Gtkmm2ext::CellRendererPixbufToggle::active_pixbuf
private

Definition at line 63 of file cell_renderer_pixbuf_toggle.h.

◆ inactive_pixbuf

Glib::RefPtr<Gdk::Pixbuf> Gtkmm2ext::CellRendererPixbufToggle::inactive_pixbuf
private

Definition at line 64 of file cell_renderer_pixbuf_toggle.h.

◆ property_active_

Glib::Property<bool> Gtkmm2ext::CellRendererPixbufToggle::property_active_
private

Definition at line 61 of file cell_renderer_pixbuf_toggle.h.

◆ property_pixbuf_

Glib::Property< Glib::RefPtr<Gdk::Pixbuf> > Gtkmm2ext::CellRendererPixbufToggle::property_pixbuf_
private

Definition at line 60 of file cell_renderer_pixbuf_toggle.h.

◆ signal_toggled_

SignalToggled Gtkmm2ext::CellRendererPixbufToggle::signal_toggled_
private

Definition at line 68 of file cell_renderer_pixbuf_toggle.h.


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