|
Minsky: 3.17.0
|
#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... | |
Public Member Functions inherited from minsky::RenderNativeWindow | |
| 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 | 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 Public Member Functions inherited from minsky::RenderNativeWindow | |
| static double | scaleFactor () |
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... | |
Static Public Attributes inherited from minsky::RenderNativeWindow | |
| 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 892 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 864 of file ravelWrap.cc.
Referenced by mouseDown(), mouseMove(), mouseOver(), and mouseUp().

|
private |
Definition at line 866 of file ravelWrap.cc.
Referenced by mouseDown(), mouseMove(), mouseOver(), and mouseUp().

|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 869 of file ravelWrap.cc.
References localX(), localY(), ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.

| void minsky::RavelPopup::mouseLeave | ( | ) |
Definition at line 887 of file ravelWrap.cc.
References ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.

|
overridevirtual |
Reimplemented from minsky::EventInterface.
Definition at line 877 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 881 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 873 of file ravelWrap.cc.
References localX(), localY(), ravel, minsky::RenderNativeWindow::requestRedraw(), and minsky::Ravel::wrappedRavel.

|
overrideprivate |
Definition at line 850 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.