Gtk::EnumListItem is the type of items in a Gtk::EnumList.
More...
#include <gtkmm/enumlistitem.h>
|
| | EnumListItem (EnumListItem && src) noexcept |
| EnumListItem & | operator= (EnumListItem && src) noexcept |
| | ~EnumListItem () noexcept override |
| GtkEnumListItem * | gobj () |
| | Provides access to the underlying C GObject.
|
| const GtkEnumListItem * | gobj () const |
| | Provides access to the underlying C GObject.
|
| GtkEnumListItem * | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
| int | get_value () const |
| | Gets the enum value.
|
| Glib::ustring | get_name () const |
| | Gets the enum value name.
|
| Glib::ustring | get_nick () const |
| | Gets the enum value nick.
|
| Glib::PropertyProxy_ReadOnly< int > | property_value () const |
| | The enum value.
|
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
| | The enum value name.
|
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_nick () const |
| | The enum value nick.
|
|
| static GType | get_type () |
| | Get the GType for this class, for use with the underlying GObject type system.
|
|
(Note that these are not member symbols.)
|
| Glib::RefPtr< Gtk::EnumListItem > | wrap (GtkEnumListItem * object, bool take_copy=false) |
| | A Glib::wrap() method for this object.
|
Gtk::EnumListItem is the type of items in a Gtk::EnumList.
How to get an EnumListItem from an EnumList:
Glib::RefPtr<Glib::ObjectBase> object = enum_list->get_object(position);
if (!item)
on_error();
__shared_ptr< _Tp, _Lp > dynamic_pointer_cast(const __shared_ptr< _Tp1, _Lp > &__r) noexcept
static Glib::RefPtr< EnumList > create(GType enum_type)
Creates a new Gtk::EnumList for enum_type.
- See also
- Gtk::EnumList
- Since gtkmm 4.24
◆ EnumListItem()
| Gtk::EnumListItem::EnumListItem |
( |
EnumListItem && | src | ) |
|
|
noexcept |
◆ ~EnumListItem()
| Gtk::EnumListItem::~EnumListItem |
( |
| ) |
|
|
overridenoexcept |
◆ get_name()
| Glib::ustring Gtk::EnumListItem::get_name |
( |
| ) |
const |
Gets the enum value name.
- Returns
- The enum value name.
◆ get_nick()
| Glib::ustring Gtk::EnumListItem::get_nick |
( |
| ) |
const |
Gets the enum value nick.
- Returns
- The enum value nick.
◆ get_type()
| GType Gtk::EnumListItem::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ get_value()
| int Gtk::EnumListItem::get_value |
( |
| ) |
const |
Gets the enum value.
- Returns
- The enum value.
◆ gobj() [1/2]
| GtkEnumListItem * Gtk::EnumListItem::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C GObject.
◆ gobj() [2/2]
| const GtkEnumListItem * Gtk::EnumListItem::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C GObject.
◆ gobj_copy()
| GtkEnumListItem * Gtk::EnumListItem::gobj_copy |
( |
| ) |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
◆ operator=()
◆ property_name()
| Glib::PropertyProxy_ReadOnly< Glib::ustring > Gtk::EnumListItem::property_name |
( |
| ) |
const |
The enum value name.
- Since gtkmm 4.24
Default value: ""
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
◆ property_nick()
| Glib::PropertyProxy_ReadOnly< Glib::ustring > Gtk::EnumListItem::property_nick |
( |
| ) |
const |
The enum value nick.
- Since gtkmm 4.24
Default value: ""
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
◆ property_value()
| Glib::PropertyProxy_ReadOnly< int > Gtk::EnumListItem::property_value |
( |
| ) |
const |
The enum value.
- Since gtkmm 4.24
Default value: 0
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
◆ wrap()
| Glib::RefPtr< Gtk::EnumListItem > wrap |
( |
GtkEnumListItem * | object, |
|
|
bool | take_copy = false ) |
|
related |
A Glib::wrap() method for this object.
- Parameters
-
| object | The C instance. |
| take_copy | False 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.