glibmm  2.33.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions
Gio::FileIcon Class Reference

FileIcon specifies an icon by pointing to an image file to be used as icon. More...

#include <giomm/fileicon.h>

Inheritance diagram for Gio::FileIcon:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~FileIcon ()
GFileIcon* gobj ()
 Provides access to the underlying C GObject.
const GFileIcon* gobj () const
 Provides access to the underlying C GObject.
GFileIcon* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::RefPtr< Fileget_file ()
 Gets the File associated with the given icon.
Glib::RefPtr< const Fileget_file () const
 Gets the File associated with the given icon.
Glib::PropertyProxy_ReadOnly
< Glib::RefPtr< File > > 
property_file () const
 The file containing the icon.

Static Public Member Functions

static Glib::RefPtr< FileIconcreate ()

Protected Member Functions

 FileIcon ()

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gio::FileIconwrap (GFileIcon* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Detailed Description

FileIcon specifies an icon by pointing to an image file to be used as icon.

Since glibmm 2.16:

Constructor & Destructor Documentation

virtual Gio::FileIcon::~FileIcon ( ) [virtual]
Gio::FileIcon::FileIcon ( ) [protected]

Member Function Documentation

static Glib::RefPtr<FileIcon> Gio::FileIcon::create ( ) [static]
Glib::RefPtr<File> Gio::FileIcon::get_file ( )

Gets the File associated with the given icon.

Returns:
A File, or 0.
Glib::RefPtr<const File> Gio::FileIcon::get_file ( ) const

Gets the File associated with the given icon.

Returns:
A File, or 0.
GFileIcon* Gio::FileIcon::gobj ( ) [inline]

Provides access to the underlying C GObject.

Reimplemented from Gio::LoadableIcon.

const GFileIcon* Gio::FileIcon::gobj ( ) const [inline]

Provides access to the underlying C GObject.

Reimplemented from Gio::LoadableIcon.

GFileIcon* Gio::FileIcon::gobj_copy ( )

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

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<File> > Gio::FileIcon::property_file ( ) const

The file containing the icon.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.

Friends And Related Function Documentation

Glib::RefPtr< Gio::FileIcon > wrap ( GFileIcon *  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.