Package it.unibo.alchemist.boundary

Types

Link copied to clipboard
class CustomLeafletMapView : LeafletMapView

A LeafletMapView that implements functions used to manage the map without any mouse events.

Link copied to clipboard
class EditKeybindView : View

The view through which keybinds can be edited.

Link copied to clipboard
class Keybind(action: ActionFromKey, key: KeyCode)

A class that describes the relation between a KeyCode and an Action.

Link copied to clipboard
class KeybindController : Controller

The controller for ListKeybindsView.

Link copied to clipboard
class Keybinder : App

The keybinder app.

Link copied to clipboard
class KeybindModel : ItemViewModel<Keybind>

The ItemViewModel of a Keybind.

Link copied to clipboard
class ListKeybindsView : View

The view that lists current keybinds.

Functions

Link copied to clipboard
fun Canvas.clear()

Clears a given canvas.

Link copied to clipboard
operator fun Rectangle.contains(point: Point): Boolean

Returns whether the Rectangle contains point.

Link copied to clipboard
fun Canvas.createDrawRectangleCommand(rectangle: Rectangle, colour: Paint): () -> Unit

Returns a command for drawing the given rectangle on the caller canvas.

Link copied to clipboard
fun <T, P : Position2D<P>> Rectangle.intersectingNodes(nodes: Map<Node<T>, P>, wormhole: Wormhole2D<P>): Map<Node<T>, P>

Returns the nodes intersecting with the caller rectangle.

Link copied to clipboard
fun makePoint(x: Number, y: Number): Point

Creates a Point.

Link copied to clipboard
fun Point.makeRectangleWith(other: Point): Rectangle

Creates a rectangle that has this and other as its opposite-diagonal vertexes.

Link copied to clipboard
operator fun Point.minus(p: Point): Point

Subtracts this and the given Point.

Link copied to clipboard
operator fun Point.plus(p: Point): Point

Sums this and the given Point.