Class

Tin

Overview

The Tin object is the central controller object that holds the current state of the graphics context.

Properties

var fill: Bool

Will drawing operations fill their shape?

var frameCount: Int

Count of update method calls. This value starts at 0 at application launch, and continues to increase by 1 everytime the update method is called.

var height: Double

height of the view.

var midX: CGFloat

Horizontal mid point coordinate for the view.

var midY: Double

Vertical mid point coordinate for the view.

var mouseX: Double

Current x-axis coordinate for the position of the mouse pointer.

var mouseY: Double

Current y-axis coordinate for the position of the mouse pointer.

var pmouseX: Double

X-axis coordinate for the position of the mouse pointer at the previous update frame.

var pmouseY: Double

Y-axis coordinate for the position of the mouse pointer at the previous update frame.

var size: NSSize

Size structure describing the width and height of the view.

var stroke: Bool

Will drawing operations stroke the outline path of their shape?

var width: Double

width of the view.

Creating an Instance

Your application will use just one instance of a Tin object, and the creation of that object happens automatically, you don't need to call an initializer. Instead, you can reference the global variable tin.

Related

TView

TImage

TFont