ardour
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CairoTextCell Class Reference

#include <cairocell.h>

Inheritance diagram for CairoTextCell:
CairoCell CairoCharCell

Public Member Functions

 CairoTextCell (int32_t id, double width_chars, boost::shared_ptr< CairoFontDescription > font=boost::shared_ptr< CairoFontDescription >())
 
 ~CairoTextCell ()
 
virtual void set_size (Cairo::RefPtr< Cairo::Context > &)
 
boost::shared_ptr
< CairoFontDescription
font () const
 
std::string get_text () const
 
double width_chars () const
 
void render (Cairo::RefPtr< Cairo::Context > &)
 
- Public Member Functions inherited from CairoCell
 CairoCell (int32_t id)
 
virtual ~CairoCell ()
 
int32_t id () const
 
double x () const
 
double y () const
 
double width () const
 
double height () const
 
void set_position (double x, double y)
 
bool intersects (GdkRectangle &r) const
 
bool covers (double x, double y) const
 
double xpad () const
 
void set_xpad (double x)
 
void set_visible (bool yn)
 
bool visible () const
 

Protected Member Functions

void set_width_chars (double wc)
 
void set_text (const std::string &txt)
 
void set_font (boost::shared_ptr< CairoFontDescription > font)
 

Protected Attributes

double _width_chars
 
std::string _text
 
boost::shared_ptr
< CairoFontDescription
_font
 
double y_offset
 
double x_offset
 
- Protected Attributes inherited from CairoCell
int32_t _id
 
GdkRectangle bbox
 
bool _visible
 
uint32_t _xpad
 

Friends

class CairoEditableText
 

Detailed Description

Definition at line 111 of file cairocell.h.

Constructor & Destructor Documentation

CairoTextCell::CairoTextCell ( int32_t  id,
double  width_chars,
boost::shared_ptr< CairoFontDescription font = boost::shared_ptr<CairoFontDescription>() 
)

Definition at line 98 of file cairocell.cc.

CairoTextCell::~CairoTextCell ( )
inline

Definition at line 115 of file cairocell.h.

Member Function Documentation

boost::shared_ptr<CairoFontDescription> CairoTextCell::font ( ) const
inline

Definition at line 119 of file cairocell.h.

std::string CairoTextCell::get_text ( ) const
inline

Definition at line 121 of file cairocell.h.

void CairoTextCell::render ( Cairo::RefPtr< Cairo::Context > &  context)
virtual

Implements CairoCell.

Definition at line 114 of file cairocell.cc.

void CairoTextCell::set_font ( boost::shared_ptr< CairoFontDescription font)
inlineprotected

Definition at line 132 of file cairocell.h.

void CairoTextCell::set_size ( Cairo::RefPtr< Cairo::Context > &  context)
virtual

Reimplemented from CairoCell.

Reimplemented in CairoCharCell.

Definition at line 133 of file cairocell.cc.

void CairoTextCell::set_text ( const std::string &  txt)
protected

Definition at line 108 of file cairocell.cc.

void CairoTextCell::set_width_chars ( double  wc)
inlineprotected

Definition at line 130 of file cairocell.h.

double CairoTextCell::width_chars ( ) const
inline

Definition at line 125 of file cairocell.h.

Friends And Related Function Documentation

friend class CairoEditableText
friend

Definition at line 129 of file cairocell.h.

Member Data Documentation

boost::shared_ptr<CairoFontDescription> CairoTextCell::_font
protected

Definition at line 139 of file cairocell.h.

std::string CairoTextCell::_text
protected

Definition at line 138 of file cairocell.h.

double CairoTextCell::_width_chars
protected

Definition at line 137 of file cairocell.h.

double CairoTextCell::x_offset
protected

Definition at line 141 of file cairocell.h.

double CairoTextCell::y_offset
protected

Definition at line 140 of file cairocell.h.


The documentation for this class was generated from the following files: