Minsky
|
#include <pubTab.h>
Public Member Functions | |
PubTab ()=default | |
PubTab (const char *name) | |
PubTab (const std::string &name) | |
void | addNote (const std::string ¬e, float x, float y) |
void | removeSelf () |
remove this from the global minsky object calling this method will invalidate any references to this, and potentially call its destructor More... | |
void | removeItemAt (float x, float y) |
void | rotateItemAt (float x, float y) |
void | toggleEditorModeAt (float x, float y) |
bool | getItemAt (float x, float y) override |
item or wire obtained by get*At() calls More... | |
void | mouseDown (float x, float y) override |
void | controlMouseDown (float x, float y) override |
void | mouseUp (float x, float y) override |
void | mouseMove (float x, float y) override |
bool | keyPress (const EventInterface::KeyPressArgs &) override |
handle key press over current itemFocus, More... | |
bool | hasScrollBars () const override |
return whether this window has scrollbars (needed for MacOSX). More... | |
![]() | |
PannableTab () | |
PannableTab (A &arg) | |
void | mouseDown (float x, float y) override |
void | mouseUp (float x, float y) override |
void | mouseMove (float x, float y) override |
void | moveTo (float x, float y) override |
std::vector< float > | position () const override |
void | zoom (double x, double y, double z) override |
double | zoomFactor () const override |
![]() | |
const RenderFrameArgs & | frameArgs () const |
~RenderNativeWindow () override | |
virtual void | init () |
perform any initialisation of any subclasses of this More... | |
void | renderFrame (const RenderFrameArgs &args) |
void | destroyFrame () |
void | draw () |
void | requestRedraw () |
void | macOSXRedraw () |
RenderNativeWindow & | operator= (const RenderNativeWindow &x) |
RenderNativeWindow ()=default | |
RenderNativeWindow (const RenderNativeWindow &)=default | |
![]() | |
virtual bool | getWireAt (float x, float y) |
item or wire obtained by get*At() calls More... | |
Public Attributes | |
std::string | name |
name of this publication tab More... | |
std::vector< PubItem > | items |
list of wrapped items and annotations More... | |
![]() | |
float | offsx =0 |
float | offsy =0 |
float | m_zoomFactor =1 |
bool | panning =false |
![]() | |
ItemPtr | item |
item or wire obtained by get*At() calls More... | |
WirePtr | wire |
item or wire obtained by get*At() calls More... | |
Private Member Functions | |
bool | redraw (int x0, int y0, int width, int height) override |
CLASSDESC_ACCESS (PubTab) | |
PubItem * | m_getItemAt (float x, float y) |
void | zoomTranslate (float &x, float &y) |
Private Attributes | |
PubItem * | item =nullptr |
bool | rotating =false |
ClickType::Type | clickType =ClickType::outside |
float | dx |
float | dy |
relative offset between mouse and item origin when moving More... | |
Exclude< Point > | rotateOrigin |
reference position for rotating More... | |
LassoBox | lasso |
Additional Inherited Members | |
![]() | |
static double | scaleFactor () |
![]() | |
static ecolab::cairo::Colour | backgroundColour {0.8,0.8,0.8,1} |
|
default |
void minsky::PubTab::addNote | ( | const std::string & | note, |
float | x, | ||
float | y | ||
) |
Definition at line 99 of file pubTab.cc.
References pyminsky::minsky, and minsky::Minsky::pushHistory().
|
private |
|
inlineoverridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 85 of file pubTab.h.
References minsky::PannableTab< Base >::mouseDown(), and minsky::PubTabBase::panning.
|
inlineoverridevirtual |
item or wire obtained by get*At() calls
Reimplemented from minsky::EventInterface.
Definition at line 80 of file pubTab.h.
References m_getItemAt(), and zoomTranslate().
|
inlineoverridevirtual |
return whether this window has scrollbars (needed for MacOSX).
Reimplemented from minsky::RenderNativeWindow.
|
overridevirtual |
handle key press over current itemFocus,
keySym | the X key sym code |
utf8 | utf8 encoded character |
state | modifer state 1=shift, 2=caps lock, 4=ctrl, 8=alt |
x | & y contain mouse coordinates |
Reimplemented from minsky::EventInterface.
Definition at line 316 of file pubTab.cc.
References minsky::EventInterface::KeyPressArgs::keySym, minsky::EventInterface::KeyPressArgs::state, minsky::EventInterface::KeyPressArgs::utf8, minsky::EventInterface::KeyPressArgs::x, and minsky::EventInterface::KeyPressArgs::y.
|
private |
Definition at line 175 of file pubTab.cc.
Referenced by getItemAt(), and toggleEditorModeAt().
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 193 of file pubTab.cc.
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 264 of file pubTab.cc.
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 226 of file pubTab.cc.
References pyminsky::minsky, minsky::Minsky::pushHistory(), and minsky::Minsky::requestReset().
|
overrideprivate |
Definition at line 145 of file pubTab.cc.
void minsky::PubTab::removeItemAt | ( | float | x, |
float | y | ||
) |
Definition at line 121 of file pubTab.cc.
References pyminsky::minsky, and minsky::Minsky::pushHistory().
void minsky::PubTab::removeSelf | ( | ) |
remove this from the global minsky object calling this method will invalidate any references to this, and potentially call its destructor
Definition at line 110 of file pubTab.cc.
References pyminsky::minsky, minsky::minsky(), minsky::Minsky::publicationTabs, and minsky::Minsky::pushHistory().
void minsky::PubTab::rotateItemAt | ( | float | x, |
float | y | ||
) |
Definition at line 135 of file pubTab.cc.
|
inline |
Definition at line 75 of file pubTab.h.
References m_getItemAt(), and zoomTranslate().
|
private |
Definition at line 186 of file pubTab.cc.
References minsky::anonymous_namespace{minskyTCL.cc}::scale().
Referenced by getItemAt(), and toggleEditorModeAt().
|
private |
|
private |
std::vector<PubItem> minsky::PubTab::items |
std::string minsky::PubTab::name |
|
private |