\hypertarget{group__Ecore__X__Fixes__Group}{\section{X Fixes Extension Functions}
\label{group__Ecore__X__Fixes__Group}\index{X Fixes Extension Functions@{X Fixes Extension Functions}}
}


Functions related to the X Fixes extension.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Ecore\+\_\+\+X\+\_\+\+Region \hyperlink{group__Ecore__X__Fixes__Group_ga74e6f82c704e2ed961629daa802951d9}{ecore\+\_\+x\+\_\+region\+\_\+new} (\hyperlink{struct__Ecore__X__Rectangle}{Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$rects, int num)
\begin{DoxyCompactList}\small\item\em Create a region from rectangles. \end{DoxyCompactList}\item 
Ecore\+\_\+\+X\+\_\+\+Region \hyperlink{group__Ecore__X__Fixes__Group_ga96041cd8e39cf9d9c0fcb6023a61e1f1}{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap} (Ecore\+\_\+\+X\+\_\+\+Pixmap bitmap)
\begin{DoxyCompactList}\small\item\em Create a region from a pixmap. \end{DoxyCompactList}\item 
Ecore\+\_\+\+X\+\_\+\+Region \hyperlink{group__Ecore__X__Fixes__Group_ga92fe82c034257da6d08db6c19dad4e99}{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window} (Ecore\+\_\+\+X\+\_\+\+Window win, Ecore\+\_\+\+X\+\_\+\+Region\+\_\+\+Type type)
\begin{DoxyCompactList}\small\item\em Create a region from a window. \end{DoxyCompactList}\item 
Ecore\+\_\+\+X\+\_\+\+Region \hyperlink{group__Ecore__X__Fixes__Group_ga171d31d9cf5b2f06dff95b8a79535367}{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc} (Ecore\+\_\+\+X\+\_\+\+G\+C gc)
\begin{DoxyCompactList}\small\item\em Create a region from a graphic context. \end{DoxyCompactList}\item 
Ecore\+\_\+\+X\+\_\+\+Region \hyperlink{group__Ecore__X__Fixes__Group_ga8d958f9051948990a821c75c917fed7e}{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture} (Ecore\+\_\+\+X\+\_\+\+Picture picture)
\begin{DoxyCompactList}\small\item\em Create a region from a picture. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gab14805fed115370be6fa4adb9c9e77f8}{ecore\+\_\+x\+\_\+region\+\_\+free} (Ecore\+\_\+\+X\+\_\+\+Region region)
\begin{DoxyCompactList}\small\item\em Destroy a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gac51e92282da67beb231832fa2e15d561}{ecore\+\_\+x\+\_\+region\+\_\+set} (Ecore\+\_\+\+X\+\_\+\+Region region, \hyperlink{struct__Ecore__X__Rectangle}{Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$rects, int num)
\begin{DoxyCompactList}\small\item\em Set the content of a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga11e35f808b142d4004b3a2f1ea19d400}{ecore\+\_\+x\+\_\+region\+\_\+copy} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source)
\begin{DoxyCompactList}\small\item\em Copy the content of a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga6121684fa5cb26ee933f39ddb016102e}{ecore\+\_\+x\+\_\+region\+\_\+combine} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source1, Ecore\+\_\+\+X\+\_\+\+Region source2)
\begin{DoxyCompactList}\small\item\em Make the union of two regions. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga35ab1c2fdac585823ccac1c0f64c2747}{ecore\+\_\+x\+\_\+region\+\_\+intersect} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source1, Ecore\+\_\+\+X\+\_\+\+Region source2)
\begin{DoxyCompactList}\small\item\em Make the intersection of two regions. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gaf428af642e2d265b04b08bc5f7f5257f}{ecore\+\_\+x\+\_\+region\+\_\+subtract} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source1, Ecore\+\_\+\+X\+\_\+\+Region source2)
\begin{DoxyCompactList}\small\item\em Make the subtraction of two regions. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga4f9c48968587584067ca9bb99d6c4c63}{ecore\+\_\+x\+\_\+region\+\_\+invert} (Ecore\+\_\+\+X\+\_\+\+Region dest, \hyperlink{struct__Ecore__X__Rectangle}{Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$bounds, Ecore\+\_\+\+X\+\_\+\+Region source)
\begin{DoxyCompactList}\small\item\em Make the subtraction of regions by bounds. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gaad5bba71268ee161d83a8de31cb2082d}{ecore\+\_\+x\+\_\+region\+\_\+translate} (Ecore\+\_\+\+X\+\_\+\+Region region, int dx, int dy)
\begin{DoxyCompactList}\small\item\em Translate a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gaf4fa988a248d61ff0ac83265b8943478}{ecore\+\_\+x\+\_\+region\+\_\+extents} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source)
\begin{DoxyCompactList}\small\item\em Extent a region. \end{DoxyCompactList}\item 
\hyperlink{struct__Ecore__X__Rectangle}{Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$ \hyperlink{group__Ecore__X__Fixes__Group_gabb44cea7300384e0136ec747060af885}{ecore\+\_\+x\+\_\+region\+\_\+fetch} (Ecore\+\_\+\+X\+\_\+\+Region region, int $\ast$num, \hyperlink{struct__Ecore__X__Rectangle}{Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$bounds)
\begin{DoxyCompactList}\small\item\em Return the rectangles that compose a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga96550576266bd2598d3cbb49d080e467}{ecore\+\_\+x\+\_\+region\+\_\+expand} (Ecore\+\_\+\+X\+\_\+\+Region dest, Ecore\+\_\+\+X\+\_\+\+Region source, unsigned int left, unsigned int right, unsigned int top, unsigned int bottom)
\begin{DoxyCompactList}\small\item\em Expand a region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_gaa53c7969f5e77bc2dc76e7b2b292c3e7}{ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set} (Ecore\+\_\+\+X\+\_\+\+Region region, Ecore\+\_\+\+X\+\_\+\+G\+C gc, int x, int y)
\begin{DoxyCompactList}\small\item\em Change clip-\/mask in a graphic context to the specified region. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga030c9ea33e686f73324c93814d7d87a9}{ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set} (Ecore\+\_\+\+X\+\_\+\+Region region, Ecore\+\_\+\+X\+\_\+\+Window dest, Ecore\+\_\+\+X\+\_\+\+Shape\+\_\+\+Type type, int x, int y)
\begin{DoxyCompactList}\small\item\em Change the shape extension of a window. \end{DoxyCompactList}\item 
void \hyperlink{group__Ecore__X__Fixes__Group_ga34e067cbb199ecf9efe2f583852e2b1f}{ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set} (Ecore\+\_\+\+X\+\_\+\+Region region, Ecore\+\_\+\+X\+\_\+\+Picture picture, int x, int y)
\begin{DoxyCompactList}\small\item\em Change clip-\/mask in picture to the specified region. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions related to the X Fixes extension. 



\subsection{Function Documentation}
\hypertarget{group__Ecore__X__Fixes__Group_ga74e6f82c704e2ed961629daa802951d9}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+new@{ecore\+\_\+x\+\_\+region\+\_\+new}}
\index{ecore\+\_\+x\+\_\+region\+\_\+new@{ecore\+\_\+x\+\_\+region\+\_\+new}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+new}]{\setlength{\rightskip}{0pt plus 5cm}Ecore\+\_\+\+X\+\_\+\+Region ecore\+\_\+x\+\_\+region\+\_\+new (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$}]{rects, }
\item[{int}]{num}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga74e6f82c704e2ed961629daa802951d9}


Create a region from rectangles. 


\begin{DoxyParams}{Parameters}
{\em rects} & The rectangles used to initialize the region. \\
\hline
{\em num} & The number of rectangles. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created region.
\end{DoxyReturn}
Create a region initialized to the specified list of rectangles {\ttfamily rects}. The rectangles may be specified in any order, their union becomes the region. \hypertarget{group__Ecore__X__Fixes__Group_ga96041cd8e39cf9d9c0fcb6023a61e1f1}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap}}
\index{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap}]{\setlength{\rightskip}{0pt plus 5cm}Ecore\+\_\+\+X\+\_\+\+Region ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+bitmap (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Pixmap}]{bitmap}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga96041cd8e39cf9d9c0fcb6023a61e1f1}


Create a region from a pixmap. 


\begin{DoxyParams}{Parameters}
{\em bitmap} & The bitmap used to initialize the region. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created region.
\end{DoxyReturn}
Creates a region initialized to the set of 'one' pixels in {\ttfamily bitmap} (which must be of depth 1, else Match error). \hypertarget{group__Ecore__X__Fixes__Group_ga92fe82c034257da6d08db6c19dad4e99}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window}}
\index{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window}]{\setlength{\rightskip}{0pt plus 5cm}Ecore\+\_\+\+X\+\_\+\+Region ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+window (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Window}]{win, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region\+\_\+\+Type}]{type}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga92fe82c034257da6d08db6c19dad4e99}


Create a region from a window. 


\begin{DoxyParams}{Parameters}
{\em win} & The window used to initialize the region. \\
\hline
{\em type} & The type of the region. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created region.
\end{DoxyReturn}
Creates a region initialized to the specified {\ttfamily window} region. See the Shape extension for the definition of Bounding and Clip regions. \hypertarget{group__Ecore__X__Fixes__Group_ga171d31d9cf5b2f06dff95b8a79535367}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc}}
\index{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc}]{\setlength{\rightskip}{0pt plus 5cm}Ecore\+\_\+\+X\+\_\+\+Region ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+gc (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+G\+C}]{gc}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga171d31d9cf5b2f06dff95b8a79535367}


Create a region from a graphic context. 


\begin{DoxyParams}{Parameters}
{\em gc} & The graphic context used to initialize the region. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created region.
\end{DoxyReturn}
Creates a region initialized from the clip list of {\ttfamily gc}. \hypertarget{group__Ecore__X__Fixes__Group_ga8d958f9051948990a821c75c917fed7e}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture}}
\index{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture@{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture}]{\setlength{\rightskip}{0pt plus 5cm}Ecore\+\_\+\+X\+\_\+\+Region ecore\+\_\+x\+\_\+region\+\_\+new\+\_\+from\+\_\+picture (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Picture}]{picture}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga8d958f9051948990a821c75c917fed7e}


Create a region from a picture. 


\begin{DoxyParams}{Parameters}
{\em picture} & The picture used to initialize the region. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created region.
\end{DoxyReturn}
Creates a region initialized from the clip list of {\ttfamily picture}. \hypertarget{group__Ecore__X__Fixes__Group_gab14805fed115370be6fa4adb9c9e77f8}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+free@{ecore\+\_\+x\+\_\+region\+\_\+free}}
\index{ecore\+\_\+x\+\_\+region\+\_\+free@{ecore\+\_\+x\+\_\+region\+\_\+free}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+free}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+free (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gab14805fed115370be6fa4adb9c9e77f8}


Destroy a region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region to destroy.\\
\hline
\end{DoxyParams}
Destroy the specified {\ttfamily region}. \hypertarget{group__Ecore__X__Fixes__Group_gac51e92282da67beb231832fa2e15d561}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+set}}
\index{ecore\+\_\+x\+\_\+region\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+set}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+set (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{{\bf Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$}]{rects, }
\item[{int}]{num}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gac51e92282da67beb231832fa2e15d561}


Set the content of a region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region to destroy. \\
\hline
{\em rects} & The rectangles used to set the region. \\
\hline
{\em num} & The number of rectangles.\\
\hline
\end{DoxyParams}
Replace the current contents of {\ttfamily region} with the region formed by the union of the rectangles {\ttfamily rects}. \hypertarget{group__Ecore__X__Fixes__Group_ga11e35f808b142d4004b3a2f1ea19d400}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+copy@{ecore\+\_\+x\+\_\+region\+\_\+copy}}
\index{ecore\+\_\+x\+\_\+region\+\_\+copy@{ecore\+\_\+x\+\_\+region\+\_\+copy}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+copy}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+copy (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga11e35f808b142d4004b3a2f1ea19d400}


Copy the content of a region. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source} & The source region.\\
\hline
\end{DoxyParams}
Replace the contents of {\ttfamily dest} with the contents of {\ttfamily source}. \hypertarget{group__Ecore__X__Fixes__Group_ga6121684fa5cb26ee933f39ddb016102e}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+combine@{ecore\+\_\+x\+\_\+region\+\_\+combine}}
\index{ecore\+\_\+x\+\_\+region\+\_\+combine@{ecore\+\_\+x\+\_\+region\+\_\+combine}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+combine}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+combine (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source1, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source2}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga6121684fa5cb26ee933f39ddb016102e}


Make the union of two regions. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source1} & The first source region. \\
\hline
{\em source2} & The second source region.\\
\hline
\end{DoxyParams}
Replace the contents of {\ttfamily dest} with the union of {\ttfamily source1} and {\ttfamily source2}. \hypertarget{group__Ecore__X__Fixes__Group_ga35ab1c2fdac585823ccac1c0f64c2747}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+intersect@{ecore\+\_\+x\+\_\+region\+\_\+intersect}}
\index{ecore\+\_\+x\+\_\+region\+\_\+intersect@{ecore\+\_\+x\+\_\+region\+\_\+intersect}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+intersect}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+intersect (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source1, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source2}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga35ab1c2fdac585823ccac1c0f64c2747}


Make the intersection of two regions. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source1} & The first source region. \\
\hline
{\em source2} & The second source region.\\
\hline
\end{DoxyParams}
Replace the contents of {\ttfamily dest} with the intersection of {\ttfamily source1} and {\ttfamily source2}. \hypertarget{group__Ecore__X__Fixes__Group_gaf428af642e2d265b04b08bc5f7f5257f}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+subtract@{ecore\+\_\+x\+\_\+region\+\_\+subtract}}
\index{ecore\+\_\+x\+\_\+region\+\_\+subtract@{ecore\+\_\+x\+\_\+region\+\_\+subtract}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+subtract}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+subtract (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source1, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source2}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gaf428af642e2d265b04b08bc5f7f5257f}


Make the subtraction of two regions. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source1} & The first source region. \\
\hline
{\em source2} & The second source region.\\
\hline
\end{DoxyParams}
Replace the contents of {\ttfamily dest} with the subtraction of {\ttfamily source1} by {\ttfamily source2}. \hypertarget{group__Ecore__X__Fixes__Group_ga4f9c48968587584067ca9bb99d6c4c63}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+invert@{ecore\+\_\+x\+\_\+region\+\_\+invert}}
\index{ecore\+\_\+x\+\_\+region\+\_\+invert@{ecore\+\_\+x\+\_\+region\+\_\+invert}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+invert}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+invert (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{{\bf Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$}]{bounds, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga4f9c48968587584067ca9bb99d6c4c63}


Make the subtraction of regions by bounds. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em bounds} & The bounds. \\
\hline
{\em source} & The source region.\\
\hline
\end{DoxyParams}
The {\ttfamily source} region is subtracted from the region specified by {\ttfamily bounds}. The result is placed in {\ttfamily dest}, replacing its contents. \hypertarget{group__Ecore__X__Fixes__Group_gaad5bba71268ee161d83a8de31cb2082d}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+translate@{ecore\+\_\+x\+\_\+region\+\_\+translate}}
\index{ecore\+\_\+x\+\_\+region\+\_\+translate@{ecore\+\_\+x\+\_\+region\+\_\+translate}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+translate}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+translate (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{int}]{dx, }
\item[{int}]{dy}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gaad5bba71268ee161d83a8de31cb2082d}


Translate a region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region to translate. \\
\hline
{\em dx} & The horizontal translation. \\
\hline
{\em dy} & The vertical translation.\\
\hline
\end{DoxyParams}
The {\ttfamily region} is translated by {\ttfamily dx} and {\ttfamily dy} in place. \hypertarget{group__Ecore__X__Fixes__Group_gaf4fa988a248d61ff0ac83265b8943478}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+extents@{ecore\+\_\+x\+\_\+region\+\_\+extents}}
\index{ecore\+\_\+x\+\_\+region\+\_\+extents@{ecore\+\_\+x\+\_\+region\+\_\+extents}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+extents}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+extents (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gaf4fa988a248d61ff0ac83265b8943478}


Extent a region. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source} & The source region.\\
\hline
\end{DoxyParams}
The extents of the {\ttfamily source} region are placed in {\ttfamily dest}. \hypertarget{group__Ecore__X__Fixes__Group_gabb44cea7300384e0136ec747060af885}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+fetch@{ecore\+\_\+x\+\_\+region\+\_\+fetch}}
\index{ecore\+\_\+x\+\_\+region\+\_\+fetch@{ecore\+\_\+x\+\_\+region\+\_\+fetch}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+fetch}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Ecore\+\_\+\+X\+\_\+\+Rectangle}$\ast$ ecore\+\_\+x\+\_\+region\+\_\+fetch (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{int $\ast$}]{num, }
\item[{{\bf Ecore\+\_\+\+X\+\_\+\+Rectangle} $\ast$}]{bounds}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gabb44cea7300384e0136ec747060af885}


Return the rectangles that compose a region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region (Unused). \\
\hline
{\em num} & The number of returned rectangles. \\
\hline
{\em bounds} & The returned bounds of the region. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The returned rectangles. 
\end{DoxyReturn}
\hypertarget{group__Ecore__X__Fixes__Group_ga96550576266bd2598d3cbb49d080e467}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+expand@{ecore\+\_\+x\+\_\+region\+\_\+expand}}
\index{ecore\+\_\+x\+\_\+region\+\_\+expand@{ecore\+\_\+x\+\_\+region\+\_\+expand}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+expand}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+expand (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{source, }
\item[{unsigned int}]{left, }
\item[{unsigned int}]{right, }
\item[{unsigned int}]{top, }
\item[{unsigned int}]{bottom}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga96550576266bd2598d3cbb49d080e467}


Expand a region. 


\begin{DoxyParams}{Parameters}
{\em dest} & The destination region. \\
\hline
{\em source} & The source region. \\
\hline
{\em left} & The number of pixels to add on the left. \\
\hline
{\em right} & The number of pixels to add on the right. \\
\hline
{\em top} & The number of pixels to add at the top. \\
\hline
{\em bottom} & The number of pixels to add at the bottom.\\
\hline
\end{DoxyParams}
Put in {\ttfamily dest} the area specified by expanding each rectangle in the {\ttfamily source} region by the specified number of pixels to the {\ttfamily left}, {\ttfamily right}, {\ttfamily top} and {\ttfamily bottom}. \hypertarget{group__Ecore__X__Fixes__Group_gaa53c7969f5e77bc2dc76e7b2b292c3e7}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set}}
\index{ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+gc\+\_\+clip\+\_\+set (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{Ecore\+\_\+\+X\+\_\+\+G\+C}]{gc, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_gaa53c7969f5e77bc2dc76e7b2b292c3e7}


Change clip-\/mask in a graphic context to the specified region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region to change. \\
\hline
{\em gc} & The clip-\/mask graphic context. \\
\hline
{\em x} & The horizontal translation. \\
\hline
{\em y} & The vertical translation.\\
\hline
\end{DoxyParams}
Changes clip-\/mask in {\ttfamily gc} to the specified {\ttfamily region} and sets the clip origin with the values of {\ttfamily x\+\_\+origin} and {\ttfamily y\+\_\+origin}. Output will be clippped to remain contained within the region. The clip origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. The region is interpreted relative to the clip origin. Future changes to region have no effect on the gc clip-\/mask. \hypertarget{group__Ecore__X__Fixes__Group_ga030c9ea33e686f73324c93814d7d87a9}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set}}
\index{ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+window\+\_\+shape\+\_\+set (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{Ecore\+\_\+\+X\+\_\+\+Window}]{dest, }
\item[{Ecore\+\_\+\+X\+\_\+\+Shape\+\_\+\+Type}]{type, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga030c9ea33e686f73324c93814d7d87a9}


Change the shape extension of a window. 


\begin{DoxyParams}{Parameters}
{\em region} & The region. \\
\hline
{\em dest} & The window whose shape is changed. \\
\hline
{\em type} & The kind of shape. \\
\hline
{\em x} & The horizontal offset. \\
\hline
{\em y} & The vertical offset.\\
\hline
\end{DoxyParams}
Set the specified Shape extension region of {\ttfamily window} to {\ttfamily region}, offset by {\ttfamily x\+\_\+offset} and {\ttfamily y\+\_\+offset}. Future changes to region have no effect on the window shape. \hypertarget{group__Ecore__X__Fixes__Group_ga34e067cbb199ecf9efe2f583852e2b1f}{\index{X Fixes Extension Functions@{X Fixes Extension Functions}!ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set}}
\index{ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set@{ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set}!X Fixes Extension Functions@{X Fixes Extension Functions}}
\subsubsection[{ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void ecore\+\_\+x\+\_\+region\+\_\+picture\+\_\+clip\+\_\+set (
\begin{DoxyParamCaption}
\item[{Ecore\+\_\+\+X\+\_\+\+Region}]{region, }
\item[{Ecore\+\_\+\+X\+\_\+\+Picture}]{picture, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{group__Ecore__X__Fixes__Group_ga34e067cbb199ecf9efe2f583852e2b1f}


Change clip-\/mask in picture to the specified region. 


\begin{DoxyParams}{Parameters}
{\em region} & The region. \\
\hline
{\em picture} & The picture. \\
\hline
{\em x} & The X coordinate of the origin. \\
\hline
{\em y} & The Y coordinate of the origin.\\
\hline
\end{DoxyParams}
Changes clip-\/mask in picture to the specified {\ttfamily region} and sets the clip origin. Input and output will be clipped to remain contained within the region. The clip origin is interpreted relative to the origin of the drawable associated with {\ttfamily picture}. The region is interpreted relative to the clip origin. Future changes to region have no effect on the picture clip-\/mask. 