FreeRDP
drawing.h File Reference
#include <freerdp/api.h>
#include <freerdp/gdi/gdi.h>
This graph shows which files directly or indirectly include this file:

Functions

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

Function Documentation

◆ gdi_GetBkColor()

FREERDP_LOCAL UINT32 gdi_GetBkColor ( HGDI_DC  hdc)

Get the current background color. msdn{dd144852}.

Parameters
hdcdevice context
Returns
background color

◆ gdi_GetBkMode()

FREERDP_LOCAL UINT32 gdi_GetBkMode ( HGDI_DC  hdc)

Get the current background mode.
msdn{dd144853}.

Parameters
hdcdevice context
Returns
background mode

◆ gdi_GetROP2()

FREERDP_LOCAL INT32 gdi_GetROP2 ( HGDI_DC  hdc)

Set current foreground draw mode. msdn{dd144922}.

FreeRDP: A Remote Desktop Protocol Implementation GDI Drawing Functions

Copyright 2010-2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2016 Thincast Technologies GmbH

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.

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

◆ gdi_SetBkColor()

FREERDP_LOCAL 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()

FREERDP_LOCAL 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()

FREERDP_LOCAL 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()

FREERDP_LOCAL 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: