ReactOS 0.4.15-dev-7953-g1f49173
gdi_driver.h File Reference

Go to the source code of this file.

Classes

struct  gdi_physdev
 
struct  bitblt_coords
 
struct  gdi_image_bits
 
struct  brush_pattern
 
struct  gdi_dc_funcs
 
struct  window_surface_funcs
 
struct  window_surface
 

Macros

#define WINE_GDI_DRIVER_VERSION   49
 
#define GDI_PRIORITY_NULL_DRV   0 /* null driver */
 
#define GDI_PRIORITY_FONT_DRV   100 /* any font driver */
 
#define GDI_PRIORITY_GRAPHICS_DRV   200 /* any graphics driver */
 
#define GDI_PRIORITY_DIB_DRV   300 /* the DIB driver */
 
#define GDI_PRIORITY_PATH_DRV   400 /* the path driver */
 
#define GET_NEXT_PHYSDEV(dev, func)    get_physdev_entry_point( (dev)->next, FIELD_OFFSET(struct gdi_dc_funcs,func))
 
#define DCHC_INVALIDVISRGN   0x0001
 
#define DCHC_DELETEDC   0x0002
 
#define DCHF_INVALIDATEVISRGN   0x0001
 
#define DCHF_VALIDATEVISRGN   0x0002
 
#define DCHF_RESETDC   0x0004 /* Wine extension */
 

Typedefs

typedef struct gdi_physdevPHYSDEV
 
typedef BOOL(CALLBACKDCHOOKPROC) (HDC, WORD, DWORD_PTR, LPARAM)
 

Functions

static PHYSDEV get_physdev_entry_point (PHYSDEV dev, size_t offset)
 
static ULONG window_surface_add_ref (struct window_surface *surface)
 
static ULONG window_surface_release (struct window_surface *surface)
 
WINGDIAPI DWORD_PTR WINAPI GetDCHook (HDC, DCHOOKPROC *)
 
WINGDIAPI BOOL WINAPI SetDCHook (HDC, DCHOOKPROC, DWORD_PTR)
 
WINGDIAPI WORD WINAPI SetHookFlags (HDC, WORD)
 
void CDECL __wine_make_gdi_object_system (HGDIOBJ handle, BOOL set)
 
void CDECL __wine_set_visible_region (HDC hdc, HRGN hrgn, const RECT *vis_rect, const RECT *device_rect, struct window_surface *surface)
 
void CDECL __wine_set_display_driver (HMODULE module)
 
struct opengl_funcs *CDECL __wine_get_wgl_driver (HDC hdc, UINT version)
 

Macro Definition Documentation

◆ DCHC_DELETEDC

#define DCHC_DELETEDC   0x0002

Definition at line 266 of file gdi_driver.h.

◆ DCHC_INVALIDVISRGN

#define DCHC_INVALIDVISRGN   0x0001

Definition at line 265 of file gdi_driver.h.

◆ DCHF_INVALIDATEVISRGN

#define DCHF_INVALIDATEVISRGN   0x0001

Definition at line 267 of file gdi_driver.h.

◆ DCHF_RESETDC

#define DCHF_RESETDC   0x0004 /* Wine extension */

Definition at line 269 of file gdi_driver.h.

◆ DCHF_VALIDATEVISRGN

#define DCHF_VALIDATEVISRGN   0x0002

Definition at line 268 of file gdi_driver.h.

◆ GDI_PRIORITY_DIB_DRV

#define GDI_PRIORITY_DIB_DRV   300 /* the DIB driver */

Definition at line 206 of file gdi_driver.h.

◆ GDI_PRIORITY_FONT_DRV

#define GDI_PRIORITY_FONT_DRV   100 /* any font driver */

Definition at line 204 of file gdi_driver.h.

◆ GDI_PRIORITY_GRAPHICS_DRV

#define GDI_PRIORITY_GRAPHICS_DRV   200 /* any graphics driver */

Definition at line 205 of file gdi_driver.h.

◆ GDI_PRIORITY_NULL_DRV

#define GDI_PRIORITY_NULL_DRV   0 /* null driver */

Definition at line 203 of file gdi_driver.h.

◆ GDI_PRIORITY_PATH_DRV

#define GDI_PRIORITY_PATH_DRV   400 /* the path driver */

Definition at line 207 of file gdi_driver.h.

◆ GET_NEXT_PHYSDEV

#define GET_NEXT_PHYSDEV (   dev,
  func 
)     get_physdev_entry_point( (dev)->next, FIELD_OFFSET(struct gdi_dc_funcs,func))

Definition at line 215 of file gdi_driver.h.

◆ WINE_GDI_DRIVER_VERSION

#define WINE_GDI_DRIVER_VERSION   49

Definition at line 201 of file gdi_driver.h.

Typedef Documentation

◆ DCHOOKPROC

typedef BOOL(CALLBACK * DCHOOKPROC) (HDC, WORD, DWORD_PTR, LPARAM)

Definition at line 271 of file gdi_driver.h.

◆ PHYSDEV

Function Documentation

◆ __wine_get_wgl_driver()

struct opengl_funcs *CDECL __wine_get_wgl_driver ( HDC  hdc,
UINT  version 
)

◆ __wine_make_gdi_object_system()

void CDECL __wine_make_gdi_object_system ( HGDIOBJ  handle,
BOOL  set 
)

◆ __wine_set_display_driver()

void CDECL __wine_set_display_driver ( HMODULE  module)

◆ __wine_set_visible_region()

void CDECL __wine_set_visible_region ( HDC  hdc,
HRGN  hrgn,
const RECT vis_rect,
const RECT device_rect,
struct window_surface surface 
)

◆ get_physdev_entry_point()

static PHYSDEV get_physdev_entry_point ( PHYSDEV  dev,
size_t  offset 
)
inlinestatic

Definition at line 209 of file gdi_driver.h.

210{
211 while (!((void **)dev->funcs)[offset / sizeof(void *)]) dev = dev->next;
212 return dev;
213}
GLintptr offset
Definition: glext.h:5920

◆ GetDCHook()

WINGDIAPI DWORD_PTR WINAPI GetDCHook ( HDC  ,
DCHOOKPROC  
)

◆ SetDCHook()

WINGDIAPI BOOL WINAPI SetDCHook ( HDC  ,
DCHOOKPROC  ,
DWORD_PTR   
)

◆ SetHookFlags()

WINGDIAPI WORD WINAPI SetHookFlags ( HDC  ,
WORD   
)

◆ window_surface_add_ref()

static ULONG window_surface_add_ref ( struct window_surface surface)
inlinestatic

Definition at line 251 of file gdi_driver.h.

252{
253 return InterlockedIncrement( &surface->ref );
254}
#define InterlockedIncrement
Definition: armddk.h:53

◆ window_surface_release()

static ULONG window_surface_release ( struct window_surface surface)
inlinestatic

Definition at line 256 of file gdi_driver.h.

257{
258 ULONG ret = InterlockedDecrement( &surface->ref );
259 if (!ret) surface->funcs->destroy( surface );
260 return ret;
261}
#define InterlockedDecrement
Definition: armddk.h:52
const struct window_surface_funcs * funcs
Definition: gdi_driver.h:244
uint32_t ULONG
Definition: typedefs.h:59
int ret