An item on a Canvas.
More...
#include <Item.hpp>
List of all members.
Detailed Description
Constructor & Destructor Documentation
FlowCanvas::Item::Item |
( |
boost::shared_ptr< Canvas > |
canvas, |
|
|
const std::string & |
name, |
|
|
double |
x, |
|
|
double |
y, |
|
|
uint32_t |
color |
|
) |
| |
virtual FlowCanvas::Item::~Item |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
bool FlowCanvas::Item::selected |
( |
| ) |
const |
|
inline |
virtual void FlowCanvas::Item::set_selected |
( |
bool |
s | ) |
|
|
virtual |
virtual void FlowCanvas::Item::set_minimum_width |
( |
double |
w | ) |
|
|
inlinevirtual |
virtual void FlowCanvas::Item::select_tick |
( |
| ) |
|
|
pure virtual |
virtual void FlowCanvas::Item::move |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
pure virtual |
virtual void FlowCanvas::Item::zoom |
( |
double |
z | ) |
|
|
inlinevirtual |
boost::weak_ptr<Canvas> FlowCanvas::Item::canvas |
( |
| ) |
const |
|
inline |
bool FlowCanvas::Item::popup_menu |
( |
guint |
button, |
|
|
guint32 |
activate_time |
|
) |
| |
|
inline |
virtual void FlowCanvas::Item::create_menu |
( |
| ) |
|
|
inlinevirtual |
Gtk::Menu* FlowCanvas::Item::menu |
( |
| ) |
const |
|
inline |
void FlowCanvas::Item::set_menu |
( |
Gtk::Menu * |
m | ) |
|
|
inline |
double FlowCanvas::Item::width |
( |
| ) |
const |
|
inline |
double FlowCanvas::Item::height |
( |
| ) |
const |
|
inline |
virtual void FlowCanvas::Item::resize |
( |
| ) |
|
|
pure virtual |
virtual void FlowCanvas::Item::load_location |
( |
| ) |
|
|
inlinevirtual |
virtual void FlowCanvas::Item::store_location |
( |
| ) |
|
|
inlinevirtual |
bool FlowCanvas::Item::is_within |
( |
const Gnome::Canvas::Rect & |
rect | ) |
const |
|
inline |
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.
const std::string& FlowCanvas::Item::name |
( |
| ) |
const |
|
inline |
virtual void FlowCanvas::Item::set_name |
( |
const std::string & |
n | ) |
|
|
inlinevirtual |
uint32_t FlowCanvas::Item::base_color |
( |
| ) |
const |
|
inline |
virtual void FlowCanvas::Item::set_border_color |
( |
uint32_t |
c | ) |
|
|
inlinevirtual |
virtual void FlowCanvas::Item::set_base_color |
( |
uint32_t |
c | ) |
|
|
inlinevirtual |
virtual void FlowCanvas::Item::set_default_base_color |
( |
| ) |
|
|
pure virtual |
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().
boost::weak_ptr<Item> FlowCanvas::Item::partner |
( |
| ) |
|
|
inline |
virtual void FlowCanvas::Item::on_drag |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
protectedvirtual |
virtual void FlowCanvas::Item::on_drop |
( |
| ) |
|
|
protectedvirtual |
virtual void FlowCanvas::Item::on_click |
( |
GdkEventButton * |
ev | ) |
|
|
protectedvirtual |
virtual void FlowCanvas::Item::on_double_click |
( |
GdkEventButton * |
ev | ) |
|
|
protectedvirtual |
virtual void FlowCanvas::Item::set_height |
( |
double |
h | ) |
|
|
protectedpure virtual |
virtual void FlowCanvas::Item::set_width |
( |
double |
w | ) |
|
|
protectedpure virtual |
bool FlowCanvas::Item::on_event |
( |
GdkEvent * |
event | ) |
|
|
protected |
Member Data Documentation
sigc::signal<void> FlowCanvas::Item::signal_pointer_entered |
sigc::signal<void> FlowCanvas::Item::signal_pointer_exited |
sigc::signal<void> FlowCanvas::Item::signal_selected |
sigc::signal<void> FlowCanvas::Item::signal_unselected |
sigc::signal<void, GdkEventButton*> FlowCanvas::Item::signal_clicked |
sigc::signal<void, GdkEventButton*> FlowCanvas::Item::signal_double_clicked |
sigc::signal<void, double, double> FlowCanvas::Item::signal_dragged |
sigc::signal<void, double, double> FlowCanvas::Item::signal_dropped |
const boost::weak_ptr<Canvas> FlowCanvas::Item::_canvas |
|
protected |
boost::weak_ptr<Item> FlowCanvas::Item::_partner |
|
protected |
Gtk::Menu* FlowCanvas::Item::_menu |
|
protected |
std::string FlowCanvas::Item::_name |
|
protected |
double FlowCanvas::Item::_minimum_width |
|
protected |
double FlowCanvas::Item::_width |
|
protected |
double FlowCanvas::Item::_height |
|
protected |
uint32_t FlowCanvas::Item::_border_color |
|
protected |
uint32_t FlowCanvas::Item::_color |
|
protected |
bool FlowCanvas::Item::_selected |
|
protected |
The documentation for this class was generated from the following file: