FreeRDP
wf_event.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <winpr/assert.h>
#include <winpr/sysinfo.h>
#include <freerdp/freerdp.h>
#include "wf_client.h"
#include "wf_gdi.h"
#include "wf_event.h"
#include <freerdp/event.h>
#include <windowsx.h>

Macros

#define RESIZE_MIN_DELAY   200 /* minimum delay in ms between two resizes */
 

Functions

static BOOL wf_scale_blt (wfContext *wfc, HDC hdc, int x, int y, int w, int h, HDC hdcSrc, int x1, int y1, DWORD rop)
 
static BOOL wf_scale_mouse_event (wfContext *wfc, UINT16 flags, INT32 x, INT32 y)
 
static BOOL ctrl_down (void)
 
static BOOL alt_ctrl_down (void)
 
LRESULT CALLBACK wf_ll_kbd_proc (int nCode, WPARAM wParam, LPARAM lParam)
 
void wf_event_focus_in (wfContext *wfc)
 
static BOOL wf_event_process_WM_MOUSEWHEEL (wfContext *wfc, HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL horizontal, INT32 x, INT32 y)
 
static void wf_sizing (wfContext *wfc, WPARAM wParam, LPARAM lParam)
 
static void wf_send_resize (wfContext *wfc)
 
LRESULT CALLBACK wf_event_proc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
 
static BOOL wf_scale_mouse_pos (wfContext *wfc, INT32 x, INT32 y, UINT16 *px, UINT16 *py)
 
static BOOL wf_pub_mouse_event (wfContext *wfc, UINT16 flags, UINT16 x, UINT16 y)
 

Variables

static HWND g_focus_hWnd = NULL
 
static HWND g_main_hWnd = NULL
 
static HWND g_parent_hWnd = NULL
 
static BOOL g_flipping_in = FALSE
 
static BOOL g_flipping_out = FALSE
 
static BOOL g_keystates [256] = { 0 }
 

Macro Definition Documentation

◆ RESIZE_MIN_DELAY

#define RESIZE_MIN_DELAY   200 /* minimum delay in ms between two resizes */

Function Documentation

◆ alt_ctrl_down()

static BOOL alt_ctrl_down ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctrl_down()

static BOOL ctrl_down ( void  )
static
Here is the caller graph for this function:

◆ wf_event_focus_in()

void wf_event_focus_in ( wfContext *  wfc)
Here is the caller graph for this function:

◆ wf_event_proc()

LRESULT CALLBACK wf_event_proc ( HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_event_process_WM_MOUSEWHEEL()

static BOOL wf_event_process_WM_MOUSEWHEEL ( wfContext *  wfc,
HWND  hWnd,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam,
BOOL  horizontal,
INT32  x,
INT32  y 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_ll_kbd_proc()

LRESULT CALLBACK wf_ll_kbd_proc ( int  nCode,
WPARAM  wParam,
LPARAM  lParam 
)

FreeRDP: A Remote Desktop Protocol Implementation Event Handling

Copyright 2009-2011 Jay Sorg Copyright 2010-2011 Vic Lee Copyright 2010-2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_pub_mouse_event()

static BOOL wf_pub_mouse_event ( wfContext *  wfc,
UINT16  flags,
UINT16  x,
UINT16  y 
)
static
Here is the caller graph for this function:

◆ wf_scale_blt()

BOOL wf_scale_blt ( wfContext *  wfc,
HDC  hdc,
int  x,
int  y,
int  w,
int  h,
HDC  hdcSrc,
int  x1,
int  y1,
DWORD  rop 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_scale_mouse_event()

static BOOL wf_scale_mouse_event ( wfContext *  wfc,
UINT16  flags,
INT32  x,
INT32  y 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_scale_mouse_pos()

static BOOL wf_scale_mouse_pos ( wfContext *  wfc,
INT32  x,
INT32  y,
UINT16 px,
UINT16 py 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_send_resize()

static void wf_send_resize ( wfContext *  wfc)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wf_sizing()

static void wf_sizing ( wfContext *  wfc,
WPARAM  wParam,
LPARAM  lParam 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_flipping_in

BOOL g_flipping_in = FALSE
static

◆ g_flipping_out

BOOL g_flipping_out = FALSE
static

◆ g_focus_hWnd

HWND g_focus_hWnd = NULL
static

FreeRDP: A Remote Desktop Protocol Implementation Event Handling

Copyright 2009-2011 Jay Sorg Copyright 2010-2011 Vic Lee Copyright 2010-2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ g_keystates

BOOL g_keystates[256] = { 0 }
static

◆ g_main_hWnd

HWND g_main_hWnd = NULL
static

◆ g_parent_hWnd

HWND g_parent_hWnd = NULL
static