|
Minsky: 3.17.0
|
#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 () |
| 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... | |
Public Member Functions inherited from minsky::EventInterface | |
| 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 |
Friends | |
| void | macOSXRedraw (RenderNativeWindow &, const std::shared_ptr< std::lock_guard< std::mutex >> &) |
Additional Inherited Members | |
Public Attributes inherited from minsky::EventInterface | |
| 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 42 of file renderNativeWindow.h.
|
override |
|
default |
|
default |
|
private |
| void minsky::RenderNativeWindow::destroyFrame | ( | ) |
Definition at line 91 of file renderNativeWindow.cc.
Referenced by minsky::GodleyIcon::destroyFrame(), and minsky::PlotWidget::destroyFrame().

| void minsky::RenderNativeWindow::draw | ( | ) |
Definition at line 113 of file renderNativeWindow.cc.
Referenced by minsky::GodleyTableWindow::redraw().

|
inline |
Definition at line 58 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 75 of file renderNativeWindow.h.
|
inlinevirtual |
perform any initialisation of any subclasses of this
Reimplemented in minsky::PhillipsDiagram.
Definition at line 62 of file renderNativeWindow.h.
|
inline |
Definition at line 70 of file renderNativeWindow.h.
Referenced by minsky::EquationDisplay::operator=().

| void minsky::RenderNativeWindow::renderFrame | ( | const RenderFrameArgs & | args | ) |
Definition at line 79 of file renderNativeWindow.cc.
References minsky::RenderNativeWindow::RenderFrameArgs::childHeight, minsky::RenderNativeWindow::RenderFrameArgs::childWidth, minsky::RenderNativeWindow::RenderFrameArgs::offsetLeft, minsky::RenderNativeWindow::RenderFrameArgs::offsetTop, minsky::RenderNativeWindow::RenderFrameArgs::parentWindowId, and minsky::RenderNativeWindow::RenderFrameArgs::scalingFactor.
| void minsky::RenderNativeWindow::requestRedraw | ( | ) |
Definition at line 106 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 162 of file renderNativeWindow.cc.
|
friend |
Definition at line 96 of file renderNativeWindow.cc.
|
static |
Definition at line 45 of file renderNativeWindow.h.
|
private |
Definition at line 88 of file renderNativeWindow.h.
|
private |
Definition at line 80 of file renderNativeWindow.h.
Referenced by frameArgs().
|
private |
Definition at line 79 of file renderNativeWindow.h.
Referenced by minsky::macOSXRedraw().