Ardour  8.7-14-g57a6773833
Gtk::StockItem Class Reference

#include <stockitem.h>

Public Member Functions

 StockItem ()
 
 StockItem (GtkStockItem *castitem, bool make_a_copy=false)
 
 StockItem (const StockItem &src)
 
StockItemoperator= (const StockItem &src)
 
 ~StockItem ()
 
GtkStockItemgobj ()
 
const GtkStockItemgobj () const
 
GtkStockItemgobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. More...
 
 StockItem (const Gtk::StockID &stock_id, const Glib::ustring &label, Gdk::ModifierType modifier=Gdk::ModifierType(0), unsigned int keyval=0, const Glib::ustring &translation_domain=Glib::ustring())
 
StockID get_stock_id () const
 
Glib::ustring get_label () const
 
Gdk::ModifierType get_modifier () const
 
guint get_keyval () const
 
Glib::ustring get_translation_domain () const
 

Static Public Member Functions

static bool lookup (const Gtk::StockID &stock_id, Gtk::StockItem &item)
 

Protected Attributes

GtkStockItemgobject_
 

Related Functions

(Note that these are not member functions.)

Gtk::StockItem wrap (GtkStockItem *object, bool take_copy=false)
 

Detailed Description

Definition at line 43 of file stockitem.h.

Constructor & Destructor Documentation

◆ StockItem() [1/4]

Gtk::StockItem::StockItem ( )

Constructs an invalid object. E.g. for output arguments to methods. There is not much you can do with the object before it has been assigned a valid value.

◆ StockItem() [2/4]

Gtk::StockItem::StockItem ( GtkStockItem castitem,
bool  make_a_copy = false 
)
explicit

◆ StockItem() [3/4]

Gtk::StockItem::StockItem ( const StockItem src)

◆ ~StockItem()

Gtk::StockItem::~StockItem ( )

◆ StockItem() [4/4]

Gtk::StockItem::StockItem ( const Gtk::StockID stock_id,
const Glib::ustring &  label,
Gdk::ModifierType  modifier = Gdk::ModifierType(0),
unsigned int  keyval = 0,
const Glib::ustring &  translation_domain = Glib::ustring() 
)

Member Function Documentation

◆ get_keyval()

guint Gtk::StockItem::get_keyval ( ) const

◆ get_label()

Glib::ustring Gtk::StockItem::get_label ( ) const

◆ get_modifier()

Gdk::ModifierType Gtk::StockItem::get_modifier ( ) const

◆ get_stock_id()

StockID Gtk::StockItem::get_stock_id ( ) const

◆ get_translation_domain()

Glib::ustring Gtk::StockItem::get_translation_domain ( ) const

◆ gobj() [1/2]

GtkStockItem* Gtk::StockItem::gobj ( )
inline

Definition at line 65 of file stockitem.h.

◆ gobj() [2/2]

const GtkStockItem* Gtk::StockItem::gobj ( ) const
inline

Definition at line 66 of file stockitem.h.

◆ gobj_copy()

GtkStockItem* Gtk::StockItem::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.

◆ lookup()

static bool Gtk::StockItem::lookup ( const Gtk::StockID stock_id,
Gtk::StockItem item 
)
static

◆ operator=()

StockItem& Gtk::StockItem::operator= ( const StockItem src)

Friends And Related Function Documentation

◆ wrap()

Gtk::StockItem wrap ( GtkStockItem object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

Member Data Documentation

◆ gobject_

GtkStockItem* Gtk::StockItem::gobject_
protected

Definition at line 72 of file stockitem.h.


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