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


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
Accessors

Static Public Member Functions

Accessors

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:
str A 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:
str A 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:
quark A GQuark.

Xfc::G::Quark::Quark const Quark src  ) 
 

Copy Constructor.

Parameters:
src The source Quark.


Member Function Documentation

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

Assignment operator.

Parameters:
src The source Quark.

Quark Xfc::G::Quark::try_string const char *  str  )  [static]
 

Gets the quark associated with the given string.

Parameters:
str A 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 4.3