canvas-text.h revision 3e15faea699bc1ec29394492d7fc2f2de946daf1
#ifndef SEEN_SP_CANVASTEXT_H
#define SEEN_SP_CANVASTEXT_H
/*
* Canvas text.
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Maximilian Albert <maximilian.albert@gmail.com>
*
* Copyright (C) 2000-2002 Lauris Kaplinski
* Copyright (C) 2008 Maximilian Albert
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-canvas-item.h"
#define SP_TYPE_CANVASTEXT (sp_canvastext_get_type ())
enum CanvasTextAnchorPositionEnum {
};
bool outline;
bool background;
double border;
SPDesktop *desktop; // the desktop to which this text is attached; needed for coordinate transforms (TODO: these should be eliminated)
Geom::Point s; // Is the coordinate of the anchor, which is related to the rectangle filled with the background color
CanvasTextAnchorPositionEnum anchor_position; // The anchor position specifies where the anchor is with respect to the rectangle filled with the background color
double fontsize;
double anchor_offset_x;
double anchor_offset_y;
};
GType sp_canvastext_get_type (void);
SPCanvasItem *sp_canvastext_new(SPCanvasGroup *parent, SPDesktop *desktop, Geom::Point pos, gchar const *text);
#endif // SEEN_SP_CANVASTEXT_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :