Minsky
|
#include <renderNativeWindow.h>
Classes | |
struct | CopiableMutux |
a copiable mutex where each copy has a distinct mutex More... | |
struct | RenderFrameArgs |
Public Member Functions | |
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 | hasScrollBars () const |
return whether this window has scrollbars (needed for MacOSX). More... | |
![]() | |
virtual void | mouseDown (float x, float y) |
virtual void | controlMouseDown (float x, float y) |
virtual void | mouseUp (float x, float y) |
virtual void | mouseMove (float x, float y) |
virtual void | zoom (double x, double y, double z) |
virtual void | moveTo (float x, float y) |
move this so that (x,y) is centred More... | |
virtual std::vector< float > | position () const |
current centre coordinates More... | |
virtual double | zoomFactor () const |
virtual bool | keyPress (const KeyPressArgs &) |
handle key press over current itemFocus, More... | |
virtual bool | getItemAt (float x, float y) |
item or wire obtained by get*At() calls More... | |
virtual bool | getWireAt (float x, float y) |
item or wire obtained by get*At() calls More... | |
Static Public Member Functions | |
static double | scaleFactor () |
Static Public Attributes | |
static ecolab::cairo::Colour | backgroundColour {0.8,0.8,0.8,1} |
Private Member Functions | |
CLASSDESC_ACCESS (RenderNativeWindow) | |
Private Attributes | |
classdesc::Exclude< std::shared_ptr< WindowInformation > > | winInfoPtr |
RenderFrameArgs | m_frameArgs |
classdesc::Exclude< CopiableMutux > | drawMutex |
Additional Inherited Members | |
![]() | |
ItemPtr | item |
item or wire obtained by get*At() calls More... | |
WirePtr | wire |
item or wire obtained by get*At() calls More... | |
Definition at line 31 of file renderNativeWindow.h.
|
override |
|
default |
|
default |
|
private |
void minsky::RenderNativeWindow::destroyFrame | ( | ) |
Definition at line 89 of file renderNativeWindow.cc.
Referenced by minsky::GodleyIcon::destroyFrame(), and minsky::PlotWidget::destroyFrame().
void minsky::RenderNativeWindow::draw | ( | ) |
Definition at line 111 of file renderNativeWindow.cc.
Referenced by minsky::GodleyTableWindow::redraw().
|
inline |
Definition at line 47 of file renderNativeWindow.h.
References m_frameArgs.
|
inlinevirtual |
return whether this window has scrollbars (needed for MacOSX).
Reimplemented in minsky::Canvas, minsky::GodleyTableWindow, minsky::PhillipsDiagram, minsky::PubTab, and minsky::EquationDisplay.
Definition at line 63 of file renderNativeWindow.h.
|
inlinevirtual |
perform any initialisation of any subclasses of this
Reimplemented in minsky::PhillipsDiagram.
Definition at line 51 of file renderNativeWindow.h.
void minsky::RenderNativeWindow::macOSXRedraw | ( | ) |
Definition at line 94 of file renderNativeWindow.cc.
|
inline |
Definition at line 58 of file renderNativeWindow.h.
Referenced by minsky::EquationDisplay::operator=().
void minsky::RenderNativeWindow::renderFrame | ( | const RenderFrameArgs & | args | ) |
Definition at line 77 of file renderNativeWindow.cc.
References minsky::RenderNativeWindow::RenderFrameArgs::childHeight, minsky::RenderNativeWindow::RenderFrameArgs::childWidth, TCLcmd::trap::init, minsky::RenderNativeWindow::RenderFrameArgs::offsetLeft, minsky::RenderNativeWindow::RenderFrameArgs::offsetTop, minsky::RenderNativeWindow::RenderFrameArgs::parentWindowId, and minsky::RenderNativeWindow::RenderFrameArgs::scalingFactor.
void minsky::RenderNativeWindow::requestRedraw | ( | ) |
Definition at line 103 of file renderNativeWindow.cc.
References pyminsky::minsky.
Referenced by minsky::RavelPopup::keyPress(), minsky::RavelPopup::mouseDown(), minsky::RavelPopup::mouseLeave(), minsky::RavelPopup::mouseMove(), minsky::RavelPopup::mouseOver(), minsky::RavelPopup::mouseUp(), and minsky::anonymous_namespace{renderNativeWindow.cc}::NativeSurface::requestRedraw().
|
static |
Definition at line 160 of file renderNativeWindow.cc.
|
static |
Definition at line 34 of file renderNativeWindow.h.
|
private |
Definition at line 76 of file renderNativeWindow.h.
|
private |
Definition at line 68 of file renderNativeWindow.h.
Referenced by frameArgs().
|
private |
Definition at line 67 of file renderNativeWindow.h.