FreeBASIC  0.91.0
fb_gfx_win32.h File Reference
#include <windows.h>
Include dependency graph for fb_gfx_win32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FB_FLASHWINFO
 
struct  WIN32DRIVER
 

Macros

#define WINDOW_CLASS_PREFIX   "fbgfxclass_"
 
#define WINDOW_CLASS_SIZE   (sizeof( WINDOW_CLASS_PREFIX ) + (sizeof( void * ) * 2))
 

Typedefs

typedef struct FB_FLASHWINFOPFB_FLASHWINFO
 
typedef BOOL(WINAPI * SETLAYEREDWINDOWATTRIBUTES )(HWND hWnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags)
 
typedef HMONITOR(WINAPI * MONITORFROMWINDOW )(HWND hwnd, DWORD dwFlags)
 
typedef HMONITOR(WINAPI * MONITORFROMPOINT )(POINT pt, DWORD dwFlags)
 
typedef BOOL(WINAPI * FLASHWINDOWEX )(PFB_FLASHWINFO pwfi)
 
typedef BOOL(WINAPI * _TRACKMOUSEEVENT )(TRACKMOUSEEVENT *)
 
typedef BOOL(WINAPI * GETMONITORINFO )(HMONITOR hMonitor, LPMONITORINFO lpmi)
 
typedef LONG(WINAPI * CHANGEDISPLAYSETTINGSEX )(LPCTSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam)
 

Functions

LRESULT CALLBACK fb_hWin32WinProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 
void fb_hHandleMessages (void)
 
int fb_hInitWindow (DWORD style, DWORD ex_style, int x, int y, int w, int h)
 
int fb_hWin32Init (char *title, int w, int h, int depth, int refresh_rate, int flags)
 
void fb_hWin32Exit (void)
 
void fb_hWin32Lock (void)
 
void fb_hWin32Unlock (void)
 
void fb_hWin32SetPalette (int index, int r, int g, int b)
 
void fb_hWin32WaitVSync (void)
 
int fb_hWin32GetMouse (int *x, int *y, int *z, int *buttons, int *clip)
 
void fb_hWin32SetMouse (int x, int y, int cursor, int clip)
 
void fb_hWin32SetWindowTitle (char *title)
 
int fb_hWin32SetWindowPos (int x, int y)
 

Variables

WIN32DRIVER fb_win32
 
GFXDRIVER fb_gfxDriverDirectDraw
 
GFXDRIVER fb_gfxDriverGDI
 
GFXDRIVER fb_gfxDriverOpenGL
 
const unsigned char __fb_keytable [][3]
 

Macro Definition Documentation

#define WINDOW_CLASS_PREFIX   "fbgfxclass_"

Definition at line 9 of file fb_gfx_win32.h.

#define WINDOW_CLASS_SIZE   (sizeof( WINDOW_CLASS_PREFIX ) + (sizeof( void * ) * 2))

Definition at line 10 of file fb_gfx_win32.h.

Typedef Documentation

typedef BOOL(WINAPI * _TRACKMOUSEEVENT)(TRACKMOUSEEVENT *)

Definition at line 29 of file fb_gfx_win32.h.

typedef LONG(WINAPI * CHANGEDISPLAYSETTINGSEX)(LPCTSTR lpszDeviceName, LPDEVMODE lpDevMode, HWND hwnd, DWORD dwflags, LPVOID lParam)

Definition at line 31 of file fb_gfx_win32.h.

typedef BOOL(WINAPI * FLASHWINDOWEX)(PFB_FLASHWINFO pwfi)

Definition at line 28 of file fb_gfx_win32.h.

typedef BOOL(WINAPI * GETMONITORINFO)(HMONITOR hMonitor, LPMONITORINFO lpmi)

Definition at line 30 of file fb_gfx_win32.h.

typedef HMONITOR(WINAPI * MONITORFROMPOINT)(POINT pt, DWORD dwFlags)

Definition at line 27 of file fb_gfx_win32.h.

typedef HMONITOR(WINAPI * MONITORFROMWINDOW)(HWND hwnd, DWORD dwFlags)

Definition at line 26 of file fb_gfx_win32.h.

typedef struct FB_FLASHWINFO * PFB_FLASHWINFO
typedef BOOL(WINAPI * SETLAYEREDWINDOWATTRIBUTES)(HWND hWnd, COLORREF crKey, BYTE bAlpha, DWORD dwFlags)

Definition at line 25 of file fb_gfx_win32.h.

Function Documentation

void fb_hHandleMessages ( void  )

Definition at line 488 of file gfx_win32.c.

Here is the caller graph for this function:

int fb_hInitWindow ( DWORD  style,
DWORD  ex_style,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 497 of file gfx_win32.c.

Here is the caller graph for this function:

void fb_hWin32Exit ( void  )

Definition at line 616 of file gfx_win32.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_hWin32GetMouse ( int *  x,
int *  y,
int *  z,
int *  buttons,
int *  clip 
)

Definition at line 673 of file gfx_win32.c.

int fb_hWin32Init ( char *  title,
int  w,
int  h,
int  depth,
int  refresh_rate,
int  flags 
)

Definition at line 514 of file gfx_win32.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_hWin32Lock ( void  )

Definition at line 649 of file gfx_win32.c.

Here is the caller graph for this function:

void fb_hWin32SetMouse ( int  x,
int  y,
int  cursor,
int  clip 
)

Definition at line 687 of file gfx_win32.c.

Here is the call graph for this function:

void fb_hWin32SetPalette ( int  index,
int  r,
int  g,
int  b 
)

Definition at line 659 of file gfx_win32.c.

int fb_hWin32SetWindowPos ( int  x,
int  y 
)

Definition at line 730 of file gfx_win32.c.

void fb_hWin32SetWindowTitle ( char *  title)

Definition at line 720 of file gfx_win32.c.

void fb_hWin32Unlock ( void  )

Definition at line 654 of file gfx_win32.c.

Here is the caller graph for this function:

void fb_hWin32WaitVSync ( void  )

Definition at line 668 of file gfx_win32.c.

LRESULT CALLBACK fb_hWin32WinProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 136 of file gfx_win32.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const unsigned char __fb_keytable[][3]

Definition at line 6 of file io_multikey.c.

GFXDRIVER fb_gfxDriverDirectDraw

Definition at line 26 of file gfx_driver_ddraw.c.

GFXDRIVER fb_gfxDriverGDI

Definition at line 14 of file gfx_driver_gdi.c.

GFXDRIVER fb_gfxDriverOpenGL

Definition at line 23 of file gfx_driver_opengl_x11.c.

WIN32DRIVER fb_win32

Definition at line 29 of file gfx_win32.c.