53 bool redraw(
int x0,
int y0,
int width,
int height)
override;
69 void addNote(
const std::string& note,
float x,
float y);
78 i->editorMode=!i->editorMode;
84 void mouseDown(
float x,
float y)
override;
86 void mouseUp(
float x,
float y)
override;
87 void mouseMove(
float x,
float y)
override;
void addNote(const std::string ¬e, float x, float y)
float dy
relative offset between mouse and item origin when moving
bool hasScrollBars() const override
return whether this window has scrollbars (needed for MacOSX).
void mouseMove(float x, float y) override
void mouseDown(float x, float y) override
std::vector< PubItem > items
list of wrapped items and annotations
ClickType::Type clickType
represents rectangular region of a lasso operation
void mouseDown(float x, float y) override
PubTab(const std::string &name)
std::shared_ptr< Item > ItemPtr
void mouseUp(float x, float y) override
PubItem * m_getItemAt(float x, float y)
bool getItemAt(float x, float y) override
item or wire obtained by get*At() calls
void removeItemAt(float x, float y)
Point itemCoords(float x, float y) const
given (x,y) in PubTab, returns coordinates within item. Nb: must be wrapped by EnsureEditorMode ...
bool keyPress(const EventInterface::KeyPressArgs &) override
handle key press over current itemFocus,
void removeSelf()
remove this from the global minsky object calling this method will invalidate any references to this...
void toggleEditorModeAt(float x, float y)
PublicationItem()=default
PubItem(const ItemPtr &item)
void zoomTranslate(float &x, float &y)
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
void rotateItemAt(float x, float y)
Mixin implementing common panning functionality in tabs.
boost::geometry::model::d2::point_xy< float > Point
void controlMouseDown(float x, float y) override
std::string name
name of this publication tab
Exclude< Point > rotateOrigin
reference position for rotating
PubItem(const ItemPtr &item, const schema3::PublicationItem &state)
bool redraw(int x0, int y0, int width, int height) override