#include <equationDisplay.h>
|
double | width () const |
|
double | height () const |
|
| EquationDisplay (Minsky &m) |
|
EquationDisplay & | operator= (const EquationDisplay &x) |
|
| EquationDisplay (const EquationDisplay &)=default |
|
void | requestRedraw () |
|
bool | hasScrollBars () const override |
| return whether this window has scrollbars (needed for MacOSX). More...
|
|
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 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...
|
|
Definition at line 29 of file equationDisplay.h.
◆ EquationDisplay() [1/2]
minsky::EquationDisplay::EquationDisplay |
( |
Minsky & |
m | ) |
|
|
inline |
◆ EquationDisplay() [2/2]
◆ CLASSDESC_ACCESS()
◆ hasScrollBars()
bool minsky::EquationDisplay::hasScrollBars |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ height()
double minsky::EquationDisplay::height |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ redraw()
bool minsky::EquationDisplay::redraw |
( |
int |
x0, |
|
|
int |
y0, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
overrideprivate |
Definition at line 34 of file equationDisplay.cc.
References height(), m, m_height, m_width, m_zoomFactor, offsx, offsy, MathDAG::SystemOfEquations::renderEquations(), and width().
37 const BusyCursor busy(
m);
40 cairo_clip(surface->cairo());
43 system.renderEquations(*surface,
height);
44 if (
m.flags & Minsky::fullEqnDisplay_needed)
46 ecolab::cairo::Surface surf
47 (cairo_recording_surface_create(CAIRO_CONTENT_COLOR_ALPHA,NULL));
48 system.renderEquations(surf,std::numeric_limits<double>::max());
51 m.flags &= ~Minsky::fullEqnDisplay_needed;
◆ requestRedraw()
void minsky::EquationDisplay::requestRedraw |
( |
| ) |
|
|
inline |
Definition at line 42 of file equationDisplay.h.
42 {
if (surface.get()) surface->requestRedraw();}
◆ width()
double minsky::EquationDisplay::width |
( |
| ) |
const |
|
inline |
Minsky& minsky::EquationDisplay::m |
|
private |
◆ m_height
double minsky::EquationDisplay::m_height =0 |
|
private |
◆ m_width
double minsky::EquationDisplay::m_width =0 |
|
private |
◆ m_zoomFactor
float minsky::EquationDisplay::m_zoomFactor =1 |
◆ offsx
float minsky::EquationDisplay::offsx =0 |
◆ offsy
float minsky::EquationDisplay::offsy =0 |
The documentation for this class was generated from the following files: