libinput  0.2.0
A wrapper library for input devices
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Typedefs | Functions
Fixed point utilities

Typedefs

typedef int32_t li_fixed_t
 libinput 24.8 fixed point real number. More...
 

Functions

static double li_fixed_to_double (li_fixed_t f)
 Convert li_fixed_t to a double. More...
 
static int li_fixed_to_int (li_fixed_t f)
 Convert li_fixed_t to a int. More...
 

Detailed Description

Typedef Documentation

typedef int32_t li_fixed_t

libinput 24.8 fixed point real number.

Function Documentation

static double li_fixed_to_double ( li_fixed_t  f)
inlinestatic

Convert li_fixed_t to a double.

Parameters
ffixed point number
Returns
Converted double
static int li_fixed_to_int ( li_fixed_t  f)
inlinestatic

Convert li_fixed_t to a int.

The fraction part is discarded.

Parameters
ffixed point number
Returns
Converted int