kis_canvas_controller.h
Interface for classes that implement a canvas; i.e., a widget where KisImages are painted onto.
Definition kis_canvas_controller.h:39
virtual TQPoint viewToWindow(const TQPoint &pt)=0
Conversion functions from view coordinates to image coordinates.
virtual TQ_INT32 vertValue() const =0
virtual void zoomTo(const KisRect &r)=0
Make the rect defined by x, y, w and h visible, zooming in or out as necessary.
virtual TQPoint windowToView(const TQPoint &pt)=0
Conversion functions from image coordinates to view coordinates.
virtual void zoomOut(TQ_INT32 x, TQ_INT32 y)=0
Decrease the zoomlevel one step and make sure that x,y is the center point of the view.
virtual TQCursor setCanvasCursor(const TQCursor &cursor)=0
Set the cursor shown when the pointer is over the canvas widget to the specified cursor.
virtual KisInputDevice currentInputDevice() const =0
virtual void updateCanvas()=0
Tell all of the canvas to repaint itself.
virtual void setInputDevice(KisInputDevice inputDevice)=0
Set the active input device to the specified input device, This could be a mouse, a stylus,...
virtual void updateCanvas(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)=0
Tell the canvas to repaint the rectangle defined by x, y, w and h.
virtual void zoomAroundPoint(double x, double y, double zf)=0
To centre the view on the given point with the given zoom factor.
virtual void zoomTo(TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)=0
Make the rect defined by x, y, w and h visible, zooming in or out as necessary.
virtual void zoomTo(const TQRect &r)=0
Make the rect defined by x, y, w and h visible, zooming in or out as necessary.
virtual void scrollTo(TQ_INT32 x, TQ_INT32 y)=0
Sets the horizontal and vertical scrollbars to the specified values.
virtual void zoomIn(TQ_INT32 x, TQ_INT32 y)=0
Increase the zoomlevel one step and make sure that x,y is the center point of the view.
virtual void updateCanvas(const TQRect &rc)=0
Tell the canvas repaint the specified rectangle.
virtual TQ_INT32 horzValue() const =0
virtual KisCanvas * kiscanvas() const =0
A double-based point class that can return it's coordinates approximated to integers.
Definition kis_point.h:28
A double-based rect class that can return a TQRect that encloses the KisRect.
Definition kis_rect.h:29
