FreeRDP
drawing.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <freerdp/freerdp.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/gdi/dc.h>
#include "drawing.h"

Functions

INT32 gdi_GetROP2 (HGDI_DC hdc)
 Set current foreground draw mode. msdn{dd144922}. More...
 
INT32 gdi_SetROP2 (HGDI_DC hdc, INT32 fnDrawMode)
 Set current foreground draw mode. msdn{dd145088}. More...
 
UINT32 gdi_GetBkColor (HGDI_DC hdc)
 Get the current background color. msdn{dd144852}. More...
 
UINT32 gdi_SetBkColor (HGDI_DC hdc, UINT32 crColor)
 Set the current background color. msdn{dd162964}. More...
 
UINT32 gdi_GetBkMode (HGDI_DC hdc)
 Get the current background mode.
msdn{dd144853}. More...
 
INT32 gdi_SetBkMode (HGDI_DC hdc, INT32 iBkMode)
 Set the current background mode.
msdn{dd162965}. More...
 
UINT32 gdi_SetTextColor (HGDI_DC hdc, UINT32 crColor)
 Set the current text color.
msdn{dd145093}. More...
 

Function Documentation

◆ gdi_GetBkColor()

UINT32 gdi_GetBkColor ( HGDI_DC  hdc)

Get the current background color. msdn{dd144852}.

Parameters
hdcdevice context
Returns
background color

◆ gdi_GetBkMode()

UINT32 gdi_GetBkMode ( HGDI_DC  hdc)

Get the current background mode.
msdn{dd144853}.

Parameters
hdcdevice context
Returns
background mode

◆ gdi_GetROP2()

INT32 gdi_GetROP2 ( HGDI_DC  hdc)

Set current foreground draw mode. msdn{dd144922}.

Parameters
hdcdevice context
Returns
draw mode
Here is the caller graph for this function:

◆ gdi_SetBkColor()

UINT32 gdi_SetBkColor ( HGDI_DC  hdc,
UINT32  crColor 
)

Set the current background color. msdn{dd162964}.

Parameters
hdcdevice color
crColornew background color
Returns
previous background color
Here is the caller graph for this function:

◆ gdi_SetBkMode()

INT32 gdi_SetBkMode ( HGDI_DC  hdc,
INT32  iBkMode 
)

Set the current background mode.
msdn{dd162965}.

Parameters
hdcdevice context
iBkModebackground mode
Returns
previous background mode on success, 0 on failure

◆ gdi_SetROP2()

INT32 gdi_SetROP2 ( HGDI_DC  hdc,
INT32  fnDrawMode 
)

Set current foreground draw mode. msdn{dd145088}.

Parameters
hdcdevice context
fnDrawModedraw mode
Returns
previous draw mode
Here is the caller graph for this function:

◆ gdi_SetTextColor()

UINT32 gdi_SetTextColor ( HGDI_DC  hdc,
UINT32  crColor 
)

Set the current text color.
msdn{dd145093}.

Parameters
hdcdevice context
crColornew text color
Returns
previous text color
Here is the caller graph for this function: