#include <gradientstopwidget.h>
Public Member Functions | |
GradientStopWidget (unsigned num_stops=1, bool show_header=false, bool show_stop_num=false) | |
~GradientStopWidget () | |
unsigned | num_stops () |
void | set_num_stops (unsigned num_stops) |
void | show_header (bool show=false) |
void | show_stop_num (bool show=false) |
sigc::signal< void > | signal_stops_changed () |
Gradient::Stops | stops () |
Protected Member Functions | |
void | on_color_changed (int which) |
void | on_offset_changed (int which) |
void | on_alpha_changed (int which) |
Protected Attributes | |
unsigned | m_num_stops |
bool | m_show_header |
bool | m_show_stop_num |
sigc::signal< void > | m_signal_stops_changed |
std::vector< ::Gtk::Label * > | m_headers |
std::vector< ::Gtk::Label * > | m_stop_nums |
std::vector< ::Gtk::ColorButton * > | m_colorbuttons |
std::vector< ::Gtk::SpinButton * > | m_offsets |
std::vector< ::Gtk::SpinButton * > | m_alphas |
Gradient::Stops | m_stops |
Papyrus::Gtk::GradientStopWidget::GradientStopWidget | ( | unsigned | num_stops = 1 , |
|
bool | show_header = false , |
|||
bool | show_stop_num = false | |||
) |
References m_headers, set_num_stops(), and show_header().
Papyrus::Gtk::GradientStopWidget::~GradientStopWidget | ( | ) |
unsigned Papyrus::Gtk::GradientStopWidget::num_stops | ( | ) |
References m_num_stops.
void Papyrus::Gtk::GradientStopWidget::on_alpha_changed | ( | int | which | ) | [protected] |
References m_signal_stops_changed.
void Papyrus::Gtk::GradientStopWidget::on_color_changed | ( | int | which | ) | [protected] |
References m_signal_stops_changed.
void Papyrus::Gtk::GradientStopWidget::on_offset_changed | ( | int | which | ) | [protected] |
References m_signal_stops_changed.
void Papyrus::Gtk::GradientStopWidget::set_num_stops | ( | unsigned | num_stops | ) |
References m_colorbuttons, m_num_stops, m_offsets, m_show_stop_num, m_signal_stops_changed, m_stop_nums, and m_stops.
Referenced by GradientStopWidget().
void Papyrus::Gtk::GradientStopWidget::show_header | ( | bool | show = false |
) |
References m_headers, and m_show_header.
Referenced by GradientStopWidget().
void Papyrus::Gtk::GradientStopWidget::show_stop_num | ( | bool | show = false |
) |
References m_show_stop_num, and m_stop_nums.
sigc::signal< void > Papyrus::Gtk::GradientStopWidget::signal_stops_changed | ( | ) |
References m_signal_stops_changed.
Gradient::Stops Papyrus::Gtk::GradientStopWidget::stops | ( | ) |
std::vector< ::Gtk::SpinButton* > Papyrus::Gtk::GradientStopWidget::m_alphas [protected] |
std::vector< ::Gtk::ColorButton* > Papyrus::Gtk::GradientStopWidget::m_colorbuttons [protected] |
Referenced by set_num_stops().
std::vector< ::Gtk::Label* > Papyrus::Gtk::GradientStopWidget::m_headers [protected] |
Referenced by GradientStopWidget(), and show_header().
unsigned Papyrus::Gtk::GradientStopWidget::m_num_stops [protected] |
Referenced by num_stops(), and set_num_stops().
std::vector< ::Gtk::SpinButton* > Papyrus::Gtk::GradientStopWidget::m_offsets [protected] |
Referenced by set_num_stops().
bool Papyrus::Gtk::GradientStopWidget::m_show_header [protected] |
Referenced by show_header().
bool Papyrus::Gtk::GradientStopWidget::m_show_stop_num [protected] |
Referenced by set_num_stops(), and show_stop_num().
sigc::signal<void> Papyrus::Gtk::GradientStopWidget::m_signal_stops_changed [protected] |
Referenced by on_alpha_changed(), on_color_changed(), on_offset_changed(), set_num_stops(), and signal_stops_changed().
std::vector< ::Gtk::Label* > Papyrus::Gtk::GradientStopWidget::m_stop_nums [protected] |
Referenced by set_num_stops(), and show_stop_num().
Referenced by set_num_stops().