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


Xfc::Pango::AttrShape Class Reference

A PangoAttrShape C++ wrapper class. More...

#include <xfc/pango/attributes.hh>

Inheritance diagram for Xfc::Pango::AttrShape:

Xfc::Pango::Attribute Xfc::Object Xfc::Trackable List of all members.

Public Member Functions

Constructors
Accessors
Methods

Detailed Description

A PangoAttrShape C++ wrapper class.

AttrShape wraps the shape attribute (ATTR_SHAPE).


Constructor & Destructor Documentation

Xfc::Pango::AttrShape::AttrShape const Rectangle ink_rect,
const Rectangle logical_rect
 

Construct a new shape attribute.

Parameters:
ink_rect The ink rectangle to assign to each character.
logical_rect The logical rectangle assign to each character.
A shape is used to impose a particular ink and logical rect on the result of shaping a particular glyph. This might be used, for instance, for embedding a picture or a widget inside a Pango::Layout.


Member Function Documentation

void Xfc::Pango::AttrShape::set_ink_rect int  x,
int  y,
int  width,
int  height
 

Sets the ink rectangle.

Parameters:
x The X coordinate of the upper-left corner of the ink rectangle.
y The Y coordinate of the upper-left corner of the ink rectangle.
width The width of the ink rectangle.
height The height of the ink rectangle.

void Xfc::Pango::AttrShape::set_ink_rect const Rectangle rect  ) 
 

Sets the ink rectangle.

Parameters:
rect The ink rectangle.

void Xfc::Pango::AttrShape::set_logical_rect int  x,
int  y,
int  width,
int  height
 

Sets the logical rectangle.

Parameters:
x The X coordinate of the upper-left corner of the logical rectangle.
y The Y coordinate of the upper-left corner of the logical rectangle.
width The width of the logical rectangle.
height The height of the logical rectangle.

void Xfc::Pango::AttrShape::set_logical_rect const Rectangle rect  ) 
 

Sets the logical rectangle.

Parameters:
rect The logical rectangle.

void Xfc::Pango::AttrShape::set_rects const Rectangle ink_rect,
const Rectangle logical_rect
 

Sets the ink and logical rectangles.

Parameters:
ink_rect The ink rectangle.
logical_rect The logical rectangle.


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