|
Ipelib
|
#include <ipecanvas_cocoa.h>
Inherits ipe::CanvasBase.
Public Member Functions | |
| Canvas (IpeCanvasView *view) | |
| virtual | ~Canvas () |
| IpeCanvasView * | view () |
| void | button (bool press, NSEvent *event) |
| void | mouseMove (NSEvent *event) |
| bool | key (NSEvent *event) |
| void | scrollWheel (NSEvent *event) |
| void | magnify (NSEvent *event) |
| void | drawRect (NSRect rect) |
| void | fileDropped (ipe::String fname) |
Public Member Functions inherited from ipe::CanvasBase | |
| virtual | ~CanvasBase () |
| void | setPage (const Page *page, int pno, int view, const Cascade *sheet) |
| void | setResources (const PdfResources *resources) |
| void | setImageFolder (String imageFolder) |
| Vector | pan () const |
| double | zoom () const |
| const Cascade * | cascade () const |
| Vector | center () const |
| Vector | pos () const |
| Vector | unsnappedPos () const |
| Vector | globalPos () const |
| Vector | simpleSnapPos () const |
| const Snap & | snap () const |
| void | setInkMode (bool ink) |
| int | additionalModifiers () const |
| void | setAdditionalModifiers (int mod) |
| bool | type3Font () |
| Vector | devToUser (const Vector &arg) const |
| Vector | userToDev (const Vector &arg) const |
| void | setCanvasStyle (const Style &style) |
| Style | canvasStyle () const |
| void | setPan (const Vector &v) |
| void | setZoom (double zoom) |
| void | setSnap (const Snap &s) |
| void | setDimmed (bool dimmed) |
| void | setAutoOrigin (const Vector &v) |
| void | setVisibleVariant (Attribute variant) |
| Attribute | visibleVariant () const noexcept |
| Matrix | canvasTfm () const |
| void | setObserver (CanvasObserver *observer) |
| void | setFifiVisible (bool visible) |
| void | setSelectionVisible (bool visible) |
| void | setTool (Tool *tool) |
| void | finishTool () |
| Tool * | tool () |
| void | update () |
| void | updateTool () |
| int | canvasWidth () const |
| int | canvasHeight () const |
| Canvas::Canvas | ( | IpeCanvasView * | view | ) |
References view().
|
virtual |
|
inline |
Referenced by Canvas().
| void Canvas::button | ( | bool | press, |
| NSEvent * | event | ||
| ) |
References button(), ipe::CanvasObserver::canvasObserverMouseAction(), ipe::CanvasBase::computeFifi(), ipe::CanvasBase::iAdditionalModifiers, ipe::CanvasBase::iGlobalPos, ipe::CanvasBase::iHeight, ipe::CanvasBase::iObserver, ipe::CanvasBase::iTool, and ipe::Tool::mouseButton().
Referenced by button(), and ipe::Canvas::mouseButtonEvent().
| void Canvas::mouseMove | ( | NSEvent * | event | ) |
| bool Canvas::key | ( | NSEvent * | event | ) |
References ipe::CanvasBase::iTool, and ipe::Tool::key().
| void Canvas::scrollWheel | ( | NSEvent * | event | ) |
| void Canvas::magnify | ( | NSEvent * | event | ) |
| void Canvas::drawRect | ( | NSRect | rect | ) |
References ipe::CanvasBase::canvasTfm(), ipe::CanvasBase::drawFifi(), ipe::CanvasBase::drawTool(), ipe::CanvasBase::iBHeight, ipe::CanvasBase::iBWidth, ipe::CanvasBase::iCascade, ipe::CanvasBase::iFifiVisible, ipe::CanvasBase::iFonts, ipe::CanvasBase::iHeight, ipe::CanvasBase::iPage, ipe::CanvasBase::iPixelRatio, ipe::CanvasBase::iSurface, ipe::CanvasBase::iWidth, ipe::CanvasBase::iZoom, ipe::Painter::popMatrix(), ipe::Painter::pushMatrix(), ipe::CanvasBase::refreshSurface(), and ipe::Painter::transform().
| void Canvas::fileDropped | ( | ipe::String | fname | ) |