FreeRDP
xf_window.h File Reference
#include <X11/Xlib.h>
#include <winpr/platform.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gfx.h>
#include "xf_client.h"
#include "xf_floatbar.h"
#include "xfreerdp.h"
This graph shows which files directly or indirectly include this file:

Data Structures

struct  xfLocalMove
 
struct  xfWindow
 
struct  xfAppWindow
 

Macros

#define _NET_WM_MOVERESIZE_SIZE_TOPLEFT   0
 
#define _NET_WM_MOVERESIZE_SIZE_TOP   1
 
#define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT   2
 
#define _NET_WM_MOVERESIZE_SIZE_RIGHT   3
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT   4
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOM   5
 
#define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT   6
 
#define _NET_WM_MOVERESIZE_SIZE_LEFT   7
 
#define _NET_WM_MOVERESIZE_MOVE   8 /* movement only */
 
#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD   9 /* size via keyboard */
 
#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD   10 /* move via keyboard */
 
#define _NET_WM_MOVERESIZE_CANCEL   11 /* cancel operation */
 
#define _NET_WM_STATE_REMOVE   0 /* remove/unset property */
 
#define _NET_WM_STATE_ADD   1 /* add/set property */
 
#define _NET_WM_STATE_TOGGLE   2 /* toggle property */
 

Enumerations

enum  xf_localmove_state { LMS_NOT_ACTIVE , LMS_STARTING , LMS_ACTIVE , LMS_TERMINATING }
 

Functions

void xf_ewmhints_init (xfContext *xfc)
 
BOOL xf_GetCurrentDesktop (xfContext *xfc)
 
BOOL xf_GetWorkArea (xfContext *xfc)
 
void xf_SetWindowFullscreen (xfContext *xfc, xfWindow *window, BOOL fullscreen)
 
void xf_SetWindowMinimized (xfContext *xfc, xfWindow *window)
 
void xf_SetWindowDecorations (xfContext *xfc, Window window, BOOL show)
 
void xf_SetWindowUnlisted (xfContext *xfc, Window window)
 
xfWindow * xf_CreateDesktopWindow (xfContext *xfc, char *name, int width, int height)
 
void xf_ResizeDesktopWindow (xfContext *xfc, xfWindow *window, int width, int height)
 
void xf_DestroyDesktopWindow (xfContext *xfc, xfWindow *window)
 
Window xf_CreateDummyWindow (xfContext *xfc)
 
void xf_DestroyDummyWindow (xfContext *xfc, Window window)
 
BOOL xf_GetWindowProperty (xfContext *xfc, Window window, Atom property, int length, unsigned long *nitems, unsigned long *bytes, BYTE **prop)
 
void xf_SendClientEvent (xfContext *xfc, Window window, Atom atom, unsigned int numArgs,...)
 
BOOL xf_AppWindowCreate (xfContext *xfc, xfAppWindow *appWindow)
 
int xf_AppWindowInit (xfContext *xfc, xfAppWindow *appWindow)
 
BOOL xf_AppWindowResize (xfContext *xfc, xfAppWindow *appWindow)
 
void xf_SetWindowText (xfContext *xfc, xfAppWindow *appWindow, const char *name)
 
void xf_MoveWindow (xfContext *xfc, xfAppWindow *appWindow, int x, int y, int width, int height)
 
void xf_ShowWindow (xfContext *xfc, xfAppWindow *appWindow, BYTE state)
 
void xf_SetWindowRects (xfContext *xfc, xfAppWindow *appWindow, RECTANGLE_16 *rects, int nrects)
 
void xf_SetWindowVisibilityRects (xfContext *xfc, xfAppWindow *appWindow, UINT32 rectsOffsetX, UINT32 rectsOffsetY, RECTANGLE_16 *rects, int nrects)
 
void xf_SetWindowStyle (xfContext *xfc, xfAppWindow *appWindow, UINT32 style, UINT32 ex_style)
 
void xf_UpdateWindowArea (xfContext *xfc, xfAppWindow *appWindow, int x, int y, int width, int height)
 
UINT xf_AppUpdateWindowFromSurface (xfContext *xfc, gdiGfxSurface *surface)
 
void xf_DestroyWindow (xfContext *xfc, xfAppWindow *appWindow)
 
void xf_SetWindowMinMaxInfo (xfContext *xfc, xfAppWindow *appWindow, int maxWidth, int maxHeight, int maxPosX, int maxPosY, int minTrackWidth, int minTrackHeight, int maxTrackWidth, int maxTrackHeight)
 
void xf_StartLocalMoveSize (xfContext *xfc, xfAppWindow *appWindow, int direction, int x, int y)
 
void xf_EndLocalMoveSize (xfContext *xfc, xfAppWindow *appWindow)
 
xfAppWindow * xf_AppWindowFromX11Window (xfContext *xfc, Window wnd)
 

Macro Definition Documentation

◆ _NET_WM_MOVERESIZE_CANCEL

#define _NET_WM_MOVERESIZE_CANCEL   11 /* cancel operation */

◆ _NET_WM_MOVERESIZE_MOVE

#define _NET_WM_MOVERESIZE_MOVE   8 /* movement only */

◆ _NET_WM_MOVERESIZE_MOVE_KEYBOARD

#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD   10 /* move via keyboard */

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOM

#define _NET_WM_MOVERESIZE_SIZE_BOTTOM   5

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT

#define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT   6

◆ _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT

#define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT   4

◆ _NET_WM_MOVERESIZE_SIZE_KEYBOARD

#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD   9 /* size via keyboard */

◆ _NET_WM_MOVERESIZE_SIZE_LEFT

#define _NET_WM_MOVERESIZE_SIZE_LEFT   7

◆ _NET_WM_MOVERESIZE_SIZE_RIGHT

#define _NET_WM_MOVERESIZE_SIZE_RIGHT   3

◆ _NET_WM_MOVERESIZE_SIZE_TOP

#define _NET_WM_MOVERESIZE_SIZE_TOP   1

◆ _NET_WM_MOVERESIZE_SIZE_TOPLEFT

#define _NET_WM_MOVERESIZE_SIZE_TOPLEFT   0

◆ _NET_WM_MOVERESIZE_SIZE_TOPRIGHT

#define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT   2

◆ _NET_WM_STATE_ADD

#define _NET_WM_STATE_ADD   1 /* add/set property */

◆ _NET_WM_STATE_REMOVE

#define _NET_WM_STATE_REMOVE   0 /* remove/unset property */

◆ _NET_WM_STATE_TOGGLE

#define _NET_WM_STATE_TOGGLE   2 /* toggle property */

Enumeration Type Documentation

◆ xf_localmove_state

Enumerator
LMS_NOT_ACTIVE 
LMS_STARTING 
LMS_ACTIVE 
LMS_TERMINATING 

Function Documentation

◆ xf_AppUpdateWindowFromSurface()

UINT xf_AppUpdateWindowFromSurface ( xfContext *  xfc,
gdiGfxSurface *  surface 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_AppWindowCreate()

BOOL xf_AppWindowCreate ( xfContext *  xfc,
xfAppWindow *  appWindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_AppWindowFromX11Window()

xfAppWindow* xf_AppWindowFromX11Window ( xfContext *  xfc,
Window  wnd 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_AppWindowInit()

int xf_AppWindowInit ( xfContext *  xfc,
xfAppWindow *  appWindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_AppWindowResize()

BOOL xf_AppWindowResize ( xfContext *  xfc,
xfAppWindow *  appWindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_CreateDesktopWindow()

xfWindow* xf_CreateDesktopWindow ( xfContext *  xfc,
char *  name,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_CreateDummyWindow()

Window xf_CreateDummyWindow ( xfContext *  xfc)
Here is the caller graph for this function:

◆ xf_DestroyDesktopWindow()

void xf_DestroyDesktopWindow ( xfContext *  xfc,
xfWindow *  window 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_DestroyDummyWindow()

void xf_DestroyDummyWindow ( xfContext *  xfc,
Window  window 
)
Here is the caller graph for this function:

◆ xf_DestroyWindow()

void xf_DestroyWindow ( xfContext *  xfc,
xfAppWindow *  appWindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_EndLocalMoveSize()

void xf_EndLocalMoveSize ( xfContext *  xfc,
xfAppWindow *  appWindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_ewmhints_init()

void xf_ewmhints_init ( xfContext *  xfc)

◆ xf_GetCurrentDesktop()

BOOL xf_GetCurrentDesktop ( xfContext *  xfc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_GetWindowProperty()

BOOL xf_GetWindowProperty ( xfContext *  xfc,
Window  window,
Atom  property,
int  length,
unsigned long *  nitems,
unsigned long *  bytes,
BYTE **  prop 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_GetWorkArea()

BOOL xf_GetWorkArea ( xfContext *  xfc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_MoveWindow()

void xf_MoveWindow ( xfContext *  xfc,
xfAppWindow *  appWindow,
int  x,
int  y,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_ResizeDesktopWindow()

void xf_ResizeDesktopWindow ( xfContext *  xfc,
xfWindow *  window,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_SendClientEvent()

void xf_SendClientEvent ( xfContext *  xfc,
Window  window,
Atom  atom,
unsigned int  numArgs,
  ... 
)

Post an event from the client to the X server

Here is the caller graph for this function:

◆ xf_SetWindowDecorations()

void xf_SetWindowDecorations ( xfContext *  xfc,
Window  window,
BOOL  show 
)
Here is the caller graph for this function:

◆ xf_SetWindowFullscreen()

void xf_SetWindowFullscreen ( xfContext *  xfc,
xfWindow *  window,
BOOL  fullscreen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_SetWindowMinimized()

void xf_SetWindowMinimized ( xfContext *  xfc,
xfWindow *  window 
)
Here is the caller graph for this function:

◆ xf_SetWindowMinMaxInfo()

void xf_SetWindowMinMaxInfo ( xfContext *  xfc,
xfAppWindow *  appWindow,
int  maxWidth,
int  maxHeight,
int  maxPosX,
int  maxPosY,
int  minTrackWidth,
int  minTrackHeight,
int  maxTrackWidth,
int  maxTrackHeight 
)
Here is the caller graph for this function:

◆ xf_SetWindowRects()

void xf_SetWindowRects ( xfContext *  xfc,
xfAppWindow *  appWindow,
RECTANGLE_16 rects,
int  nrects 
)
Here is the call graph for this function:

◆ xf_SetWindowStyle()

void xf_SetWindowStyle ( xfContext *  xfc,
xfAppWindow *  appWindow,
UINT32  style,
UINT32  ex_style 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_SetWindowText()

void xf_SetWindowText ( xfContext *  xfc,
xfAppWindow *  appWindow,
const char *  name 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_SetWindowUnlisted()

void xf_SetWindowUnlisted ( xfContext *  xfc,
Window  window 
)
Here is the caller graph for this function:

◆ xf_SetWindowVisibilityRects()

void xf_SetWindowVisibilityRects ( xfContext *  xfc,
xfAppWindow *  appWindow,
UINT32  rectsOffsetX,
UINT32  rectsOffsetY,
RECTANGLE_16 rects,
int  nrects 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_ShowWindow()

void xf_ShowWindow ( xfContext *  xfc,
xfAppWindow *  appWindow,
BYTE  state 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_StartLocalMoveSize()

void xf_StartLocalMoveSize ( xfContext *  xfc,
xfAppWindow *  appWindow,
int  direction,
int  x,
int  y 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_UpdateWindowArea()

void xf_UpdateWindowArea ( xfContext *  xfc,
xfAppWindow *  appWindow,
int  x,
int  y,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function: