|
Minsky: 3.17.0
|
represents rectangular region of a lasso operation More...
#include <lasso.h>

Public Member Functions | |
| LassoBox () | |
| LassoBox (float x0, float y0, float x1, float y1) | |
| template<class Item > | |
| bool | intersects (const Item &item) const |
| returns whether item's icon overlaps the lasso More... | |
| bool | contains (const Wire &wire) const |
| return true if both endpoints of the wire lie within the lasso More... | |
Public Attributes | |
| float | x0 =0 |
| float | y0 =0 |
| float | x1 =0 |
| float | y1 =0 |
| float | angle =0 |
| minsky::LassoBox::LassoBox | ( | float | x0, |
| float | y0, | ||
| float | x1, | ||
| float | y1 | ||
| ) |
| bool minsky::LassoBox::contains | ( | const Wire & | wire | ) | const |
return true if both endpoints of the wire lie within the lasso
Definition at line 37 of file lasso.cc.
References minsky::wire.
|
inline |
returns whether item's icon overlaps the lasso
Definition at line 36 of file lasso.h.
References minsky::Item::bottom(), minsky::Item::left(), minsky::Item::right(), minsky::Item::top(), x0, x1, y0, and y1.
Referenced by minsky::Canvas::select().


| float minsky::LassoBox::x0 =0 |
Definition at line 30 of file lasso.h.
Referenced by intersects(), LassoBox(), minsky::IntOp::resize(), minsky::OperationBase::resize(), minsky::GodleyIcon::resize(), minsky::Ravel::resize(), minsky::PlotWidget::resize(), minsky::VariableBase::resize(), minsky::Item::resize(), minsky::Group::resize(), and minsky::Canvas::select().
| float minsky::LassoBox::x1 =0 |
Definition at line 30 of file lasso.h.
Referenced by intersects(), LassoBox(), minsky::IntOp::resize(), minsky::OperationBase::resize(), minsky::GodleyIcon::resize(), minsky::Ravel::resize(), minsky::PlotWidget::resize(), minsky::VariableBase::resize(), minsky::Item::resize(), minsky::Group::resize(), and minsky::Canvas::select().
| float minsky::LassoBox::y0 =0 |
Definition at line 30 of file lasso.h.
Referenced by intersects(), LassoBox(), minsky::IntOp::resize(), minsky::OperationBase::resize(), minsky::GodleyIcon::resize(), minsky::Ravel::resize(), minsky::PlotWidget::resize(), minsky::VariableBase::resize(), minsky::Item::resize(), minsky::Group::resize(), and minsky::Canvas::select().
| float minsky::LassoBox::y1 =0 |
Definition at line 30 of file lasso.h.
Referenced by intersects(), LassoBox(), minsky::IntOp::resize(), minsky::OperationBase::resize(), minsky::GodleyIcon::resize(), minsky::Ravel::resize(), minsky::PlotWidget::resize(), minsky::VariableBase::resize(), minsky::Item::resize(), minsky::Group::resize(), and minsky::Canvas::select().