sp-ctrlpoint.h revision 0dc33d4ce43e0bb49c63aa53b826ec4a1ff68e28
273e421813f295d65aab512f508e8fb575d997d4gouldtj#ifndef SEEN_INKSCAPE_CTRLPOINT_H
273e421813f295d65aab512f508e8fb575d997d4gouldtj#define SEEN_INKSCAPE_CTRLPOINT_H
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj/*
273e421813f295d65aab512f508e8fb575d997d4gouldtj * A simple point
273e421813f295d65aab512f508e8fb575d997d4gouldtj *
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Author:
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Maximilian Albert <maximilian.albert@gmail.com>
273e421813f295d65aab512f508e8fb575d997d4gouldtj *
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Copyright (C) 2008 Maximilian Albert
273e421813f295d65aab512f508e8fb575d997d4gouldtj *
273e421813f295d65aab512f508e8fb575d997d4gouldtj * Released under GNU GPL
5cf507fca7719ae9280d0a5199e024e920f1284dAlex Valavanis */
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj#include "sp-canvas-item.h"
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtjstruct SPItem;
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj#define SP_TYPE_CTRLPOINT (sp_ctrlpoint_get_type ())
273e421813f295d65aab512f508e8fb575d997d4gouldtj#define SP_CTRLPOINT(obj) (GTK_CHECK_CAST ((obj), SP_TYPE_CTRLPOINT, SPCtrlPoint))
273e421813f295d65aab512f508e8fb575d997d4gouldtj#define SP_IS_CTRLPOINT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_CTRLPOINT))
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtjstruct SPCtrlPoint : public SPCanvasItem {
273e421813f295d65aab512f508e8fb575d997d4gouldtj SPItem *item; // the item to which this line belongs in some sense; may be NULL for some users
273e421813f295d65aab512f508e8fb575d997d4gouldtj guint32 rgba;
d943d8b358a77366a24b32d226a8fd9ea716f4fcKris Geom::Point pt;
273e421813f295d65aab512f508e8fb575d997d4gouldtj Geom::Matrix affine;
273e421813f295d65aab512f508e8fb575d997d4gouldtj double radius;
273e421813f295d65aab512f508e8fb575d997d4gouldtj};
273e421813f295d65aab512f508e8fb575d997d4gouldtjstruct SPCtrlPointClass : public SPCanvasItemClass{};
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtjGType sp_ctrlpoint_get_type (void);
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtjvoid sp_ctrlpoint_set_color (SPCtrlPoint *cp, guint32 rgba);
e4a9f366dbcb54f76b8c42869fa6873808132357gouldtjvoid sp_ctrlpoint_set_coords (SPCtrlPoint *cp, const gdouble x, const gdouble y);
273e421813f295d65aab512f508e8fb575d997d4gouldtjvoid sp_ctrlpoint_set_coords (SPCtrlPoint *cp, const Geom::Point pt);
273e421813f295d65aab512f508e8fb575d997d4gouldtjvoid sp_ctrlpoint_set_radius (SPCtrlPoint *cp, const double r);
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj
273e421813f295d65aab512f508e8fb575d997d4gouldtj#endif // SEEN_INKSCAPE_CTRLPOINT_H
273e421813f295d65aab512f508e8fb575d997d4gouldtj
23f5c868ef859f55e8e9be34afe046fc520b689dKris/*
273e421813f295d65aab512f508e8fb575d997d4gouldtj Local Variables:
273e421813f295d65aab512f508e8fb575d997d4gouldtj mode:c++
273e421813f295d65aab512f508e8fb575d997d4gouldtj c-file-style:"stroustrup"
273e421813f295d65aab512f508e8fb575d997d4gouldtj c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
273e421813f295d65aab512f508e8fb575d997d4gouldtj indent-tabs-mode:nil
273e421813f295d65aab512f508e8fb575d997d4gouldtj fill-column:99
273e421813f295d65aab512f508e8fb575d997d4gouldtj End:
273e421813f295d65aab512f508e8fb575d997d4gouldtj*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :