1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: inputdevice.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_INPUTDEVICE_H
25 #define __SINFG_INPUTDEVICE_H
27 /* === H E A D E R S ======================================================= */
29 #include <sinfg/color.h>
30 #include <sinfg/vector.h>
31 #include <sinfg/distance.h>
32 #include <sinfg/string.h>
35 /* === M A C R O S ========================================================= */
37 /* === T Y P E D E F S ===================================================== */
39 /* === C L A S S E S & S T R U C T S ======================================= */
47 class InputDevice : public etl::shared_object
58 typedef etl::handle<InputDevice> Handle;
64 sinfg::Color foreground_color_;
65 sinfg::Color background_color_;
66 sinfg::Distance bline_width_;
68 sinfg::Color::BlendMethod blend_method_;
70 DeviceSettings* device_settings;
73 InputDevice(const sinfg::String id_, Type type_=TYPE_MOUSE);
76 const sinfg::String& get_id()const { return id_; }
77 const sinfg::String& get_state()const { return state_; }
78 const sinfg::Color& get_foreground_color()const { return foreground_color_; }
79 const sinfg::Color& get_background_color()const { return background_color_; }
80 const sinfg::Distance& get_bline_width()const { return bline_width_; }
81 const sinfg::Real& get_opacity()const { return opacity_; }
82 const sinfg::Color::BlendMethod& get_blend_method()const { return blend_method_; }
83 Type get_type()const { return type_; }
85 void set_state(const sinfg::String& x) { state_=x; }
86 void set_foreground_color(const sinfg::Color& x) { foreground_color_=x; }
87 void set_background_color(const sinfg::Color& x) { background_color_=x; }
88 void set_bline_width(const sinfg::Distance& x) { bline_width_=x; }
89 void set_blend_method(const sinfg::Color::BlendMethod& x) { blend_method_=x; }
90 void set_opacity(const sinfg::Real& x) { opacity_=x; }
91 void set_type(Type x) { type_=x; }
94 const Settings& settings()const;
95 }; // END of class InputDevice
97 }; // END of namespace sinfgapp
99 /* === E N D =============================================================== */