ardour
Public Member Functions | Public Attributes | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CairoEditableText Class Reference

#include <cairocell.h>

Inheritance diagram for CairoEditableText:

Public Member Functions

 CairoEditableText (boost::shared_ptr< CairoFontDescription > font=boost::shared_ptr< CairoFontDescription >())
 
 ~CairoEditableText ()
 
void add_cell (CairoCell *)
 
void clear_cells ()
 
void start_editing (CairoCell *)
 
void stop_editing ()
 
void set_text (CairoTextCell *cell, const std::string &)
 
void set_width_chars (CairoTextCell *cell, uint32_t)
 
void set_draw_background (bool yn)
 
void set_colors (double cr, double cg, double cb, double ca)
 
void set_edit_colors (double cr, double cg, double cb, double ca)
 
void set_bg (double r, double g, double b, double a)
 
double xpad () const
 
void set_xpad (double x)
 
double ypad () const
 
void set_ypad (double y)
 
double corner_radius () const
 
void set_corner_radius (double r)
 
boost::shared_ptr
< CairoFontDescription
font () const
 
void set_font (boost::shared_ptr< CairoFontDescription > font)
 
void set_font (Pango::FontDescription &font)
 

Public Attributes

sigc::signal< bool,
GdkEventScroll *, CairoCell * > 
scroll
 
sigc::signal< bool,
GdkEventButton *, CairoCell * > 
button_press
 
sigc::signal< bool,
GdkEventButton *, CairoCell * > 
button_release
 

Protected Member Functions

bool on_expose_event (GdkEventExpose *)
 
bool on_button_press_event (GdkEventButton *)
 
bool on_button_release_event (GdkEventButton *)
 
void on_size_request (GtkRequisition *)
 
bool on_focus_in_event (GdkEventFocus *)
 
bool on_focus_out_event (GdkEventFocus *)
 
bool on_scroll_event (GdkEventScroll *)
 
void on_size_allocate (Gtk::Allocation &)
 

Private Types

typedef std::vector< CairoCell * > CellMap
 

Private Member Functions

CairoCellfind_cell (uint32_t x, uint32_t y)
 
void queue_draw_cell (CairoCell *target)
 
void position_cells_and_get_bbox (GdkRectangle &)
 
void set_cell_sizes ()
 

Private Attributes

CellMap cells
 
boost::shared_ptr
< CairoFontDescription
_font
 
CairoCellediting_cell
 
bool _draw_bg
 
double max_cell_width
 
double max_cell_height
 
double _corner_radius
 
double _xpad
 
double _ypad
 
double r
 
double g
 
double b
 
double a
 
double edit_r
 
double edit_g
 
double edit_b
 
double edit_a
 
double bg_r
 
double bg_g
 
double bg_b
 
double bg_a
 

Detailed Description

Definition at line 152 of file cairocell.h.

Member Typedef Documentation

typedef std::vector<CairoCell*> CairoEditableText::CellMap
private

Definition at line 220 of file cairocell.h.

Constructor & Destructor Documentation

CairoEditableText::CairoEditableText ( boost::shared_ptr< CairoFontDescription font = boost::shared_ptr<CairoFontDescription>())

Definition at line 199 of file cairocell.cc.

CairoEditableText::~CairoEditableText ( )

Definition at line 217 of file cairocell.cc.

Member Function Documentation

void CairoEditableText::add_cell ( CairoCell cell)

Definition at line 251 of file cairocell.cc.

void CairoEditableText::clear_cells ( )

Definition at line 265 of file cairocell.cc.

double CairoEditableText::corner_radius ( ) const
inline

Definition at line 198 of file cairocell.h.

CairoCell * CairoEditableText::find_cell ( uint32_t  x,
uint32_t  y 
)
private

Definition at line 362 of file cairocell.cc.

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

Definition at line 201 of file cairocell.h.

bool CairoEditableText::on_button_press_event ( GdkEventButton *  ev)
protected

Definition at line 374 of file cairocell.cc.

bool CairoEditableText::on_button_release_event ( GdkEventButton *  ev)
protected

Definition at line 381 of file cairocell.cc.

bool CairoEditableText::on_expose_event ( GdkEventExpose *  ev)
protected

Definition at line 288 of file cairocell.cc.

bool CairoEditableText::on_focus_in_event ( GdkEventFocus *  )
protected

Definition at line 235 of file cairocell.cc.

bool CairoEditableText::on_focus_out_event ( GdkEventFocus *  )
protected

Definition at line 241 of file cairocell.cc.

bool CairoEditableText::on_scroll_event ( GdkEventScroll *  ev)
protected

Definition at line 223 of file cairocell.cc.

void CairoEditableText::on_size_allocate ( Gtk::Allocation &  alloc)
protected

Definition at line 446 of file cairocell.cc.

void CairoEditableText::on_size_request ( GtkRequisition *  req)
protected

Definition at line 429 of file cairocell.cc.

void CairoEditableText::position_cells_and_get_bbox ( GdkRectangle &  )
private
void CairoEditableText::queue_draw_cell ( CairoCell target)
private

Definition at line 342 of file cairocell.cc.

void CairoEditableText::set_bg ( double  r,
double  g,
double  b,
double  a 
)
inline

Definition at line 185 of file cairocell.h.

void CairoEditableText::set_cell_sizes ( )
private

Definition at line 409 of file cairocell.cc.

void CairoEditableText::set_colors ( double  cr,
double  cg,
double  cb,
double  ca 
)
inline

Definition at line 169 of file cairocell.h.

void CairoEditableText::set_corner_radius ( double  r)
inline

Definition at line 199 of file cairocell.h.

void CairoEditableText::set_draw_background ( bool  yn)
inline

Definition at line 167 of file cairocell.h.

void CairoEditableText::set_edit_colors ( double  cr,
double  cg,
double  cb,
double  ca 
)
inline

Definition at line 177 of file cairocell.h.

void CairoEditableText::set_font ( boost::shared_ptr< CairoFontDescription font)

Definition at line 481 of file cairocell.cc.

void CairoEditableText::set_font ( Pango::FontDescription &  font)

Definition at line 474 of file cairocell.cc.

void CairoEditableText::set_text ( CairoTextCell cell,
const std::string &   
)

Definition at line 281 of file cairocell.cc.

void CairoEditableText::set_width_chars ( CairoTextCell cell,
uint32_t  wc 
)

Definition at line 272 of file cairocell.cc.

void CairoEditableText::set_xpad ( double  x)
inline

Definition at line 194 of file cairocell.h.

void CairoEditableText::set_ypad ( double  y)
inline

Definition at line 196 of file cairocell.h.

void CairoEditableText::start_editing ( CairoCell cell)

Definition at line 388 of file cairocell.cc.

void CairoEditableText::stop_editing ( )

Definition at line 400 of file cairocell.cc.

double CairoEditableText::xpad ( ) const
inline

Definition at line 193 of file cairocell.h.

double CairoEditableText::ypad ( ) const
inline

Definition at line 195 of file cairocell.h.

Member Data Documentation

double CairoEditableText::_corner_radius
private

Definition at line 228 of file cairocell.h.

bool CairoEditableText::_draw_bg
private

Definition at line 225 of file cairocell.h.

boost::shared_ptr<CairoFontDescription> CairoEditableText::_font
private

Definition at line 223 of file cairocell.h.

double CairoEditableText::_xpad
private

Definition at line 229 of file cairocell.h.

double CairoEditableText::_ypad
private

Definition at line 230 of file cairocell.h.

double CairoEditableText::a
private

Definition at line 234 of file cairocell.h.

double CairoEditableText::b
private

Definition at line 233 of file cairocell.h.

double CairoEditableText::bg_a
private

Definition at line 242 of file cairocell.h.

double CairoEditableText::bg_b
private

Definition at line 241 of file cairocell.h.

double CairoEditableText::bg_g
private

Definition at line 240 of file cairocell.h.

double CairoEditableText::bg_r
private

Definition at line 239 of file cairocell.h.

sigc::signal<bool,GdkEventButton*,CairoCell*> CairoEditableText::button_press

Definition at line 206 of file cairocell.h.

sigc::signal<bool,GdkEventButton*,CairoCell*> CairoEditableText::button_release

Definition at line 207 of file cairocell.h.

CellMap CairoEditableText::cells
private

Definition at line 222 of file cairocell.h.

double CairoEditableText::edit_a
private

Definition at line 238 of file cairocell.h.

double CairoEditableText::edit_b
private

Definition at line 237 of file cairocell.h.

double CairoEditableText::edit_g
private

Definition at line 236 of file cairocell.h.

double CairoEditableText::edit_r
private

Definition at line 235 of file cairocell.h.

CairoCell* CairoEditableText::editing_cell
private

Definition at line 224 of file cairocell.h.

double CairoEditableText::g
private

Definition at line 232 of file cairocell.h.

double CairoEditableText::max_cell_height
private

Definition at line 227 of file cairocell.h.

double CairoEditableText::max_cell_width
private

Definition at line 226 of file cairocell.h.

double CairoEditableText::r
private

Definition at line 231 of file cairocell.h.

sigc::signal<bool,GdkEventScroll*,CairoCell*> CairoEditableText::scroll

Definition at line 205 of file cairocell.h.


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