FlowCanvas
0.7.1
|
#include <Port.hpp>
Classes | |
struct | Control |
Port control value indicator "gauge". More... |
Public Member Functions | |
Port (boost::shared_ptr< Module > module, const std::string &name, bool is_input, uint32_t color) | |
virtual | ~Port () |
void | disconnect_all () |
virtual Gnome::Art::Point | src_connection_point () |
virtual Gnome::Art::Point | dst_connection_point (const Gnome::Art::Point &src) |
virtual Gnome::Art::Point | connection_point_vector (double dx, double dy) |
boost::weak_ptr< Module > | module () const |
void | set_fill_color (uint32_t c) |
void | show_label (bool b) |
void | set_selected (bool b) |
bool | selected () const |
void | set_highlighted (bool highlight, bool highlight_parent=true, bool highlight_connections=true, bool raise_connections=true) |
void | zoom (float z) |
void | popup_menu (guint button, guint32 activate_time) |
virtual void | create_menu () |
void | set_menu (Gtk::Menu *m) |
Gtk::Menu * | menu () const |
double | width () const |
void | set_width (double w) |
void | set_height (double h) |
double | border_width () const |
void | set_border_width (double w) |
double | natural_width () const |
const std::string & | name () const |
virtual void | set_name (const std::string &n) |
bool | is_input () const |
bool | is_output () const |
uint32_t | color () const |
double | height () const |
virtual bool | is_toggled () const |
virtual void | set_toggled (bool b) |
virtual void | toggle (bool signal=true) |
virtual void | set_control (float value, bool signal=true) |
virtual void | set_control_min (float min) |
virtual void | set_control_max (float max) |
float | control_value () const |
float | control_min () const |
float | control_max () const |
void | show_control () |
void | hide_control () |
bool | operator== (const std::string &name) |
![]() | |
virtual | ~Connectable () |
virtual void | add_connection (boost::shared_ptr< Connection > c) |
virtual void | remove_connection (boost::shared_ptr< Connection > c) |
virtual void | move_connections () |
virtual void | raise_connections () |
bool | is_connected_to (boost::shared_ptr< Connectable > other) |
Connections & | connections () |
Public Attributes | |
sigc::signal< void > | signal_renamed |
sigc::signal< void, float > | signal_control_changed |
Protected Member Functions | |
void | on_menu_hide () |
Protected Attributes | |
boost::weak_ptr< Module > | _module |
std::string | _name |
Gnome::Canvas::Text * | _label |
Gnome::Canvas::Rect * | _rect |
Gtk::Menu * | _menu |
Control * | _control |
double | _width |
double | _height |
double | _border_width |
uint32_t | _color |
bool | _is_input:1 |
bool | _selected:1 |
bool | _toggled:1 |
![]() | |
Connections | _connections |
needed for dragging |
Friends | |
class | Canvas |
Additional Inherited Members | |
![]() | |
typedef std::list < boost::weak_ptr< Connection > > | Connections |
A port on a Module.
This is a group that contains both the label and rectangle for a port.
FlowCanvas::Port::Port | ( | boost::shared_ptr< Module > | module, |
const std::string & | name, | ||
bool | is_input, | ||
uint32_t | color | ||
) |
|
virtual |
void FlowCanvas::Port::disconnect_all | ( | ) |
|
virtual |
Implements FlowCanvas::Connectable.
|
virtual |
Implements FlowCanvas::Connectable.
|
virtual |
Implements FlowCanvas::Connectable.
|
inline |
References _rect.
void FlowCanvas::Port::show_label | ( | bool | b | ) |
void FlowCanvas::Port::set_selected | ( | bool | b | ) |
|
inline |
References _selected.
void FlowCanvas::Port::set_highlighted | ( | bool | highlight, |
bool | highlight_parent = true , |
||
bool | highlight_connections = true , |
||
bool | raise_connections = true |
||
) |
void FlowCanvas::Port::zoom | ( | float | z | ) |
|
inline |
References _menu, and create_menu().
|
virtual |
Referenced by popup_menu().
void FlowCanvas::Port::set_menu | ( | Gtk::Menu * | m | ) |
|
inline |
References _menu.
|
inline |
References _width.
void FlowCanvas::Port::set_width | ( | double | w | ) |
void FlowCanvas::Port::set_height | ( | double | h | ) |
|
inline |
References _border_width.
void FlowCanvas::Port::set_border_width | ( | double | w | ) |
double FlowCanvas::Port::natural_width | ( | ) | const |
|
inline |
References _name.
|
virtual |
|
inline |
References _is_input.
|
inline |
References _is_input.
|
inline |
References _color.
|
inline |
References _height.
|
inlinevirtual |
References _toggled.
|
inlinevirtual |
References _toggled.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
References _control, and FlowCanvas::Port::Control::value.
|
inline |
References _control, and FlowCanvas::Port::Control::min.
|
inline |
References _control, and FlowCanvas::Port::Control::max.
void FlowCanvas::Port::show_control | ( | ) |
void FlowCanvas::Port::hide_control | ( | ) |
|
inline |
References _name.
|
protected |
|
friend |
sigc::signal<void> FlowCanvas::Port::signal_renamed |
sigc::signal<void,float> FlowCanvas::Port::signal_control_changed |
|
protected |
Referenced by name(), and operator==().
|
protected |
|
protected |
Referenced by set_fill_color().
|
protected |
Referenced by menu(), and popup_menu().
|
protected |
Referenced by control_max(), control_min(), and control_value().
|
protected |
Referenced by width().
|
protected |
Referenced by height().
|
protected |
Referenced by border_width().
|
protected |
Referenced by color().
|
protected |
Referenced by is_input(), and is_output().
|
protected |
Referenced by selected().
|
protected |
Referenced by is_toggled(), and set_toggled().