Minsky
|
#include <ravelWrap.h>
Public Member Functions | |
RavelPopup (Ravel &ravel) | |
void | mouseDown (float x, float y) override |
void | mouseUp (float x, float y) override |
void | mouseMove (float x, float y) override |
void | mouseOver (float x, float y) |
void | mouseLeave () |
bool | keyPress (const EventInterface::KeyPressArgs &) override |
handle key press over current itemFocus, 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 bool | hasScrollBars () const |
return whether this window has scrollbars (needed for MacOSX). More... | |
![]() | |
virtual void | controlMouseDown (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 | 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... | |
Private Member Functions | |
float | localX (float x) const |
float | localY (float y) const |
bool | redraw (int x0, int y0, int width, int height) override |
CLASSDESC_ACCESS (RavelPopup) | |
Private Attributes | |
Ravel & | ravel |
float | width |
float | height |
float | scale =1 |
Additional Inherited Members | |
![]() | |
static double | scaleFactor () |
![]() | |
ItemPtr | item |
item or wire obtained by get*At() calls More... | |
WirePtr | wire |
item or wire obtained by get*At() calls More... | |
![]() | |
static ecolab::cairo::Colour | backgroundColour {0.8,0.8,0.8,1} |
Definition at line 37 of file ravelWrap.h.
|
inline |
Definition at line 46 of file ravelWrap.h.
|
private |
|
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 893 of file ravelWrap.cc.
References minsky::EventInterface::KeyPressArgs::keySym, minsky::Ravel::onKeyPress(), ravel, minsky::RenderNativeWindow::requestRedraw(), minsky::EventInterface::KeyPressArgs::state, and minsky::EventInterface::KeyPressArgs::utf8.
|
private |
Definition at line 865 of file ravelWrap.cc.
Referenced by mouseDown(), mouseMove(), mouseOver(), and mouseUp().
|
private |
Definition at line 867 of file ravelWrap.cc.
Referenced by mouseDown(), mouseMove(), mouseOver(), and mouseUp().
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 870 of file ravelWrap.cc.
References localX(), localY(), ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.
void minsky::RavelPopup::mouseLeave | ( | ) |
Definition at line 888 of file ravelWrap.cc.
References ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 878 of file ravelWrap.cc.
References localX(), localY(), ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.
void minsky::RavelPopup::mouseOver | ( | float | x, |
float | y | ||
) |
Definition at line 882 of file ravelWrap.cc.
References minsky::Ravel::broadcastStateToLockGroup(), localX(), localY(), minsky::minsky(), ravel, minsky::RenderNativeWindow::requestRedraw(), minsky::Minsky::requestReset(), and minsky::Ravel::wrappedRavel.
|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 874 of file ravelWrap.cc.
References localX(), localY(), ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.
|
overrideprivate |
Definition at line 851 of file ravelWrap.cc.
References height, ravel, scale, width, and minsky::Ravel::wrappedRavel.
|
private |
Definition at line 40 of file ravelWrap.h.
|
private |
Definition at line 39 of file ravelWrap.h.
Referenced by keyPress(), mouseDown(), mouseLeave(), mouseMove(), mouseOver(), mouseUp(), and redraw().
|
private |
Definition at line 40 of file ravelWrap.h.
|
private |
Definition at line 40 of file ravelWrap.h.