<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE erlref SYSTEM "erlref.dtd">

<!-- THIS FILE IS GENERATED DO NOT EDIT -->


<erlref>
<header>
  <copyright>
    <year>2020</year>
    <holder>wxWidgets team.</holder></copyright>
  <legalnotice>Licensed under the wxWindows Free Documentation Licence, Version 3
  </legalnotice>
  <title>wxGCDC</title>
</header>
<module>wxGCDC</module>
<modulesummary>Functions for wxGCDC class</modulesummary>
<description><p><seeerl marker="wxGCDC"><c>wxGCDC</c></seeerl> is a device context that draws on a <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl>.
      </p><p><seeerl marker="wxGCDC"><c>wxGCDC</c></seeerl> does its best to implement <seeerl marker="wxDC"><c>wxDC</c></seeerl> API, but the following features are not (fully) implemented because <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl> doesn't support them:
      </p><p>See: <seeerl marker="wxDC"><c>wxDC</c></seeerl>, <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl>
      </p>
  <p>This class is derived (and can use functions) from: 
    <seeerl marker="wxDC"><c>wxDC</c></seeerl></p>
  
  <p>wxWidgets docs: <url href="https://docs.wxwidgets.org/3.1/classwx_g_c_d_c.html">wxGCDC</url></p>
  </description>
<datatypes><datatype><name name="wxGCDC"/></datatype></datatypes>

<funcs>
  <func>
    <name name="new" arity="0" clause_i="1" since=""/>
    <fsummary/>
    <desc/>
  </func>
  
  <func>
    <name name="new" arity="1" clause_i="1" since=""/>
    <fsummary>Constructs a <c>wxGCDC</c> from a <c>wxWindowDC</c>. </fsummary>
    <desc><p>Constructs a <seeerl marker="wxGCDC"><c>wxGCDC</c></seeerl> from a <seeerl marker="wxWindowDC"><c>wxWindowDC</c></seeerl>. 
      </p></desc>
  </func>
  
  <func>
    <name name="destroy" arity="1" clause_i="1" since=""/>
    <fsummary/>
    <desc/>
  </func>
  
  <func>
    <name name="getGraphicsContext" arity="1" clause_i="1" since=""/>
    <fsummary>Retrieves associated <c>wxGraphicsContext</c>. </fsummary>
    <desc><p>Retrieves associated <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl>. 
      </p></desc>
  </func>
  
  <func>
    <name name="setGraphicsContext" arity="2" clause_i="1" since=""/>
    <fsummary>Set the graphics context to be used for this <c>wxGCDC</c>. </fsummary>
    <desc><p>Set the graphics context to be used for this <seeerl marker="wxGCDC"><c>wxGCDC</c></seeerl>. 
      </p><p>Note that this object takes ownership of <c>context</c> and will delete it when it is destroyed or when <seemfa marker="#setGraphicsContext/2"><c>setGraphicsContext/2</c></seemfa> is called again.
      </p><p>Also, unlike the constructor taking <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl>, this method will reapply the current font, pen and brush, so that this object continues to use them, if they had been changed before (which is never the case when constructing <seeerl marker="wxGCDC"><c>wxGCDC</c></seeerl> directly from <seeerl marker="wxGraphicsContext"><c>wxGraphicsContext</c></seeerl>). 
      </p></desc>
  </func>
  </funcs>
</erlref>
