Expand description
Rust high level bindings to dos-like
,
the library/framework for writing applications that look
like MS-DOS programs from the 1990’s.
The bindings are directly generated from the original source code.
§Using
This crate does not function as a regular library,
because it already defines a main
function by itself.
Attempting to create your own executable with its own main
function
will result in a linker error.
For the building process to work,
the main source file needs the no_main
attribute
and to define an extern C function dosmain
instead.
#![no_main]
#[no_mangle]
pub extern "C" fn dosmain() -> i32 {
// your code here
0
}
Structs§
Constants§
- DEFAULT_
FONT_ 8X8 - DEFAULT_
FONT_ 8X16 - DEFAULT_
FONT_ 9X16 - DEFAULT_
SOUNDBANK_ AWE32 - DEFAULT_
SOUNDBANK_ SB16 - KEY_
MODIFIER_ RELEASED - MUSIC_
CHANNELS - SOUND_
CHANNELS - keycode_
t_ KEYCOUNT - keycode_
t_ KEYPADDING - keycode_
t_ KEY_ 0 - keycode_
t_ KEY_ 1 - keycode_
t_ KEY_ 2 - keycode_
t_ KEY_ 3 - keycode_
t_ KEY_ 4 - keycode_
t_ KEY_ 5 - keycode_
t_ KEY_ 6 - keycode_
t_ KEY_ 7 - keycode_
t_ KEY_ 8 - keycode_
t_ KEY_ 9 - keycode_
t_ KEY_ A - keycode_
t_ KEY_ ACCEPT - keycode_
t_ KEY_ ADD - keycode_
t_ KEY_ APPS - keycode_
t_ KEY_ ATTN - keycode_
t_ KEY_ B - keycode_
t_ KEY_ BACK - keycode_
t_ KEY_ BROWSER_ BACK - keycode_
t_ KEY_ BROWSER_ FAVORITES - keycode_
t_ KEY_ BROWSER_ FORWARD - keycode_
t_ KEY_ BROWSER_ HOME - keycode_
t_ KEY_ BROWSER_ REFRESH - keycode_
t_ KEY_ BROWSER_ SEARCH - keycode_
t_ KEY_ BROWSER_ STOP - keycode_
t_ KEY_ C - keycode_
t_ KEY_ CANCEL - keycode_
t_ KEY_ CAPITAL - keycode_
t_ KEY_ CLEAR - keycode_
t_ KEY_ CONTROL - keycode_
t_ KEY_ CONVERT - keycode_
t_ KEY_ CRSEL - keycode_
t_ KEY_ D - keycode_
t_ KEY_ DECIMAL - keycode_
t_ KEY_ DELETE - keycode_
t_ KEY_ DIVIDE - keycode_
t_ KEY_ DOWN - keycode_
t_ KEY_ E - keycode_
t_ KEY_ END - keycode_
t_ KEY_ EREOF - keycode_
t_ KEY_ ESCAPE - keycode_
t_ KEY_ EXEC - keycode_
t_ KEY_ EXSEL - keycode_
t_ KEY_ F - keycode_
t_ KEY_ F1 - keycode_
t_ KEY_ F2 - keycode_
t_ KEY_ F3 - keycode_
t_ KEY_ F4 - keycode_
t_ KEY_ F5 - keycode_
t_ KEY_ F6 - keycode_
t_ KEY_ F7 - keycode_
t_ KEY_ F8 - keycode_
t_ KEY_ F9 - keycode_
t_ KEY_ F10 - keycode_
t_ KEY_ F11 - keycode_
t_ KEY_ F12 - keycode_
t_ KEY_ F13 - keycode_
t_ KEY_ F14 - keycode_
t_ KEY_ F15 - keycode_
t_ KEY_ F16 - keycode_
t_ KEY_ F17 - keycode_
t_ KEY_ F18 - keycode_
t_ KEY_ F19 - keycode_
t_ KEY_ F20 - keycode_
t_ KEY_ F21 - keycode_
t_ KEY_ F22 - keycode_
t_ KEY_ F23 - keycode_
t_ KEY_ F24 - keycode_
t_ KEY_ FINAL - keycode_
t_ KEY_ G - keycode_
t_ KEY_ H - keycode_
t_ KEY_ HANGUL - keycode_
t_ KEY_ HANJA - keycode_
t_ KEY_ HELP - keycode_
t_ KEY_ HOME - keycode_
t_ KEY_ I - keycode_
t_ KEY_ INSERT - keycode_
t_ KEY_ INVALID - keycode_
t_ KEY_ J - keycode_
t_ KEY_ JUNJA - keycode_
t_ KEY_ K - keycode_
t_ KEY_ KANA - keycode_
t_ KEY_ KANJI - keycode_
t_ KEY_ L - keycode_
t_ KEY_ LAUNCH_ APP1 - keycode_
t_ KEY_ LAUNCH_ APP2 - keycode_
t_ KEY_ LAUNCH_ MAIL - keycode_
t_ KEY_ LAUNCH_ MEDIA_ SELECT - keycode_
t_ KEY_ LBUTTON - keycode_
t_ KEY_ LCONTROL - keycode_
t_ KEY_ LEFT - keycode_
t_ KEY_ LMENU - keycode_
t_ KEY_ LSHIFT - keycode_
t_ KEY_ LWIN - keycode_
t_ KEY_ M - keycode_
t_ KEY_ MBUTTON - keycode_
t_ KEY_ MEDIA_ NEXT_ TRACK - keycode_
t_ KEY_ MEDIA_ PLAY_ PAUSE - keycode_
t_ KEY_ MEDIA_ PREV_ TRACK - keycode_
t_ KEY_ MEDIA_ STOP - keycode_
t_ KEY_ MENU - keycode_
t_ KEY_ MODECHANGE - keycode_
t_ KEY_ MULTIPLY - keycode_
t_ KEY_ N - keycode_
t_ KEY_ NEXT - keycode_
t_ KEY_ NONAME - keycode_
t_ KEY_ NONCONVERT - keycode_
t_ KEY_ NUMLOCK - keycode_
t_ KEY_ NUMPA D0 - keycode_
t_ KEY_ NUMPA D1 - keycode_
t_ KEY_ NUMPA D2 - keycode_
t_ KEY_ NUMPA D3 - keycode_
t_ KEY_ NUMPA D4 - keycode_
t_ KEY_ NUMPA D5 - keycode_
t_ KEY_ NUMPA D6 - keycode_
t_ KEY_ NUMPA D7 - keycode_
t_ KEY_ NUMPA D8 - keycode_
t_ KEY_ NUMPA D9 - keycode_
t_ KEY_ O - keycode_
t_ KEY_ OEM_ 1 - keycode_
t_ KEY_ OEM_ 2 - keycode_
t_ KEY_ OEM_ 3 - keycode_
t_ KEY_ OEM_ 4 - keycode_
t_ KEY_ OEM_ 5 - keycode_
t_ KEY_ OEM_ 6 - keycode_
t_ KEY_ OEM_ 7 - keycode_
t_ KEY_ OEM_ 8 - keycode_
t_ KEY_ OEM_ 102 - keycode_
t_ KEY_ OEM_ CLEAR - keycode_
t_ KEY_ OEM_ COMMA - keycode_
t_ KEY_ OEM_ MINUS - keycode_
t_ KEY_ OEM_ PERIOD - keycode_
t_ KEY_ OEM_ PLUS - keycode_
t_ KEY_ P - keycode_
t_ KEY_ PA1 - keycode_
t_ KEY_ PAUSE - keycode_
t_ KEY_ PLAY - keycode_
t_ KEY_ PRINT - keycode_
t_ KEY_ PRIOR - keycode_
t_ KEY_ PROCESSKEY - keycode_
t_ KEY_ Q - keycode_
t_ KEY_ R - keycode_
t_ KEY_ RBUTTON - keycode_
t_ KEY_ RCONTROL - keycode_
t_ KEY_ RETURN - keycode_
t_ KEY_ RIGHT - keycode_
t_ KEY_ RMENU - keycode_
t_ KEY_ RSHIFT - keycode_
t_ KEY_ RWIN - keycode_
t_ KEY_ S - keycode_
t_ KEY_ SCROLL - keycode_
t_ KEY_ SELECT - keycode_
t_ KEY_ SEPARATOR - keycode_
t_ KEY_ SHIFT - keycode_
t_ KEY_ SLEEP - keycode_
t_ KEY_ SNAPSHOT - keycode_
t_ KEY_ SPACE - keycode_
t_ KEY_ SUBTRACT - keycode_
t_ KEY_ T - keycode_
t_ KEY_ TAB - keycode_
t_ KEY_ U - keycode_
t_ KEY_ UP - keycode_
t_ KEY_ V - keycode_
t_ KEY_ VOLUME_ DOWN - keycode_
t_ KEY_ VOLUME_ MUTE - keycode_
t_ KEY_ VOLUME_ UP - keycode_
t_ KEY_ W - keycode_
t_ KEY_ X - keycode_
t_ KEY_ XBUTTO N1 - keycode_
t_ KEY_ XBUTTO N2 - keycode_
t_ KEY_ Y - keycode_
t_ KEY_ Z - keycode_
t_ KEY_ ZOOM - soundmode_
t_ soundmode_ 8bit_ mono_ 5000 - soundmode_
t_ soundmode_ 8bit_ mono_ 8000 - soundmode_
t_ soundmode_ 8bit_ mono_ 11025 - soundmode_
t_ soundmode_ 8bit_ mono_ 16000 - soundmode_
t_ soundmode_ 8bit_ mono_ 22050 - soundmode_
t_ soundmode_ 8bit_ mono_ 32000 - soundmode_
t_ soundmode_ 8bit_ mono_ 44100 - soundmode_
t_ soundmode_ 8bit_ stereo_ 5000 - soundmode_
t_ soundmode_ 8bit_ stereo_ 8000 - soundmode_
t_ soundmode_ 8bit_ stereo_ 11025 - soundmode_
t_ soundmode_ 8bit_ stereo_ 16000 - soundmode_
t_ soundmode_ 8bit_ stereo_ 22050 - soundmode_
t_ soundmode_ 8bit_ stereo_ 32000 - soundmode_
t_ soundmode_ 8bit_ stereo_ 44100 - soundmode_
t_ soundmode_ 16bit_ mono_ 5000 - soundmode_
t_ soundmode_ 16bit_ mono_ 8000 - soundmode_
t_ soundmode_ 16bit_ mono_ 11025 - soundmode_
t_ soundmode_ 16bit_ mono_ 16000 - soundmode_
t_ soundmode_ 16bit_ mono_ 22050 - soundmode_
t_ soundmode_ 16bit_ mono_ 32000 - soundmode_
t_ soundmode_ 16bit_ mono_ 44100 - soundmode_
t_ soundmode_ 16bit_ stereo_ 5000 - soundmode_
t_ soundmode_ 16bit_ stereo_ 8000 - soundmode_
t_ soundmode_ 16bit_ stereo_ 11025 - soundmode_
t_ soundmode_ 16bit_ stereo_ 16000 - soundmode_
t_ soundmode_ 16bit_ stereo_ 22050 - soundmode_
t_ soundmode_ 16bit_ stereo_ 32000 - soundmode_
t_ soundmode_ 16bit_ stereo_ 44100 - videomode_
t_ force_ size_ videomode - videomode_
t_ videomode_ 40x25_ 8x8 - videomode_
t_ videomode_ 40x25_ 9x16 - videomode_
t_ videomode_ 80x25_ 8x8 - videomode_
t_ videomode_ 80x25_ 8x16 - videomode_
t_ videomode_ 80x25_ 9x16 - videomode_
t_ videomode_ 80x43_ 8x8 - videomode_
t_ videomode_ 80x50_ 8x8 - videomode_
t_ videomode_ 320x200 - videomode_
t_ videomode_ 320x240 - videomode_
t_ videomode_ 320x400 - videomode_
t_ videomode_ 640x200 - videomode_
t_ videomode_ 640x350 - videomode_
t_ videomode_ 640x400 - videomode_
t_ videomode_ 640x480
Functions§
- allnotesoff⚠
- bar⚠
- blit⚠
- boundaryfill⚠
- centertextxy⚠
- circle⚠
- clearscreen⚠
- clrscr⚠
- cputs⚠
- createmus⚠
- createsound⚠
- cursoff⚠
- curson⚠
- drawpoly⚠
- ellipse⚠
- fillcircle⚠
- fillellipse⚠
- fillpoly⚠
- floodfill⚠
- getcolor⚠
- getpal⚠
- getpixel⚠
- gotoxy⚠
- hline⚠
- installuserfont⚠
- installusersoundbank⚠
- keystate⚠
- line⚠
- loadgif⚠
- loadmid⚠
- loadmod⚠
- loadmus⚠
- loadopb⚠
- loadwav⚠
- maskblit⚠
- mouserelx⚠
- mouserely⚠
- mousex⚠
- mousey⚠
- musicplaying⚠
- musicvolume⚠
- noteoff⚠
- noteon⚠
- outtextxy⚠
- playmusic⚠
- playsound⚠
- putpixel⚠
- readchars⚠
- readkeys⚠
- rectangle⚠
- resetdrawtarget⚠
- screenbuffer⚠
- screenheight⚠
- screenwidth⚠
- setcolor⚠
- setdoublebuffer⚠
- setdrawtarget⚠
- setinstrument⚠
- setpal⚠
- setsoundbank⚠
- setsoundmode⚠
- settextstyle⚠
- setvideomode⚠
- shuttingdown⚠
- soundplaying⚠
- soundvolume⚠
- stopmusic⚠
- stopsound⚠
- swapbuffers⚠
- textbackground⚠
- textcolor⚠
- waitvbl⚠
- wherex⚠
- wherey⚠
- wraptextxy⚠