X Server Device Developer's Guide
只搜寻这本书
以 PDF 格式下载本书

Index

Numerics

4-bit deep screen format note19

A

AddEnableDevice function259
AggregatePlanes function63
.....code example64
.....default value63
AssignTypeAndName function259

C

CachedDrawCleanup function215
CachedDrawInit function213
ChokeFb function220
CloseScreen function23
CMAP library
.....introduction105
.....allocating unique WIDs138
.....allocating unique WIDs, examplecode139
.....changing a colormap135
.....changing a window's WID134
.....colormap flashing reduction110
.....controlling MHC's WIDs130 to 133
.....initialization functions, list of106
.....overloading WIDs131
.....using WID89
CmapClutPoolDesc structure117
cmapGetColorData16 function112
cmapGetColorData8 function111
cmapMhcChangeFlavor function136
cmapMhcForceOverload function132
cmapMhcReleaseOverload function133
cmapMhcWindowAttachWidfunction134
cmapMhcWindowDetachWidfunction135
CmapSetup function222
color LUT pool description116
colormap flashing reduction withCMAP110
colormaps and DGA229
control plane group device with OVL70
CopyAreaAndPaintType function78
CopyPaintType function76
CopyPlanes function62
.....code example64
.....default value63
CreateMultibuffer2 function146
cursor
.....hardware34 to 44
.....kernel tracking41, 44
.....software30 to 34
custom device with OVL71

D

DBSetup function216
DDX handler naming convention10
DDX interface, basic functions29
DDX versioning9 to 11
debugging note6
DestroyMultibuffer function147
device self-identification8
DeviceBellCtrlProc function268
DeviceBellProc function266
DeviceBlockHandlerProc function266
DeviceChangeCoreKeyboardProcfunction264
DeviceChangeDeviceControlProcfunction264
DeviceControlProc function260
.....DEVICE_CLOSE action238
.....DEVICE_INIT action237
.....DEVICE_OFF action238
.....DEVICE_ON action237
device-dependent initialization17
DeviceEnqueueProc function261
DeviceGetMotionProc function265
DeviceHandlerCompatible function260
DeviceIntegerCtrlProc function268
DeviceKbdCtrlProc function267
DeviceLedCtrlProc function267
DeviceModifierCheckProc function262
DevicePointerAxisChangeProcfunction265
DevicePtrCtrlProc function267
DeviceReadProc function262
DeviceSetDeviceValuatorsProcfunction263
DeviceSetModeProc function263
DeviceStringCtrlProc function268
DeviceWakeupHandlerProc function266
DGA drawable client library
.....overview153 to 158
......backing store157, 182 to 188
......backing store and screendiagram157
......clipping state175 to 179
......compiling and linking158
......cursor conflict180 to 182
......DGA drawables154
......drawable sites170 to 175
......drawable types154
......functions159 to 205
......locking and change detection162 to 166
......multibuffering grabber192 to 201
......multibuffers destroyed note205
......sites156
......utility functions166 to 170
DGA drawable DDX library
......caching functions226 to 227
......device functions211 to 222
......device information functions228 to 229
......initialization209 to 211
......server multibuffering functions222 to 226
dga_cm_devfd function190
dga_cm_devinfop function190
dga_cm_get_client_infop function191
dga_cm_grab function189
dga_cm_set_client_infop function191
dga_cm_ungrab function189
dga_cm_write function191
Dga_cur_memimage structure181
Dga_cur_memimage structure, DGA_DRAW_MODIF note182
dga_db_display function197
dga_db_display_done function200
dga_db_display_inquire function199
dga_db_grab function193
dga_db_interval function198
dga_db_interval_check function198
dga_db_interval_wait function198
dga_db_read function196
dga_db_read_inquire function199
dga_db_ungrab function194
dga_db_write function195
dga_db_write_inquire function199
dga_draw_address function174
dga_draw_bbox function176
dga_draw_bitsperpixel function175
dga_draw_clipchg function175
dga_draw_clipinfo function178
dga_draw_curshandle function181
dga_draw_depth function168
dga_draw_devfd function168
dga_draw_devinfo function169
dga_draw_devname function167
dga_draw_display function166
dga_draw_empty function177
dga_draw_get_client_infop function169
dga_draw_id function167
dga_draw_linebytes function175
DGA_DRAW_LOCK macro162
DGA_DRAW_LOCK_SRC_AND_DSTmacro164
DGA_DRAW_MODIF macro165
dga_draw_obscured function179
dga_draw_rtnactive function185
dga_draw_rtncached function185
dga_draw_rtnchg function184
dga_draw_rtndevinfop function186
dga_draw_rtndevtype function187
dga_draw_rtndimensions function187
dga_draw_rtnpixels function188
dga_draw_set_client_infop function168
dga_draw_singlerect function179
dga_draw_site function173
dga_draw_sitechg function170
dga_draw_sitegetnotify function173
dga_draw_sitesetnotify function172
dga_draw_type function167
DGA_DRAW_UNLOCK macro163
DGA_DRAW_UNLOCK_SRC_AND_DST macro165
dga_draw_visibility function177
dga_draw_visibility function,recommended use note179
dga_draw_widinfop function203
DGA_INIT macro159
dga_win_dbinfop function200
DgaAvail function211
dgaCacheDescribeDev function226
dgaCacheStateChange function227
DgaDevFuncsDraw structure210
dgaDevInfoChange function229
dgaDevInfoGet function228
dgaMbCrtSetInfo function223
dgaMbGetBufferInfo function226
dgaMbIsMultibuffer function225
dgaMbSetBufViewability function224
dgaMbSetDisplayBuf function225
dgaScreenInit function210
dgaSharedDataInfo function227
direct color LUT, simulating indirect colorLUT114
directAccessDPS function275
directAccessEnd function274
directAccessStart function274
DisplayMultibuffer function149
document conventionsxxi
drawable site types, definition156
drawables, definition154

E

export supported visuals21
extensions
......requirements for dynamicallyloading315 to 316

F

FcsSetup function218
features, new this releasexxiii
firm_event structure311 to 313
freeMpgInfo function60
ftp programxxxi

G

gamma-corrected visuals24 to 27
GetClutInfos function80
GetDevname macro17
getMpgInfoFromVisual function59
GrabDrawable function212
GrabDrawable function, first grabnotes212

H

hardware cursor34 to 44
hardware window IDs85 to 86
hardwareSpriteFuncs array43

I

indirect color LUT, simulating direct colorLUT114
InitBellFeedbackClassDeviceStructfunction249
InitButtonClassDeviceStructfunction244
InitFocusClassDeviceStruct function246
initialization
.....device dependent17
.....function7
.....PowerPC example8
.....SPARC example8
.....steps14
.....x86 example8
InitIntegerFeedbackClassDeviceStructfunction250
InitKbdFeedbackClassDeviceStructfunction247
InitKeyboardDeviceStruct function242
InitKeyClassDeviceStruct function243
InitLedFeedbackClassDeviceStructfunction248
initPixmap function48
InitPointerDeviceStruct function242
InitProximityClassDeviceStructfunction246
InitPtrFeedbackClassDeviceStructfunction247
InitStringFeedbackClassDeviceStructfunction249
InitValuatorAxisStruct function245
InitValuatorClassDeviceStructfunction244
Input extension library
......overview232
......adding a device236 to 241
......block diagram232
......close device236
......debugging the device handler240
......device control procedure237
......device shared functions260 to 268
......device-dependent procedures240
......enqueue device procedure239
......functions241 to 268
......get device events procedure238
......initialization233
......open device234
......OWconfig file entry240
......prerequisite MIT documents231
......reading devices data flowdiagram235
......reading input data234
......restart and shutdown236
......STREAMS module241
......VUID
............overview309
............device controls313
............firm events311 to 313
............firm_event structure311
............station codes310
......writing the device handler237 to 240
intended audiencexvii

L

LastUpdateTime function151
libraries
......colormap (CMAP)105 to 140
......DGA drawable client153 to 205
.....DGA drawable DDX209 to 229
.....Input extension231 to 268
.....MBX141 to 151
.....multiple plane group (MPG)45 to 64
.....overlay windows (OVL)67 to 84
.....where to initialize21
.....window ID (WID)85 to 103
loadable DDX handler
.....device self-identification8
.....initialization function7
.....installation hints303 to 304
.....packaging hints304 to 307
.....versioning9 to 11
loadable DDX interface
.....debugging note6
.....how the server interfaces with5

M

MakeAtom function258
mapped-access devices110
MBX library
.....functions143 to 151
.....initialization function, last releasenote143
.....multibuffer flip modes142
.....windows and sets, definitions141
MbxDevFuncs structure144
MbxScreenInit function143
miDC layer30 to 32
mieqEnqueue function254
mieqUpdateKbdPtr function254
minimize window exposures, how to61 to 64
miPointer layer32 to 33
miPointerAbsoluteCursor function256
miPointerDeltaCursor function255
miPointerPosition function255
miPointerScreenFuncs32
miPointerSpriteFuncs32
miPointerSpriteFuncs sample code37 to 40
miSetZeroLineBias function34
miSprite layer33 to 34
MIT sample server, how to accessxx
MIT sample server, portinginformationxx
MPG info, definition46
MPG library
......architecture overview45 to 48
......data structure initialization47
......data structure initialization codeexample48
......functions48 to 64
......initialization order with DGAnote58
......interface diagram46
......macros52
......plane group aliasing53
......with WID88, 89
MPG_DRAW, use with note53
mpg_priv_scr macro63
mpgChangeInfo function59
mpgCopyPlanes function62
mpgCursorInitialize function60
mpgGetScreenState49
mpgInfo, changing diagram120
mpgInsertPlanegroup function51
mpgScreenInit function57
mpgSetCursorHasEnable function61
mpgSetCursorValues61
mpgSetScreenFuncs function65
mpgVisInfo diagram119
multibuffer flip modes142
mutiple plane support3

N

new featuresxxiii
NextBlockHandler function258
NextWakeupHandler function257

O

other applicable documentsxix
overview
.....DDX Interface2
.....utility libraries2
OVL library
.....introduction67
.....device setup68 to 71
............control plane group70
............custom71
............shared71
............transparent pixel69
.....initialization72 to 73
.....MPG dependency note68
OvlDevFuncs structure76
ovlGetPaintType function75
ovlIsOverlay function75
OvlPairs structure73
ovlScreenInit function73
ovlWrapDevFuncs function74
OWconfig file
.....access method
............functions297 to 300
............packaging300
............typical usage300
.....attributes, list of290
.....file and module search paths291
.....file format definition289
.....PowerPC example file288
.....SPARC example file284
.....x86 example file286
.....XDISPLAY class292
.....XEXTENSION class296
.....XSCREEN class294
.....XSCREENCONFIG class293
OWconfig file
.....search path, PowerPC291
.....search path, SPARC291
.....search path, x86291
OWconfigFreeAttribute function299
OWconfigFreeClassNames298
OWconfigFreeClassNames function298
OWconfigGetAttribute function298
OWconfigGetClassNames298
OWconfigGetClassNames function298
OWconfigGetInstance function299

P

pixmap formats supported19
plane group aliasing53
prerequisite knowledgexvii

R

ReadScreen function82
ReadScreenInit function81
ReadScreenUninit function83
RegisterChangeDeviceControlProcfunction252
RegisterFdIo function250
RegisterHandlers function256
RegisterModifierCheckProc function251
RegisterSetDeviceModeProcfunction251
RegisterSetDeviceValuatorsProcfunction252
RegisterXKeyboardInterest253
RegisterXPointerInterest function253
RemoveEnableDevice function259
RemoveHandlers function257
RepositionMultibuffer function149
ResizeMultibuffer function148

S

SaveScreen function22
SaveScreen function, sample code23
screen pixmap, definition46
screenFuncs function43
ScreenRec function15
SetMultibufferVisible function151
SetupMultibufferInvisible function150
SetupScreen function50
shared device with OVL71
ShmRegisterFbFuncs function280
ShmRegisterFuncs function281
ShmSetPixmapFormat function281
simple frame buffer support3
software cursor30 to 34
software WID object86
StereoSetup function219
storeColorsFunc example code112
Sun mouse, server constraints note30
sunDPAAccessType function273
sunGetDDKVersion function15
sunGetMonitorRes function20
sunGetVisualInfo function20
sunHWCursor functions42 to 44
sunHWCursor layer41 to 44
sunInitBanner function21
sunOpenFrameBuffer function, do not usenote17
sunPutInHardware function43
sunQueryBestSize function42
sunSaveScreen function, do not usenote23
sunScreenAllocate function16
sunScreenInit function, do not usenote22
sunScreenRec data structure, minimizedependencies note18
sunSetPixmapFormat function18
sunSprite layer35 to 36
SwitchScreen function58
SyncDrawable function221

T

take_down_func structure181
take_down_func structure, call note182
transparent pixel device with OVL69
TryMpg function144

U

UngrabDrawable function213
UngrabDrawable function, first grabnote213
UnsyncDrawable function221

V

virtual user input device (vuid)interface309 to 313
visfunc function197
vrtfunc function194

W

WID library
......allocation function examplecode101
......changing a WID with CMAP134
......data types90 to 92
......device-dependent allocation100
......free functions100, 102
......functions93 to 100
......hardware85 to 86
......how to access88
......object attributes86 to 88
......overloading WIDs with CMAPlibrary131
......pixel attributes, definition85
......using CMAP89
......using MPG88, 89
......with DDX handlers88
widAllocate function94
WidAllocFunc structure91
widAllocObj function99
widDecref function95
WidFreeFunc structure92
widFreeObj function100
widGetColorLut function98
widGetDevData function97
widGetFlavor function97
widGetNumber function96
widGetScreen function95
widGetUnique function97
widGetValue function96
widGetVisual function95
widGetWindowWid function99
widIncref function94
WidPtr structure90
widScreenClose function93
widScreenInit function93
widSetColorLut function98
WidSetColorLutFunc structure92
widSetDevData function97
WidSetup function217
widSetValue function96, 99
widSetWindowWid function98
widWinGetValue function96
wx_dbuf structure, device-specificfield216

X

XDgaDrawGrabFCS function203
XDgaDrawGrabStereo function204
XDgaDrawGrabWids function202
XDgaGrabColormap function188
XDgaGrabDrawable function160
XDgaUnGrabColormap function190
XDgaUnGrabDrawable function161
XDISPLAY class292
XEXTENSION class296
XI_event structure withDeviceEnqueueProc functionnote261
XOvlClutInfo structure76
XSCREEN class294
XSCREENCONFIG class293

Z

ZbufSetup function219