25 #ifndef GCCV_BRACKETS_H
26 #define GCCV_BRACKETS_H
34 typedef struct _BracketsMetrics BracketsMetrics;
74 class Brackets:
public LineItem
90 Brackets (Canvas *canvas,
BracketsTypes type,
BracketsUses use,
char const *fontdesc,
double x0,
double y0,
double x1,
double y1);
105 Brackets (Group *parent,
BracketsTypes type,
BracketsUses use,
char const *fontdesc,
double x0,
double y0,
double x1,
double y1, ItemClient *client = NULL);
119 void SetPosition (
double x0,
double y0,
double x1,
double y1);
128 void GetPosition (
double &x0,
double &y0,
double &x1,
double &y1);
138 double Distance (
double x,
double y, Item **item)
const;
145 void Draw (cairo_t *cr,
bool is_vector)
const;
152 void Move (
double x,
double y);
158 void UpdateBounds ();
163 BracketsMetrics
const *m_Metrics;
165 double m_x0, m_y0, m_x1, m_y1;
170 double x, y, w, h, offset;
173 std::list < BracketElem > m_Elems;
218 #endif // GCCV_BRACKETS_H