synfig-studio
1.0.3
|
This class provides a device independent representation the state of an input device. More...
#include "synfigapp/inputdevice.h"
Classes | |
struct | DeviceKey |
Public Types | |
enum | Type { TYPE_MOUSE, TYPE_PEN, TYPE_ERASER, TYPE_CURSOR } |
enum | Mode { MODE_DISABLED, MODE_SCREEN, MODE_WINDOW } |
enum | AxisUse { AXIS_IGNORE, AXIS_X, AXIS_Y, AXIS_PRESSURE, AXIS_XTILT, AXIS_YTILT, AXIS_WHEEL, AXIS_LAST } |
typedef etl::handle< InputDevice > | Handle |
Public Member Functions | |
InputDevice (const synfig::String id_, Type type_=TYPE_MOUSE) | |
~InputDevice () | |
const synfig::String & | get_id () const |
const synfig::String & | get_state () const |
const synfig::Color & | get_outline_color () const |
const synfig::Color & | get_fill_color () const |
const synfig::Distance & | get_bline_width () const |
const synfig::Real & | get_opacity () const |
const synfig::Color::BlendMethod & | get_blend_method () const |
Type | get_type () const |
Mode | get_mode () const |
const std::vector< AxisUse > & | get_axes () const |
const std::vector< DeviceKey > & | get_keys () const |
void | set_state (const synfig::String &x) |
void | set_outline_color (const synfig::Color &x) |
void | set_fill_color (const synfig::Color &x) |
void | set_bline_width (const synfig::Distance &x) |
void | set_blend_method (const synfig::Color::BlendMethod &x) |
void | set_opacity (const synfig::Real &x) |
void | set_type (Type x) |
void | set_mode (Mode x) |
void | set_axes (const std::vector< AxisUse > &x) |
void | set_keys (const std::vector< DeviceKey > &x) |
Settings & | settings () |
const Settings & | settings () const |
This class provides a device independent representation the state of an input device.
The represenation includes both the GDK state (e.g., mode) and synfigstudio state (e.g., outline color). An object of this class can be saved and restored using its Settings object, provided by the settings method.
typedef etl::handle<InputDevice> synfigapp::InputDevice::Handle |
InputDevice::InputDevice | ( | const synfig::String | id_, |
Type | type_ = TYPE_MOUSE |
||
) |
References synfigapp::Settings::add_domain(), and settings().
InputDevice::~InputDevice | ( | ) |
References synfigapp::Settings::remove_domain(), and settings().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Settings & InputDevice::settings | ( | ) |
Referenced by InputDevice(), and ~InputDevice().
const Settings & InputDevice::settings | ( | ) | const |