GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

GFC::Pango::Attribute Class Reference

A PangoAttriubte C++ wrapper class. More...

#include <gfc/pango/attributes.hh>

Inheritance diagram for GFC::Pango::Attribute:

GFC::Object GFC::Trackable GFC::Pango::AttrColor GFC::Pango::AttrEmbossed GFC::Pango::AttrFloat GFC::Pango::AttrFontDesc GFC::Pango::AttrInt GFC::Pango::AttrLanguage GFC::Pango::AttrShape GFC::Pango::AttrStipple GFC::Pango::AttrString List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A PangoAttriubte C++ wrapper class.

Attribute and its derived classes are used to represent and manipulate sets of attributes applied to a portion of text. Attributed text is used in a number of places in Pango. It is used as the input to the itemization process and also when creating a Pango::Layout.


Constructor & Destructor Documentation

GFC::Pango::Attribute::Attribute PangoAttribute *  attr,
bool  copy
[explicit]
 

Construct a new attribute from an existing PangoAttribute.

Parameters:
attr A PangoAttribute.
copy Set true if a copy of attr should be used.

If copy is true attr is copied. If false attr is assumed to be a valid attribute that must be freed. Either way Attribute will own the PangoAttribute and free it when it's no longer required.

GFC::Pango::Attribute::Attribute const Attribute src  ) 
 

Copy constructor.

Parameters:
src The source attribute.


Member Function Documentation

bool GFC::Pango::Attribute::equal const Attribute other  )  const
 

Compares this attribute with other for equality.

Parameters:
other The attribute to compare with.
Returns:
true if the two attributes have the same value.

This compares only the actual value of the two attributes and not the ranges that the attributes apply to.

bool GFC::Pango::Attribute::operator!= const Attribute other  )  const
 

Inequality operator; compares this attribute with other for inequality.

Parameters:
other The attribute to compare with.
Returns:
true if the two attributes have different values.

This compares only the actual value of the two attributes and not the ranges that the attributes apply to.

Attribute& GFC::Pango::Attribute::operator= const Attribute src  ) 
 

Assignment operator.

Parameters:
src The source attribute.

bool GFC::Pango::Attribute::operator== const Attribute other  )  const
 

Equality operator; compares this attribute with other for equality.

Parameters:
other The attribute to compare with.
Returns:
true if the two attributes have the same value.

This compares only the actual value of the two attributes and not the ranges that the attributes apply to.

void GFC::Pango::Attribute::set_end_index unsigned int  end  ) 
 

Set the end byte index for the range this attribute applies to.

Parameters:
end The end index.

void GFC::Pango::Attribute::set_index unsigned int  start,
unsigned int  end
 

Set the start and end byte index for the range this attribute applies to.

Parameters:
start The start index.
end The end index.

void GFC::Pango::Attribute::set_start_index unsigned int  start  ) 
 

Set the starting byte index for the range this attribute applies to.

Parameters:
start The start index.

AttrType GFC::Pango::Attribute::type  )  const
 

Returns the attribute type.

Note: GDK registers AttrStiple and AttrBitmap as new attribute types so ATTR_INVALID will be returned for these attributes.


The documentation for this class was generated from the following file:
Generated on Tue Aug 24 00:34:45 2004 for GFC-UI by doxygen 1.3.8