guideline.h revision c88c5ccca9c4bd0d5ef52d6d09598ae9b54231c0
#ifndef __SP_GUIDELINE_H__
#define __SP_GUIDELINE_H__
/*
* The visual representation of SPGuide.
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Johan Engelen
*
* Copyright (C) 2000-2002 Lauris Kaplinski
* Copyright (C) 2007 Johan Engelen
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-canvas.h"
#include <2geom/point.h>
#define SP_TYPE_GUIDELINE (sp_guideline_get_type())
#define SP_GUIDELINE(o) (GTK_CHECK_CAST((o), SP_TYPE_GUIDELINE, SPGuideLine))
#define SP_IS_GUIDELINE(o) (GTK_CHECK_TYPE((o), SP_TYPE_GUIDELINE))
struct SPGuideLine {
SPCanvasItem item;
guint32 rgba;
int position;
Geom::Point normal;
unsigned int sensitive : 1;
};
struct SPGuideLineClass {
SPCanvasItemClass parent_class;
};
GType sp_guideline_get_type();
SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, double position, Geom::Point normal);
void sp_guideline_set_position(SPGuideLine *gl, double position);
void sp_guideline_set_color(SPGuideLine *gl, unsigned int rgba);
void sp_guideline_set_sensitive(SPGuideLine *gl, int sensitive);
#endif
/*
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 :