libgpac
Documentation of the core library of GPAC
dx_window.c File Reference
#include "dx_hw.h"
#include <gpac/utf.h>
#include "resource.h"
+ Include dependency graph for dx_window.c:

Data Structures

struct  WINKeyToGPAC
 

Macros

#define WM_MOUSEWHEEL   0x020A
 
#define WHEEL_DELTA   120
 
#define MOUSE_HIDE_TIMEOUT   1000
 
#define WS_EX_LAYERED   0x80000
 
#define LWA_COLORKEY   0x00000001
 
#define LWA_ALPHA   0x00000002
 

Typedefs

typedef BOOL(WINAPI * typSetLayeredWindowAttributes) (HWND, COLORREF, BYTE, DWORD)
 

Functions

void DD_SetCursor (GF_VideoOutput *dr, u32 cursor_type)
 
static void DD_GetCoordinates (LPARAM lParam, GF_Event *evt)
 
static void w32_translate_key (WPARAM wParam, LPARAM lParam, GF_EventKey *evt)
 
static void mouse_move (DDContext *ctx, GF_VideoOutput *vout)
 
static void mouse_start_timer (DDContext *ctx, HWND hWnd, GF_VideoOutput *vout)
 
void grab_mouse (DDContext *ctx, GF_VideoOutput *vout)
 
void release_mouse (DDContext *ctx, HWND hWnd, GF_VideoOutput *vout)
 
LRESULT APIENTRY DD_WindowProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
static void SetWindowless (GF_VideoOutput *vout, HWND hWnd)
 
Bool DD_InitWindows (GF_VideoOutput *vout, DDContext *ctx)
 
u32 DD_WindowThread (void *par)
 
void DD_SetupWindow (GF_VideoOutput *dr, u32 flags)
 
static void dd_closewindow (HWND hWnd)
 
void DD_ShutdownWindow (GF_VideoOutput *dr)
 
HWND DD_GetGlobalHWND ()
 
static u32 get_sys_col (int idx)
 
GF_Err DD_ProcessEvent (GF_VideoOutput *dr, GF_Event *evt)
 

Variables

static const GF_VideoOutputthe_video_output = NULL
 
static WINKeyToGPAC WINKeys []
 
static u32 num_win_keys = sizeof(WINKeys) / sizeof(WINKeyToGPAC)
 

Data Structure Documentation

◆ WINKeyToGPAC

struct WINKeyToGPAC
Data Fields
u32 win_key
u32 gf_key
u32 gf_flags

Macro Definition Documentation

◆ WM_MOUSEWHEEL

#define WM_MOUSEWHEEL   0x020A

◆ WHEEL_DELTA

#define WHEEL_DELTA   120

◆ MOUSE_HIDE_TIMEOUT

#define MOUSE_HIDE_TIMEOUT   1000

◆ WS_EX_LAYERED

#define WS_EX_LAYERED   0x80000

◆ LWA_COLORKEY

#define LWA_COLORKEY   0x00000001

◆ LWA_ALPHA

#define LWA_ALPHA   0x00000002

Typedef Documentation

◆ typSetLayeredWindowAttributes

typedef BOOL(WINAPI* typSetLayeredWindowAttributes) (HWND, COLORREF, BYTE, DWORD)

Function Documentation

◆ DD_SetCursor()

void DD_SetCursor ( GF_VideoOutput dr,
u32  cursor_type 
)
+ Here is the caller graph for this function:

◆ DD_GetCoordinates()

static void DD_GetCoordinates ( LPARAM  lParam,
GF_Event evt 
)
static
+ Here is the caller graph for this function:

◆ w32_translate_key()

static void w32_translate_key ( WPARAM  wParam,
LPARAM  lParam,
GF_EventKey evt 
)
static
+ Here is the caller graph for this function:

◆ mouse_move()

static void mouse_move ( DDContext ctx,
GF_VideoOutput vout 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouse_start_timer()

static void mouse_start_timer ( DDContext ctx,
HWND  hWnd,
GF_VideoOutput vout 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ grab_mouse()

void grab_mouse ( DDContext ctx,
GF_VideoOutput vout 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ release_mouse()

void release_mouse ( DDContext ctx,
HWND  hWnd,
GF_VideoOutput vout 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_WindowProc()

LRESULT APIENTRY DD_WindowProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetWindowless()

static void SetWindowless ( GF_VideoOutput vout,
HWND  hWnd 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_InitWindows()

Bool DD_InitWindows ( GF_VideoOutput vout,
DDContext ctx 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_WindowThread()

u32 DD_WindowThread ( void *  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_SetupWindow()

void DD_SetupWindow ( GF_VideoOutput dr,
u32  flags 
)
+ Here is the call graph for this function:

◆ dd_closewindow()

static void dd_closewindow ( HWND  hWnd)
static
+ Here is the caller graph for this function:

◆ DD_ShutdownWindow()

void DD_ShutdownWindow ( GF_VideoOutput dr)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DD_GetGlobalHWND()

HWND DD_GetGlobalHWND ( )
+ Here is the caller graph for this function:

◆ get_sys_col()

static u32 get_sys_col ( int  idx)
static
+ Here is the caller graph for this function:

◆ DD_ProcessEvent()

GF_Err DD_ProcessEvent ( GF_VideoOutput dr,
GF_Event evt 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ the_video_output

const GF_VideoOutput* the_video_output = NULL
static

◆ WINKeys

WINKeyToGPAC WINKeys[]
static

◆ num_win_keys

u32 num_win_keys = sizeof(WINKeys) / sizeof(WINKeyToGPAC)
static