An item on a Canvas.
More...
#include <Item.hpp>
◆ Item()
FlowCanvas::Item::Item |
( |
boost::shared_ptr< Canvas > |
canvas, |
|
|
const std::string & |
name, |
|
|
double |
x, |
|
|
double |
y, |
|
|
uint32_t |
color |
|
) |
| |
◆ ~Item()
virtual FlowCanvas::Item::~Item |
( |
| ) |
|
|
inlinevirtual |
◆ selected()
bool FlowCanvas::Item::selected |
( |
| ) |
const |
|
inline |
◆ set_selected()
virtual void FlowCanvas::Item::set_selected |
( |
bool |
s | ) |
|
|
virtual |
◆ set_minimum_width()
virtual void FlowCanvas::Item::set_minimum_width |
( |
double |
w | ) |
|
|
inlinevirtual |
◆ select_tick()
virtual void FlowCanvas::Item::select_tick |
( |
| ) |
|
|
pure virtual |
◆ move()
virtual void FlowCanvas::Item::move |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
pure virtual |
◆ zoom()
virtual void FlowCanvas::Item::zoom |
( |
double |
z | ) |
|
|
inlinevirtual |
◆ canvas()
boost::weak_ptr< Canvas > FlowCanvas::Item::canvas |
( |
| ) |
const |
|
inline |
◆ popup_menu()
bool FlowCanvas::Item::popup_menu |
( |
guint |
button, |
|
|
guint32 |
activate_time |
|
) |
| |
|
inline |
◆ create_menu()
virtual void FlowCanvas::Item::create_menu |
( |
| ) |
|
|
inlinevirtual |
◆ menu()
Gtk::Menu * FlowCanvas::Item::menu |
( |
| ) |
const |
|
inline |
◆ set_menu()
void FlowCanvas::Item::set_menu |
( |
Gtk::Menu * |
m | ) |
|
|
inline |
◆ width()
double FlowCanvas::Item::width |
( |
| ) |
const |
|
inline |
◆ height()
double FlowCanvas::Item::height |
( |
| ) |
const |
|
inline |
◆ resize()
virtual void FlowCanvas::Item::resize |
( |
| ) |
|
|
pure virtual |
◆ load_location()
virtual void FlowCanvas::Item::load_location |
( |
| ) |
|
|
inlinevirtual |
◆ store_location()
virtual void FlowCanvas::Item::store_location |
( |
| ) |
|
|
inlinevirtual |
◆ is_within()
bool FlowCanvas::Item::is_within |
( |
const Gnome::Canvas::Rect & |
rect | ) |
const |
|
inline |
◆ point_is_within()
bool FlowCanvas::Item::point_is_within |
( |
double |
x, |
|
|
double |
y |
|
) |
| const |
|
inline |
Returns whether or not the point x, y (world units) is within the item.
References _height, and _width.
◆ name()
const std::string & FlowCanvas::Item::name |
( |
| ) |
const |
|
inline |
◆ set_name()
virtual void FlowCanvas::Item::set_name |
( |
const std::string & |
n | ) |
|
|
inlinevirtual |
◆ base_color()
uint32_t FlowCanvas::Item::base_color |
( |
| ) |
const |
|
inline |
◆ set_border_color()
virtual void FlowCanvas::Item::set_border_color |
( |
uint32_t |
c | ) |
|
|
inlinevirtual |
◆ set_base_color()
virtual void FlowCanvas::Item::set_base_color |
( |
uint32_t |
c | ) |
|
|
inlinevirtual |
◆ set_default_base_color()
virtual void FlowCanvas::Item::set_default_base_color |
( |
| ) |
|
|
pure virtual |
◆ set_partner()
void FlowCanvas::Item::set_partner |
( |
boost::shared_ptr< Item > |
partner | ) |
|
|
inline |
Set the partner of this node.
Partner nodes are nodes that should be visually aligned to correspond to each other, even if they are not necessarily connected (e.g. for separate modules representing the inputs and outputs of a single interface). The partner is invisibly connected as if it had an input that is connected to this item, e.g. foo.set_partner(bar) will arrange like: [foo] [bar] with a left-to-right flow direction.
References _partner, and partner().
◆ partner()
boost::weak_ptr< Item > FlowCanvas::Item::partner |
( |
| ) |
|
|
inline |
◆ on_drag()
virtual void FlowCanvas::Item::on_drag |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
protectedvirtual |
◆ on_drop()
virtual void FlowCanvas::Item::on_drop |
( |
| ) |
|
|
protectedvirtual |
◆ on_click()
virtual void FlowCanvas::Item::on_click |
( |
GdkEventButton * |
ev | ) |
|
|
protectedvirtual |
◆ on_double_click()
virtual void FlowCanvas::Item::on_double_click |
( |
GdkEventButton * |
ev | ) |
|
|
protectedvirtual |
◆ set_height()
virtual void FlowCanvas::Item::set_height |
( |
double |
h | ) |
|
|
protectedpure virtual |
◆ set_width()
virtual void FlowCanvas::Item::set_width |
( |
double |
w | ) |
|
|
protectedpure virtual |
◆ on_event()
bool FlowCanvas::Item::on_event |
( |
GdkEvent * |
event | ) |
|
|
protected |
◆ signal_pointer_entered
sigc::signal<void> FlowCanvas::Item::signal_pointer_entered |
◆ signal_pointer_exited
sigc::signal<void> FlowCanvas::Item::signal_pointer_exited |
◆ signal_selected
sigc::signal<void> FlowCanvas::Item::signal_selected |
◆ signal_unselected
sigc::signal<void> FlowCanvas::Item::signal_unselected |
◆ signal_clicked
sigc::signal<void, GdkEventButton*> FlowCanvas::Item::signal_clicked |
◆ signal_double_clicked
sigc::signal<void, GdkEventButton*> FlowCanvas::Item::signal_double_clicked |
◆ signal_dragged
sigc::signal<void, double, double> FlowCanvas::Item::signal_dragged |
◆ signal_dropped
sigc::signal<void, double, double> FlowCanvas::Item::signal_dropped |
◆ _canvas
const boost::weak_ptr<Canvas> FlowCanvas::Item::_canvas |
|
protected |
◆ _partner
boost::weak_ptr<Item> FlowCanvas::Item::_partner |
|
protected |
◆ _menu
Gtk::Menu* FlowCanvas::Item::_menu |
|
protected |
◆ _name
std::string FlowCanvas::Item::_name |
|
protected |
◆ _minimum_width
double FlowCanvas::Item::_minimum_width |
|
protected |
◆ _width
double FlowCanvas::Item::_width |
|
protected |
◆ _height
double FlowCanvas::Item::_height |
|
protected |
◆ _border_color
uint32_t FlowCanvas::Item::_border_color |
|
protected |
◆ _color
uint32_t FlowCanvas::Item::_color |
|
protected |
◆ _selected
bool FlowCanvas::Item::_selected |
|
protected |
The documentation for this class was generated from the following file: