Skip to content

Ideas around additional libraries #33

@danschultz

Description

@danschultz

Some ideas around additional libraries.

frappe/mouse.dart

A library that defines mouse input properties and events. Can be imported with import 'package:frappe/mouse.dart'.

final Property<Point> position

A property of the current mouse position.

final Property<bool> isPressed

A property indicating if the primary mouse button is pressed.

frappe/window.dart

A library that defines window properties and events. Can be imported with import 'package:frappe/window.dart'.

final Property<Rectangle> outerBounds

A property that contains the bounds of the current window, including browser chrome, UI controls, etc.

final Property<Rectangle> innerBounds

A property that contains the bounds of the current window, excluding browser chrome, UI controls, etc.

frappe/time.dart

A library that defines events for time. Can be imported with import 'package:frappe/time.dart'.

Stream<DateTime> every(Duration period)

Emits an event with a DateTime after each period.

Stream<Duration> fps(int frameRate)

Emits a duration at the desired frame rate, where duration is the time between the last frame and current frame.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions