Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions | Static Public Member Functions
Xfc::G::Quark Class Reference

A GQuark C++ wrapper interface. More...

#include <xfc/glib/quark.hh>

Inheritance diagram for Xfc::G::Quark:
Xfc::IntegerObject< GQuark >

List of all members.

Public Member Functions

Constructors

Static Public Member Functions


Detailed Description

A GQuark C++ wrapper interface.

Quarks are associations between strings and integer identifiers. Given either the string or the Quark identifier it is possible to retrieve the other. Quarks are used to get and set object properties and used data pointers.


Constructor & Destructor Documentation

Xfc::G::Quark::Quark ( const char *  str)

Construct a Quark from a string.

Parameters:
strA string.

Wraps the GQuark identifying the given string. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

Xfc::G::Quark::Quark ( const String str)

Construct a Quark from a String.

Parameters:
strA String.

Wraps the GQuark identifying the given string. If the string does not currently have an associated GQuark, a new GQuark is created, using a copy of the string.

Xfc::G::Quark::Quark ( GQuark  quark)

Construct a quark from an existing GQuark.

Parameters:
quarkA GQuark.
Xfc::G::Quark::Quark ( const Quark src)

Copy Constructor.

Parameters:
srcThe source Quark.

Member Function Documentation

Quark& Xfc::G::Quark::operator= ( const Quark src)

Assignment operator.

Parameters:
srcThe source Quark.
static Quark Xfc::G::Quark::try_string ( const char *  str) [static]

Gets the quark associated with the given string.

Parameters:
strA string.
Returns:
The quark, or null if the string has no associated quark.

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC