#include <strokewidget.h>
Public Member Functions | |
StrokeWidget (bool use_preview=true) | |
~StrokeWidget () | |
Papyrus::Stroke::pointer | stroke () const |
bool | use_preview () |
void | set_use_preview (bool use=true) |
Protected Member Functions | |
void | on_color_changed () |
void | on_width_changed () |
void | on_line_join_changed (Cairo::LineJoin) |
void | on_line_cap_changed (Cairo::LineCap) |
Protected Attributes | |
::Gtk::Expander * | m_expander |
Papyrus::Gtk::Viewport * | m_viewport |
Papyrus::Polyline::pointer | m_line |
::Gtk::ColorButton | m_color_button |
::Gtk::Adjustment | m_width_adjustment |
::Gtk::SpinButton | m_width_entry |
::Gtk::Adjustment | m_miter_limit_adjustment |
::Gtk::SpinButton | m_miter_limit_entry |
Papyrus::Gtk::LineJoinButtonBox | m_line_join_buttonbox |
Papyrus::Gtk::LineCapButtonBox | m_line_cap_buttonbox |
Papyrus::Stroke::pointer | m_stroke |
Papyrus::Gtk::StrokeWidget::StrokeWidget | ( | bool | use_preview = true |
) |
References m_color_button, m_line_cap_buttonbox, m_line_join_buttonbox, m_width_entry, on_color_changed(), on_line_cap_changed(), on_line_join_changed(), on_width_changed(), Papyrus::Gtk::LineJoinButtonBox::set_size(), set_use_preview(), Papyrus::Gtk::LineCapButtonBox::signal_selected(), Papyrus::Gtk::LineJoinButtonBox::signal_selected(), and Papyrus::Gtk::SIZE_SMALL.
Papyrus::Gtk::StrokeWidget::~StrokeWidget | ( | ) |
void Papyrus::Gtk::StrokeWidget::on_color_changed | ( | ) | [protected] |
References m_color_button, and m_stroke.
Referenced by StrokeWidget().
void Papyrus::Gtk::StrokeWidget::on_line_cap_changed | ( | Cairo::LineCap | cap | ) | [protected] |
References m_stroke.
Referenced by StrokeWidget().
void Papyrus::Gtk::StrokeWidget::on_line_join_changed | ( | Cairo::LineJoin | join | ) | [protected] |
References m_stroke.
Referenced by StrokeWidget().
void Papyrus::Gtk::StrokeWidget::on_width_changed | ( | ) | [protected] |
References m_stroke, and m_width_entry.
Referenced by StrokeWidget().
void Papyrus::Gtk::StrokeWidget::set_use_preview | ( | bool | use = true |
) |
References Papyrus::Gtk::Viewport::canvas(), Papyrus::Polyline::create(), m_expander, m_line, m_stroke, and m_viewport.
Referenced by StrokeWidget().
Stroke::pointer Papyrus::Gtk::StrokeWidget::stroke | ( | ) | const |
References m_stroke.
Referenced by Papyrus::Gtk::StrokeDialog::stroke().
bool Papyrus::Gtk::StrokeWidget::use_preview | ( | ) |
References m_expander.
::Gtk::ColorButton Papyrus::Gtk::StrokeWidget::m_color_button [protected] |
Referenced by on_color_changed(), and StrokeWidget().
::Gtk::Expander* Papyrus::Gtk::StrokeWidget::m_expander [protected] |
Referenced by set_use_preview(), and use_preview().
Referenced by set_use_preview().
Referenced by StrokeWidget().
Referenced by StrokeWidget().
::Gtk::Adjustment Papyrus::Gtk::StrokeWidget::m_miter_limit_adjustment [protected] |
::Gtk::SpinButton Papyrus::Gtk::StrokeWidget::m_miter_limit_entry [protected] |
Referenced by on_color_changed(), on_line_cap_changed(), on_line_join_changed(), on_width_changed(), set_use_preview(), and stroke().
Referenced by set_use_preview().
::Gtk::Adjustment Papyrus::Gtk::StrokeWidget::m_width_adjustment [protected] |
::Gtk::SpinButton Papyrus::Gtk::StrokeWidget::m_width_entry [protected] |
Referenced by on_width_changed(), and StrokeWidget().