A port on a Module.
More...
#include <Port.hpp>
List of all members.
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) |
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 |
Friends |
class | Canvas |
Detailed Description
A port on a Module.
This is a group that contains both the label and rectangle for a port.
Constructor & Destructor Documentation
FlowCanvas::Port::Port |
( |
boost::shared_ptr< Module > |
module, |
|
|
const std::string & |
name, |
|
|
bool |
is_input, |
|
|
uint32_t |
color | |
|
) |
| | |
virtual FlowCanvas::Port::~Port |
( |
|
) |
[virtual] |
Member Function Documentation
void FlowCanvas::Port::disconnect_all |
( |
|
) |
|
virtual Gnome::Art::Point FlowCanvas::Port::src_connection_point |
( |
|
) |
[virtual] |
virtual Gnome::Art::Point FlowCanvas::Port::dst_connection_point |
( |
const Gnome::Art::Point & |
src |
) |
[virtual] |
virtual Gnome::Art::Point FlowCanvas::Port::connection_point_vector |
( |
double |
dx, |
|
|
double |
dy | |
|
) |
| | [virtual] |
boost::weak_ptr<Module> FlowCanvas::Port::module |
( |
|
) |
const [inline] |
void FlowCanvas::Port::set_fill_color |
( |
uint32_t |
c |
) |
[inline] |
void FlowCanvas::Port::show_label |
( |
bool |
b |
) |
|
void FlowCanvas::Port::set_selected |
( |
bool |
b |
) |
|
bool FlowCanvas::Port::selected |
( |
|
) |
const [inline] |
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 |
) |
|
void FlowCanvas::Port::popup_menu |
( |
guint |
button, |
|
|
guint32 |
activate_time | |
|
) |
| | [inline] |
virtual void FlowCanvas::Port::create_menu |
( |
|
) |
[virtual] |
void FlowCanvas::Port::set_menu |
( |
Gtk::Menu * |
m |
) |
|
Gtk::Menu* FlowCanvas::Port::menu |
( |
|
) |
const [inline] |
double FlowCanvas::Port::width |
( |
|
) |
const [inline] |
void FlowCanvas::Port::set_width |
( |
double |
w |
) |
|
void FlowCanvas::Port::set_height |
( |
double |
h |
) |
|
double FlowCanvas::Port::border_width |
( |
|
) |
const [inline] |
void FlowCanvas::Port::set_border_width |
( |
double |
w |
) |
|
double FlowCanvas::Port::natural_width |
( |
|
) |
const |
const std::string& FlowCanvas::Port::name |
( |
|
) |
const [inline] |
virtual void FlowCanvas::Port::set_name |
( |
const std::string & |
n |
) |
[virtual] |
bool FlowCanvas::Port::is_input |
( |
|
) |
const [inline] |
bool FlowCanvas::Port::is_output |
( |
|
) |
const [inline] |
uint32_t FlowCanvas::Port::color |
( |
|
) |
const [inline] |
double FlowCanvas::Port::height |
( |
|
) |
const [inline] |
virtual bool FlowCanvas::Port::is_toggled |
( |
|
) |
const [inline, virtual] |
virtual void FlowCanvas::Port::set_toggled |
( |
bool |
b |
) |
[inline, virtual] |
virtual void FlowCanvas::Port::toggle |
( |
bool |
signal = true |
) |
[virtual] |
virtual void FlowCanvas::Port::set_control |
( |
float |
value, |
|
|
bool |
signal = true | |
|
) |
| | [virtual] |
virtual void FlowCanvas::Port::set_control_min |
( |
float |
min |
) |
[virtual] |
virtual void FlowCanvas::Port::set_control_max |
( |
float |
max |
) |
[virtual] |
float FlowCanvas::Port::control_value |
( |
|
) |
const [inline] |
float FlowCanvas::Port::control_min |
( |
|
) |
const [inline] |
float FlowCanvas::Port::control_max |
( |
|
) |
const [inline] |
void FlowCanvas::Port::show_control |
( |
|
) |
|
void FlowCanvas::Port::hide_control |
( |
|
) |
|
bool FlowCanvas::Port::operator== |
( |
const std::string & |
name |
) |
[inline] |
void FlowCanvas::Port::on_menu_hide |
( |
|
) |
[protected] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: