Annotation of hatari/src/includes/view.h, revision 1.1.1.1

1.1       root        1: /*
                      2:   Hatari
                      3: */
                      4: 
                      5: #define SCREEN_AREA_STARTX  1    /* Start coords of client area */
                      6: #define SCREEN_AREA_STARTY  27
                      7: 
                      8: #define  BORDER_WIDTH  2         /* Speed/Status bar width and height */
                      9: #define  BORDER_HEIGHT  (27+18)  /* Height of Speed/Status bar */
                     10: 
                     11: 
                     12: // List of resource bitmaps used to draw view
                     13: enum {
                     14:   BITMAP_TOOLBAR_ICONS,
                     15:   BITMAP_GRILL,
                     16:   BITMAP_RESIZE,
                     17:   BITMAP_TOOLBAR_MENU,
                     18:   BITMAP_TOOLBAR_SEPARATOR,
                     19:   BITMAP_STATUSBAR_ICONS,
                     20: 
                     21:   MAX_BITMAPS
                     22: };
                     23: 
                     24: // List of cursors used (store original to restore when exit)
                     25: enum {
                     26:   CURSOR_ORIGINAL,
                     27:   CURSOR_ARROW,
                     28:   CURSOR_NULL,
                     29:   CURSOR_HOURGLASS,
                     30: 
                     31:   MAX_CURSORS
                     32: };
                     33: 
                     34: // Values for View_ToggleWindowsMouse()
                     35: enum {                // Parameter for windows mouse
                     36:   MOUSE_TOGGLE,
                     37:   MOUSE_ST,
                     38:   MOUSE_WINDOWS
                     39: };
                     40: 
                     41: #define NUM_FLOPPYA_MENU_ITEMS  4            // Insert previous disc images name AFTER this item
                     42: #define NUM_FLOPPYB_MENU_ITEMS  3
                     43: #define MAX_FLOPPY_MENU_IMAGES  4            // Show last 4 disc image filenames loaded
                     44: 
                     45: //extern HBITMAP Bitmaps[MAX_BITMAPS];
                     46: //extern HCURSOR Cursors[MAX_CURSORS];
                     47: extern BOOL bWindowsMouseMode;
                     48: //extern RECT WindowInitRect;
                     49: //extern RECT MinWindowBorderSizes[2][3];
                     50: //extern HMENU hFullScreenMenu;
                     51: extern char szPreviousImageFilenames[2][MAX_FLOPPY_MENU_IMAGES][MAX_FILENAME_LENGTH];
                     52: extern int nPreviousImageFilenames[2];
                     53: 
                     54: extern void View_DefaultWindowPos(void);
                     55: extern void View_CreateWindow(void);
                     56: extern void View_CloseWindow(void);
                     57: extern void View_ShowWindow(void);
                     58: extern void View_LoadBitmaps(void);
                     59: extern void View_FreeBitmaps(void);
                     60: extern void View_CheckMenuItem(int Control,BOOL bState);
                     61: extern void View_SetMenuChecks(void);
                     62: //extern void View_SetMenuFileNames(HMENU hMenu, int InitMenuItem,int Drive);
                     63: extern void View_AddMenuFileName(int Drive,char *pszFileName);
                     64: extern void View_SetFullScreenMenu(void);
                     65: //extern void View_DrawBackgroundRect(HDC hDC,RECT *pRect);
                     66: //extern void View_DrawBackgroundLineLight(HDC hDC,int x,int y,int x2,int y2);
                     67: //extern void View_DrawBackgroundLineShadow(HDC hDC,int x,int y,int x2,int y2);
                     68: extern void View_DrawMenu(void);
                     69: extern void View_LimitCursorToScreen(void);
                     70: extern void View_LimitCursorToClient(void);
                     71: extern BOOL View_ToggleWindowsMouse(int ForceToMode);
                     72: extern void View_DebounceAllKeys(void);
                     73: //extern void View_CheckMouseAtEdgeOfScreen(HWND hWnd,int MouseX,int MouseY);
                     74: extern void View_UpdateSTMousePosition(void);
                     75: extern void View_KeyDown(unsigned int sdlkey, unsigned int sdlmod);
                     76: extern void View_KeyUp(unsigned int sdlkey, unsigned int sdlmod);
                     77: //extern void View_MouseMove(HWND hWnd,UINT wParam,LONG lParam);
                     78: extern void View_LeftMouseButtonDown(void);
                     79: extern void View_LeftMouseButtonUp(void);
                     80: extern void View_RightMouseButtonDown(void);
                     81: extern void View_RightMouseButtonUp(void);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.