|
FlowCanvas 0.7.1
|
A connection (line) between two canvas objects. More...
#include <Connection.hpp>


Classes | |
| struct | Handle |
| A handle on a connection line to allow mouse interaction. More... | |
Public Types | |
| enum | HandleStyle { HANDLE_NONE , HANDLE_RECT , HANDLE_CIRCLE } |
Public Member Functions | |
| Connection (boost::shared_ptr< Canvas > canvas, boost::shared_ptr< Connectable > source, boost::shared_ptr< Connectable > dest, uint32_t color, bool show_arrow_head=false) | |
| virtual | ~Connection () |
| virtual void | move (double, double) |
| virtual void | zoom (double z) |
| bool | selected () const |
| void | set_selected (bool b) |
| virtual double | length_hint () const |
| void | set_label (const std::string &str) |
| void | show_handle (bool show) |
| void | set_color (uint32_t color) |
| void | set_highlighted (bool b) |
| void | raise_to_top () |
| void | select_tick () |
| const boost::weak_ptr< Connectable > | source () const |
| const boost::weak_ptr< Connectable > | dest () const |
| void | set_handle_style (HandleStyle s) |
Protected Member Functions | |
| void | update_location () |
Protected Attributes | |
| const boost::weak_ptr< Canvas > | _canvas |
| const boost::weak_ptr< Connectable > | _source |
| const boost::weak_ptr< Connectable > | _dest |
| Gnome::Canvas::Bpath | _bpath |
| GnomeCanvasPathDef * | _path |
| FlowCanvas::Connection::Handle * | _handle |
| uint32_t | _color |
| HandleStyle | _handle_style |
| bool | _selected:1 |
| bool | _show_arrowhead:1 |
Friends | |
| class | Canvas |
| class | Connectable |
A connection (line) between two canvas objects.
| FlowCanvas::Connection::Connection | ( | boost::shared_ptr< Canvas > | canvas, |
| boost::shared_ptr< Connectable > | source, | ||
| boost::shared_ptr< Connectable > | dest, | ||
| uint32_t | color, | ||
| bool | show_arrow_head = false ) |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inline |
References _selected.
| void FlowCanvas::Connection::set_selected | ( | bool | b | ) |
|
inlinevirtual |
| void FlowCanvas::Connection::set_label | ( | const std::string & | str | ) |
| void FlowCanvas::Connection::show_handle | ( | bool | show | ) |
| void FlowCanvas::Connection::set_color | ( | uint32_t | color | ) |
| void FlowCanvas::Connection::set_highlighted | ( | bool | b | ) |
| void FlowCanvas::Connection::raise_to_top | ( | ) |
| void FlowCanvas::Connection::select_tick | ( | ) |
|
inline |
References _source.
|
inline |
References _dest.
|
inline |
References _handle_style.
|
protected |
|
friend |
|
friend |
|
protected |
|
protected |
Referenced by source().
|
protected |
Referenced by dest().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by set_handle_style().
|
protected |
Referenced by selected().
|
protected |