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

#include <cell_renderer_pixbuf_multi.h>

Inheritance diagram for Gtkmm2ext::CellRendererPixbufMulti:
[legend]

Public Types

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

Public Member Functions

 CellRendererPixbufMulti ()
 
virtual ~CellRendererPixbufMulti ()
 
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< uint32_t > property_state ()
 
void set_pixbuf (uint32_t state, Glib::RefPtr< Gdk::Pixbuf > pixbuf)
 
SignalChangedsignal_changed ()
 
- 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< uint32_t > property_state_
 
std::map< uint32_t, Glib::RefPtr< Gdk::Pixbuf > > _pixbufs
 
SignalChanged signal_changed_
 

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 35 of file cell_renderer_pixbuf_multi.h.

Member Typedef Documentation

◆ SignalChanged

typedef sigc::signal<void, const Glib::ustring&> Gtkmm2ext::CellRendererPixbufMulti::SignalChanged

Definition at line 54 of file cell_renderer_pixbuf_multi.h.

Constructor & Destructor Documentation

◆ CellRendererPixbufMulti()

Gtkmm2ext::CellRendererPixbufMulti::CellRendererPixbufMulti ( )

◆ ~CellRendererPixbufMulti()

virtual Gtkmm2ext::CellRendererPixbufMulti::~CellRendererPixbufMulti ( )
inlinevirtual

Definition at line 40 of file cell_renderer_pixbuf_multi.h.

Member Function Documentation

◆ _property_renderable()

Glib::PropertyProxy_Base Gtkmm2ext::CellRendererPixbufMulti::_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::CellRendererPixbufMulti::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::CellRendererPixbufMulti::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_state()

Glib::PropertyProxy<uint32_t> Gtkmm2ext::CellRendererPixbufMulti::property_state ( )

◆ render_vfunc()

virtual void Gtkmm2ext::CellRendererPixbufMulti::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_pixbuf()

void Gtkmm2ext::CellRendererPixbufMulti::set_pixbuf ( uint32_t  state,
Glib::RefPtr< Gdk::Pixbuf pixbuf 
)

◆ signal_changed()

SignalChanged& Gtkmm2ext::CellRendererPixbufMulti::signal_changed ( )

Member Data Documentation

◆ _pixbufs

std::map<uint32_t,Glib::RefPtr<Gdk::Pixbuf> > Gtkmm2ext::CellRendererPixbufMulti::_pixbufs
private

Definition at line 63 of file cell_renderer_pixbuf_multi.h.

◆ property_state_

Glib::Property<uint32_t> Gtkmm2ext::CellRendererPixbufMulti::property_state_
private

Definition at line 61 of file cell_renderer_pixbuf_multi.h.

◆ signal_changed_

SignalChanged Gtkmm2ext::CellRendererPixbufMulti::signal_changed_
private

Definition at line 67 of file cell_renderer_pixbuf_multi.h.


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