ardour
Public Member Functions | Protected Attributes | List of all members
CairoCell Class Referenceabstract

#include <cairocell.h>

Inheritance diagram for CairoCell:
CairoTextCell CairoCharCell

Public Member Functions

 CairoCell (int32_t id)
 
virtual ~CairoCell ()
 
int32_t id () const
 
virtual void render (Cairo::RefPtr< Cairo::Context > &)=0
 
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
 
virtual void set_size (Cairo::RefPtr< Cairo::Context > &)
 

Protected Attributes

int32_t _id
 
GdkRectangle bbox
 
bool _visible
 
uint32_t _xpad
 

Detailed Description

Definition at line 34 of file cairocell.h.

Constructor & Destructor Documentation

CairoCell::CairoCell ( int32_t  id)

Definition at line 87 of file cairocell.cc.

virtual CairoCell::~CairoCell ( )
inlinevirtual

Definition at line 38 of file cairocell.h.

Member Function Documentation

bool CairoCell::covers ( double  x,
double  y 
) const
inline

Definition at line 58 of file cairocell.h.

double CairoCell::height ( ) const
inline

Definition at line 47 of file cairocell.h.

int32_t CairoCell::id ( ) const
inline

Definition at line 40 of file cairocell.h.

bool CairoCell::intersects ( GdkRectangle &  r) const
inline

Definition at line 54 of file cairocell.h.

virtual void CairoCell::render ( Cairo::RefPtr< Cairo::Context > &  )
pure virtual

Implemented in CairoTextCell.

void CairoCell::set_position ( double  x,
double  y 
)
inline

Definition at line 49 of file cairocell.h.

virtual void CairoCell::set_size ( Cairo::RefPtr< Cairo::Context > &  )
inlinevirtual

Reimplemented in CairoCharCell, and CairoTextCell.

Definition at line 68 of file cairocell.h.

void CairoCell::set_visible ( bool  yn)
inline

Definition at line 66 of file cairocell.h.

void CairoCell::set_xpad ( double  x)
inline

Definition at line 64 of file cairocell.h.

bool CairoCell::visible ( ) const
inline

Definition at line 67 of file cairocell.h.

double CairoCell::width ( ) const
inline

Definition at line 46 of file cairocell.h.

double CairoCell::x ( ) const
inline

Definition at line 44 of file cairocell.h.

double CairoCell::xpad ( ) const
inline

Definition at line 63 of file cairocell.h.

double CairoCell::y ( ) const
inline

Definition at line 45 of file cairocell.h.

Member Data Documentation

int32_t CairoCell::_id
protected

Definition at line 71 of file cairocell.h.

bool CairoCell::_visible
protected

Definition at line 73 of file cairocell.h.

uint32_t CairoCell::_xpad
protected

Definition at line 74 of file cairocell.h.

GdkRectangle CairoCell::bbox
protected

Definition at line 72 of file cairocell.h.


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