Distributed Multihead X  1.16.4
dmxinput.h File Reference

Go to the source code of this file.

Data Structures

struct  _DMXInputInfo
 

Macros

#define DMX_MAX_SIGIO_FDS   4
 

Typedefs

typedef void(* ProcessInputEventsProc )(struct _DMXInputInfo *)
 
typedef void(* UpdateWindowInfoProc )(struct _DMXInputInfo *, DMXUpdateType, WindowPtr)
 
typedef struct _DMXLocalInputInfoDMXLocalInputInfoPtr
 

Enumerations

enum  DMXUpdateType {
  DMX_UPDATE_REALIZE, DMX_UPDATE_UNREALIZE, DMX_UPDATE_RESTACK, DMX_UPDATE_COPY,
  DMX_UPDATE_RESIZE, DMX_UPDATE_REPARENT
}
 
enum  dmxSigioState { DMX_NOSIGIO = 0, DMX_USESIGIO, DMX_ACTIVESIGIO }
 
enum  DMXBlockType { DMX_NO_BLOCK = 0, DMX_BLOCK = 1 }
 

Functions

void dmxInputInit (DMXInputInfo *dmxInput)
 
void dmxInputReInit (DMXInputInfo *dmxInput)
 
void dmxInputLateReInit (DMXInputInfo *dmxInput)
 
void dmxInputFree (DMXInputInfo *dmxInput)
 
void dmxInputLogDevices (void)
 
void dmxUpdateWindowInfo (DMXUpdateType type, WindowPtr pWindow)
 
void dmxeqSwitchScreen (DeviceIntPtr pDev, ScreenPtr pScreen, Bool fromDIX)
 
void dmxGetGlobalPosition (int *x, int *y)
 
DMXScreenInfodmxFindFirstScreen (int x, int y)
 
void dmxCoreMotion (DevicePtr pDev, int x, int y, int delta, DMXBlockType block)
 
DMXInputInfodmxConfigAddInput (const char *name, int core)
 

Variables

int dmxNumInputs
 
DMXInputInfodmxInputs
 

Detailed Description

This file provides access to:

  • global variables available to all hw/dmx routines, and
  • enumerations and typedefs needed by input routines in hw/dmx (and hw/dmx/input).

The goal is that no files in hw/dmx should include header files from hw/dmx/input – the interface defined here should be the only interface exported to the hw/dmx layer.

See also
input/dmxinputinit.c.

Macro Definition Documentation

#define DMX_MAX_SIGIO_FDS   4

Maximum number of file descriptors for SIGIO handling

Referenced by dmxSigioRegister().

Typedef Documentation

An opaque structure that is only exposed in the dmx/input layer.

typedef void(* ProcessInputEventsProc)(struct _DMXInputInfo *)
typedef void(* UpdateWindowInfoProc)(struct _DMXInputInfo *, DMXUpdateType, WindowPtr)

Enumeration Type Documentation

Enumerator
DMX_NO_BLOCK 
DMX_BLOCK 

State of the SIGIO engine

Enumerator
DMX_NOSIGIO 

Device does not use SIGIO at all.

DMX_USESIGIO 

Device can use SIGIO, but is not (e.g., because the VT is switch away).

DMX_ACTIVESIGIO 

Device is currently using SIGIO.

Reason why window layout was updated.

Enumerator
DMX_UPDATE_REALIZE 

Window realized

DMX_UPDATE_UNREALIZE 

Window unrealized

DMX_UPDATE_RESTACK 

Stacking order changed

DMX_UPDATE_COPY 

Window copied

DMX_UPDATE_RESIZE 

Window resized

DMX_UPDATE_REPARENT 

Window reparented

Function Documentation

void dmxeqSwitchScreen ( DeviceIntPtr  pDev,
ScreenPtr  pScreen,
Bool  fromDIX 
)
DMXScreenInfo* dmxFindFirstScreen ( int  x,
int  y 
)
void dmxGetGlobalPosition ( int *  x,
int *  y 
)

Return DMX's notion of the pointer position in the global coordinate space.

References dmxGlobalX, and dmxGlobalY.

Referenced by dmxBackendLateReInit(), dmxCheckCursor(), dmxConsoleUpdateFineCursor(), dmxHideCursor(), and dmxSetCursor().

void dmxInputFree ( DMXInputInfo dmxInput)
void dmxInputLateReInit ( DMXInputInfo dmxInput)

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries after the cursor is redisplayed.

References _DMXInputInfo::devs, _DMXLocalInputInfo::latereinit, _DMXInputInfo::numDevs, and _DMXLocalInputInfo::pDevice.

Referenced by dmxAdjustCursorBoundaries().

void dmxInputReInit ( DMXInputInfo dmxInput)

Re-initialize all the devices described in dmxInput. Called from dmxAdjustCursorBoundaries before the cursor is redisplayed.

References _DMXInputInfo::devs, _DMXInputInfo::numDevs, _DMXLocalInputInfo::pDevice, and _DMXLocalInputInfo::reinit.

Referenced by dmxAdjustCursorBoundaries().

void dmxUpdateWindowInfo ( DMXUpdateType  type,
WindowPtr  pWindow 
)

This routine is called from dmxwindow.c whenever the layout of windows on the display might have changed. This information is used by input drivers (currently only the console driver) that provide information about window layout to the user.

References _DMXInputInfo::detached, dmxInputs, dmxNumInputs, and _DMXInputInfo::updateWindowInfo.

Referenced by dmxCopyWindow(), dmxRealizeWindow(), dmxReparentWindow(), dmxResizeWindow(), dmxRestackWindow(), and dmxUnrealizeWindow().

Variable Documentation


Generated on Tue Aug 18 2015 01:27:31 for Distributed Multihead X by doxygen 1.8.8