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


Xfc::Atk::Attribute Class Reference

A AtkAttribute C++ wrapper class. More...

#include <xfc/atk/text.hh>

List of all members.

Constructors

Public Member Functions

Accessors
Methods

Detailed Description

A AtkAttribute C++ wrapper class.

Attribute is a string name/value pair representing a text attribute.


Constructor & Destructor Documentation

Xfc::Atk::Attribute::Attribute ( TextAttribute  attr,
int  index 
)

Construct an new attribute from a TextAttribute and a value index.

Parameters:
attr The TextAttribute whose name will be used.
index The index of the string value required.
This is a convenience constructor that calls text_attribute_get_name() and text_attribute_get_value() for you. The index is the index of the required value for those values which are strings.

Xfc::Atk::Attribute::Attribute ( TextAttribute  attr,
const String value 
)

Construct an new attribute from a TextAttribute and a value string.

Parameters:
attr The TextAttribute whose name will be used.
value A string representation of the value.
This is a convenience constructor that calls text_attribute_get_name() for you. Call text_attribute_get_value() for those values which are strings. For values which are numbers, the string representation of the number should be in value.

Xfc::Atk::Attribute::Attribute ( const String name,
const String value 
)

Construct an new attribute from an attribute name and a value string.

Parameters:
name The attribute name (call text_attribute_get_name()).
value The value of the attribute, represented as a string.
Call text_attribute_get_value() for those values which are strings. For values which are numbers, the string representation of the number should be in value.

Xfc::Atk::Attribute::Attribute ( const AtkAttribute &  attrib  ) 

Construct an new attribute from an existing AtkAttribute.

Parameters:
attrib An AtkAttribute.

Xfc::Atk::Attribute::Attribute ( const Attribute src  ) 

Copy constructor.

Parameters:
src The source attribute.


Member Function Documentation

Attribute& Xfc::Atk::Attribute::operator= ( const Attribute src  ) 

Assignment operator.

Parameters:
src The source attribute.

void Xfc::Atk::Attribute::set ( const String name,
const String value 
)

Sets the name and value for the attribute.

Parameters:
name The attribute name (call text_attribute_get_name()).
value The value of the attribute, represented as a string.
Call text_attribute_get_value() for those values which are strings. For values which are numbers, the string representation of the number should be in value.


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