PreferenceChain

PreferenceChain implements PreferenceIO, accessing crucial, low-level user preferences that affect their usage of Fluid programs.

Currently, PreferenceChain does *not* communicate with the system, and instead assumes a default value of 400 milliseconds for the double-click interval, and 6 pixels for the maximum double click distance. Communicating with the system will be enabled in a future update through a version flag. See issue #295 for more details.

Constructors

this
this(Node next)
Undocumented in source.

Members

Functions

afterResize
void afterResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
beforeResize
void beforeResize(Vector2 )
Undocumented in source. Be warned that the author may not have intended to support it.
doubleClickInterval
Duration doubleClickInterval()
Undocumented in source. Be warned that the author may not have intended to support it.
maximumDoubleClickDistance
float maximumDoubleClickDistance()
Undocumented in source. Be warned that the author may not have intended to support it.
scrollSpeed
Vector2 scrollSpeed()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin controlIO
Undocumented in source.

Inherited Members

From NodeChain

next
Node next(Node value)

Set the next node in chain.

next
inout(Node) next()
nextChain
inout(NodeChain) nextChain()
beforeResize
void beforeResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
afterResize
void afterResize(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
beforeDraw
void beforeDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
afterDraw
void afterDraw(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.

From PreferenceIO

doubleClickInterval
Duration doubleClickInterval()

Get the double click interval from the system

maximumDoubleClickDistance
float maximumDoubleClickDistance()

Get the maximum distance allowed between two clicks for them to count as a double click.

scrollSpeed
Vector2 scrollSpeed()

Get the desired scroll speed (in pixels, or 1/96th of an inch) for every scroll unit. This value should be used by mouse devices to translate scroll in ticks to screen space.

Meta