PreferenceIO

I/O interface for loading low-level user preferences, such as the double click interval, from the system.

Right now, this interface only includes a few basic options. Other user-specific preference options may be added in the future if they need to be handled at Fluid's level. When this happens, they will first be added through a separate interface, and become merged on a major release.

Using values from the system, rather than guessing or supplying our own, has benefits for accessibility. These preferences help people of varying age and reaction times, or with disabilities related to vision and muscular function.

Members

Functions

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.

Inherited Members

From IO

opEquals
bool opEquals(Object )
Undocumented in source.
loadTo
void loadTo(T resource)

Load a resource by reference. This is the same as Node.load.

Meta