1 /* === S I N F G =========================================================== */
2 /*! \file state_stroke.h
3 ** \brief Template Header
5 ** $Id: state_stroke.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_STUDIO_STATE_STROKE_H
25 #define __SINFG_STUDIO_STATE_STROKE_H
27 /* === H E A D E R S ======================================================= */
29 #include "canvasview.h"
31 #include <sigc++/object.h>
32 #include "duckmatic.h"
33 #include <sinfg/blinepoint.h>
35 #include <ETL/smart_ptr>
37 #include <gdkmm/types.h>
39 /* === M A C R O S ========================================================= */
41 /* === T Y P E D E F S ===================================================== */
43 /* === C L A S S E S & S T R U C T S ======================================= */
47 class StateStroke_Context;
49 class StateStroke : public Smach::state<StateStroke_Context>
54 }; // END of class StateStroke
56 extern StateStroke state_stroke;
58 struct EventStroke : public Smach::event
60 etl::smart_ptr<std::list<sinfg::Point> > stroke_data;
61 etl::smart_ptr<std::list<sinfg::Real> > width_data;
62 Gdk::ModifierType modifier;
64 EventStroke(etl::smart_ptr<std::list<sinfg::Point> > stroke_data,
65 etl::smart_ptr<std::list<sinfg::Real> > width_data,
66 Gdk::ModifierType modifier=Gdk::ModifierType(0)
68 Smach::event(EVENT_WORKAREA_STROKE),
69 stroke_data(stroke_data),
70 width_data(width_data),
73 }; // END of EventStroke
75 }; // END of namespace studio
77 /* === E N D =============================================================== */