SDL_UserEvent.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_UserEvent" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_UserEvent- A user-defined event type
- .SH "STRUCTURE DEFINITION"
- .PP
- .nf
- f(CWtypedef struct{
- Uint8 type;
- int code;
- void *data1;
- void *data2;
- } SDL_UserEvent;fR
- .fi
- .PP
- .SH "STRUCTURE DATA"
- .TP 20
- fBtypefR
- fBSDL_USEREVENTfP through to fBSDL_NUMEVENTS-1fP
- .TP 20
- fBcodefR
- User defined event code
- .TP 20
- fBdata1fR
- User defined data pointer
- .TP 20
- fBdata2fR
- User defined data pointer
- .SH "DESCRIPTION"
- .PP
- fBSDL_UserEventfR is in the fBuserfR member of the structure fIfBSDL_EventfRfR&. This event is unique, it is never created by SDL but only by the user&. The event can be pushed onto the event queue using fIfBSDL_PushEventfPfR&. The contents of the structure members or completely up to the programmer, the only requirement is that fBtypefR is a value from fBSDL_USEREVENTfP to fBSDL_NUMEVENTS-1fP (inclusive)&.
- .SH "EXAMPLES"
- .PP
- .PP
- .nf
- f(CWSDL_Event event;
- event&.type = SDL_USEREVENT;
- event&.user&.code = my_event_code;
- event&.user&.data1 = significant_data;
- event&.user&.data2 = 0;
- SDL_PushEvent(&event);fR
- .fi
- .PP
- .SH "SEE ALSO"
- .PP
- fIfBSDL_EventfRfR, fIfBSDL_PushEventfPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00