# synfigapp::Main Class Reference

`#include <main.h>`

List of all members.

## Public Member Functions

| Main (const synfig::String &basepath, synfig::ProgressCallback *cb=0)
| ~Main ()
const etl::reference_counter & | ref_count () const

## Static Public Member Functions

static const synfig::Color & | get_outline_color ()
static const synfig::Color & | get_fill_color ()
static const synfig::Gradient & | get_gradient ()
static const synfig::Distance & | get_bline_width ()
static synfig::Waypoint::Interpolation | get_interpolation ()
static void | set_interpolation (synfig::Waypoint::Interpolation x)
static void | set_bline_width (synfig::Distance x)
static void | set_outline_color (synfig::Color color)
static void | set_fill_color (synfig::Color color)
static void | set_gradient (synfig::Gradient gradient)
static void | set_gradient_default_colors ()
static void | color_swap ()
static synfig::Color::BlendMethod | get_blend_method ()
static const synfig::Real & | get_opacity ()
static void | set_blend_method (synfig::Color::BlendMethod)
static void | set_opacity (synfig::Real)
static sigc::signal< void > & | signal_blend_method_changed ()
static sigc::signal< void > & | signal_opacity_changed ()
static sigc::signal< void > & | signal_interpolation_changed ()
static InputDevice::Handle | add_input_device (const synfig::String id_, InputDevice::Type type_=InputDevice::TYPE_MOUSE)
static InputDevice::Handle | find_input_device (const synfig::String id_)
static InputDevice::Handle | select_input_device (const synfig::String id_)
static bool | select_input_device (InputDevice::Handle input_device)
static InputDevice::Handle | get_selected_input_device ()
static void | set_state (synfig::String state)
static Settings & | settings ()
static sigc::signal< void > & | signal_outline_color_changed ()
static sigc::signal< void > & | signal_fill_color_changed ()
static sigc::signal< void > & | signal_gradient_changed ()
static sigc::signal< void > & | signal_bline_width_changed ()

## Detailed Description

Todo:
  This needs to be documented further.

Todo:
  This needs to be documented further.

## Constructor & Destructor Documentation

synfigapp::Main::Main | ( | const synfig::String & | basepath,
|  | synfig::ProgressCallback * | cb = `0` |
| ) |  |  |

References set_blend_method(), set_bline_width(), set_fill_color(), set_gradient_default_colors(), set_opacity(), set_outline_color(), settings_, signal_blend_method_changed_, signal_fill_color_changed_, signal_gradient_changed_, signal_interpolation_changed_, signal_opacity_changed_, signal_outline_color_changed_, and synfigapp_ref_count_().

synfigapp::Main::~Main | ( |  | ) |

References input_devices_, selected_input_device_, settings_, signal_blend_method_changed_, signal_fill_color_changed_, signal_gradient_changed_, signal_interpolation_changed_, signal_opacity_changed_, signal_outline_color_changed_, and synfigapp_ref_count_().

## Member Function Documentation

const etl::reference_counter& synfigapp::Main::ref_count | ( |  | ) | const`[inline]`

const synfig::Color & synfigapp::Main::get_outline_color | ( |  | ) | `[static]`

References outline_.

Referenced by synfigapp::CanvasInterface::add_layer_to(), and synfigapp::Action::ColorSet::set_param().

const synfig::Color & synfigapp::Main::get_fill_color | ( |  | ) | `[static]`

References fill_.

Referenced by synfigapp::CanvasInterface::add_layer_to(), and synfigapp::Action::ColorSet::set_param().

const synfig::Gradient & synfigapp::Main::get_gradient | ( |  | ) | `[static]`

References gradient_.

Referenced by synfigapp::CanvasInterface::add_layer_to(), and synfigapp::Action::GradientSet::set_param().

const synfig::Distance & synfigapp::Main::get_bline_width | ( |  | ) | `[static]`

References bline_width_.

Referenced by synfigapp::CanvasInterface::add_layer_to().

synfig::Waypoint::Interpolation synfigapp::Main::get_interpolation | ( |  | ) | `[static]`

References interpolation_.

Referenced by synfigapp::Action::ValueDescSet::prepare().

void synfigapp::Main::set_interpolation | ( | synfig::Waypoint::Interpolation | x | ) | `[static]`

References interpolation_, and signal_interpolation_changed().

void synfigapp::Main::set_bline_width | ( | synfig::Distance | x | ) | `[static]`

References bline_width_, selected_input_device_, and signal_bline_width_changed().

Referenced by Main(), and select_input_device().

void synfigapp::Main::set_outline_color | ( | synfig::Color | color | ) | `[static]`

References fill_, gradient_, gradient_default_colors_, outline_, selected_input_device_, signal_gradient_changed(), and signal_outline_color_changed().

Referenced by Main(), and select_input_device().

void synfigapp::Main::set_fill_color | ( | synfig::Color | color | ) | `[static]`

References fill_, gradient_, gradient_default_colors_, outline_, selected_input_device_, signal_fill_color_changed(), and signal_gradient_changed().

Referenced by Main(), and select_input_device().

void synfigapp::Main::set_gradient | ( | synfig::Gradient | gradient | ) | `[static]`

References gradient_, gradient_default_colors_, and signal_gradient_changed().

void synfigapp::Main::set_gradient_default_colors | ( |  | ) | `[static]`

References fill_, gradient_, gradient_default_colors_, outline_, and signal_gradient_changed().

Referenced by Main().

void synfigapp::Main::color_swap | ( |  | ) | `[static]`

References fill_, gradient_, gradient_default_colors_, outline_, selected_input_device_, signal_fill_color_changed(), signal_gradient_changed(), and signal_outline_color_changed().

synfig::Color::BlendMethod synfigapp::Main::get_blend_method | ( |  | ) | `[static]`

References blend_method_.

Referenced by synfigapp::CanvasInterface::add_layer_to().

const synfig::Real & synfigapp::Main::get_opacity | ( |  | ) | `[static]`

References opacity_.

Referenced by synfigapp::CanvasInterface::add_layer_to().

void synfigapp::Main::set_blend_method | ( | synfig::Color::BlendMethod | x | ) | `[static]`

References blend_method_, selected_input_device_, and signal_blend_method_changed().

Referenced by Main(), and select_input_device().

void synfigapp::Main::set_opacity | ( | synfig::Real | x | ) | `[static]`

References opacity_, selected_input_device_, and signal_opacity_changed().

Referenced by Main(), and select_input_device().

sigc::signal< void > & synfigapp::Main::signal_blend_method_changed | ( |  | ) | `[static]`

References signal_blend_method_changed_.

Referenced by set_blend_method(), and studio::Widget_Defaults::Widget_Defaults().

sigc::signal< void > & synfigapp::Main::signal_opacity_changed | ( |  | ) | `[static]`

References signal_opacity_changed_.

Referenced by set_opacity(), and studio::Widget_Defaults::Widget_Defaults().

sigc::signal< void > & synfigapp::Main::signal_interpolation_changed | ( |  | ) | `[static]`

References signal_interpolation_changed_.

Referenced by set_interpolation(), and studio::Widget_Defaults::Widget_Defaults().

InputDevice::Handle synfigapp::Main::add_input_device | ( | const synfig::String | id_,
|  | InputDevice::Type | type_ = `InputDevice::TYPE_MOUSE` |
| ) |  |  | `[static]`

References input_devices_.

Referenced by studio::DeviceTracker::DeviceTracker().

InputDevice::Handle synfigapp::Main::find_input_device | ( | const synfig::String | id_ | ) | `[static]`

References input_devices_.

Referenced by studio::DeviceTracker::load_preferences(), studio::DeviceTracker::save_preferences(), and select_input_device().

InputDevice::Handle synfigapp::Main::select_input_device | ( | const synfig::String | id_ | ) | `[static]`

References find_input_device().

Referenced by studio::DeviceTracker::DeviceTracker().

bool synfigapp::Main::select_input_device | ( | InputDevice::Handle | input_device | ) | `[static]`

References selected_input_device_, set_blend_method(), set_bline_width(), set_fill_color(), set_opacity(), and set_outline_color().

InputDevice::Handle synfigapp::Main::get_selected_input_device | ( |  | ) | `[static]`

References selected_input_device_.

void synfigapp::Main::set_state | ( | synfig::String | state | ) | `[static]`

References selected_input_device_.

Referenced by studio::Toolbox::set_active_state().

Settings & synfigapp::Main::settings | ( |  | ) | `[static]`

References settings_.

Referenced by studio::App::App(), studio::DialogSettings::DialogSettings(), synfigapp::InputDevice::InputDevice(), studio::App::load_settings(), studio::App::reset_initial_window_configuration(), studio::App::save_settings(), studio::App::~App(), studio::DialogSettings::~DialogSettings(), and synfigapp::InputDevice::~InputDevice().

sigc::signal< void > & synfigapp::Main::signal_outline_color_changed | ( |  | ) | `[static]`

References signal_outline_color_changed_.

Referenced by color_swap(), set_outline_color(), and studio::Widget_Defaults::Widget_Defaults().

sigc::signal< void > & synfigapp::Main::signal_fill_color_changed | ( |  | ) | `[static]`

References signal_fill_color_changed_.

Referenced by color_swap(), set_fill_color(), and studio::Widget_Defaults::Widget_Defaults().

sigc::signal< void > & synfigapp::Main::signal_gradient_changed | ( |  | ) | `[static]`

References signal_gradient_changed_.

Referenced by color_swap(), set_fill_color(), set_gradient(), set_gradient_default_colors(), set_outline_color(), and studio::Widget_Defaults::Widget_Defaults().

sigc::signal< void > & synfigapp::Main::signal_bline_width_changed | ( |  | ) | `[static]`

References signal_bline_width_changed_.

Referenced by set_bline_width(), and studio::Widget_Defaults::Widget_Defaults().

The documentation for this class was generated from the following files:

- main.h
- synfigapp/main.cpp