\hypertarget{group__Eina__Tiler__Group}{}\doxysection{Tiler}
\label{group__Eina__Tiler__Group}\index{Tiler@{Tiler}}
\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}}
\begin{DoxyCompactList}\small\item\em Grid type of a tiler. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}\label{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}} 
typedef struct \+\_\+\+Eina\+\_\+\+Tiler {\bfseries Eina\+\_\+\+Tiler}
\begin{DoxyCompactList}\small\item\em Tiler type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Tiler__Group_gaaf0c299ae1db4b474e68dc34d88907ed}\label{group__Eina__Tiler__Group_gaaf0c299ae1db4b474e68dc34d88907ed}} 
typedef struct \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}} {\bfseries Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}
\begin{DoxyCompactList}\small\item\em Grid type of a tiler. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__Tiler__Group_ga9d3f3d4ebe33c2533df1b9199b66a44b}\label{group__Eina__Tiler__Group_ga9d3f3d4ebe33c2533df1b9199b66a44b}} 
typedef struct \+\_\+\+Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer {\bfseries Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer}
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$ \mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\+\_\+tiler\+\_\+new}} (int w, int h)
\begin{DoxyCompactList}\small\item\em Creates a new tiler with {\ttfamily w} width and {\ttfamily h} height. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_ga888348853d29439724c8a6a8ec681eab}{eina\+\_\+tiler\+\_\+free}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t)
\begin{DoxyCompactList}\small\item\em Frees a tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_gaeccfbd01d1493a8f7490dc55ed0c8e84}{eina\+\_\+tiler\+\_\+tile\+\_\+size\+\_\+set}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, int w, int h)
\begin{DoxyCompactList}\small\item\em Sets the size of tiles for a tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_ga8b0f1f327a4535cb4151885dabb3ad27}{eina\+\_\+tiler\+\_\+area\+\_\+size\+\_\+set}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, int w, int h)
\begin{DoxyCompactList}\small\item\em Changes the size of the area covered by the tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_ga7821cec890f7602c7eb5cfd05580982d}{eina\+\_\+tiler\+\_\+area\+\_\+size\+\_\+get}} (const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Gets the size of the area covered by the tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_ga90ee634b2a735bbea4174fdf3fe4bb76}{eina\+\_\+tiler\+\_\+strict\+\_\+set}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} strict)
\begin{DoxyCompactList}\small\item\em Defines if we need to follow a strict grid of tile or a loose one. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_gadd32604baaa43b0ff3d7f950b527e9e7}{eina\+\_\+tiler\+\_\+empty}} (const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t)
\begin{DoxyCompactList}\small\item\em Tells if a tiler is empty or not. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}{eina\+\_\+tiler\+\_\+rect\+\_\+add}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, const \mbox{\hyperlink{group__Eina__Rectangle__Group_gad1f49db9be2cd747f458ebf4718b6228}{Eina\+\_\+\+Rectangle}} $\ast$r)
\begin{DoxyCompactList}\small\item\em Adds a rectangle to a tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_ga6db1ae80d697a44991325de72cbccec6}{eina\+\_\+tiler\+\_\+rect\+\_\+del}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t, const \mbox{\hyperlink{group__Eina__Rectangle__Group_gad1f49db9be2cd747f458ebf4718b6228}{Eina\+\_\+\+Rectangle}} $\ast$r)
\begin{DoxyCompactList}\small\item\em Removes a rectangle from a tiler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__Tiler__Group_gaeedf46e5d5d54b1cfbfed5a26e185f9c}{eina\+\_\+tiler\+\_\+clear}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t)
\begin{DoxyCompactList}\small\item\em Removes all rectangles from tiles. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new}} (const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t)
\begin{DoxyCompactList}\small\item\em Creates a iterator to access the tilers calculated rectangles. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new}} (int x, int y, int w, int h, int tile\+\_\+w, int tile\+\_\+h)
\begin{DoxyCompactList}\small\item\em Creates a new Eina\+\_\+\+Iterator that iterates over a list of tiles. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_gad6df9da191429bac8ad054bdd8b63758}{eina\+\_\+tiler\+\_\+union}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$dst, \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Gets the union of two tilers. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_ga83844f55f924d860fabe6065faa614b8}{eina\+\_\+tiler\+\_\+subtract}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$dst, \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$src)
\begin{DoxyCompactList}\small\item\em Subtracts two tilers. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$ \mbox{\hyperlink{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}{eina\+\_\+tiler\+\_\+intersection}} (\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t1, \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t2)
\begin{DoxyCompactList}\small\item\em Gets the intersection of two tilers. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_ga1d0bf504f4aa781e26ee22dac9b5060f}{eina\+\_\+tiler\+\_\+equal}} (const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t1, const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$t2)
\begin{DoxyCompactList}\small\item\em Gets whether two tilers are equal in rects or not. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+next}} (Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer $\ast$slc, const \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}} $\ast$$\ast$rect)
\begin{DoxyCompactList}\small\item\em Iterates over the tiles set by \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}}. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup}} (Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer $\ast$slc, int x, int y, int w, int h, int tile\+\_\+w, int tile\+\_\+h)
\begin{DoxyCompactList}\small\item\em Sets up an Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer struct. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\begin{DoxyWarning}{Warning}
This is a very low level tool, in most situations (for example if you\textquotesingle{}re using evas) you won\textquotesingle{}t need this.
\end{DoxyWarning}
\hypertarget{group__Eina__Tiler__Group_basic}{}\doxysubsection{Basic usage}\label{group__Eina__Tiler__Group_basic}
Eina\+\_\+\+Tiler is a tool to facilitate calculations of which areas are damaged and thus need to be re-\/rendered. The basic usage of Eina\+\_\+\+Tiler is to give it the size of your canvas and a set of rectangular areas that need re-\/rendering, from that and using heuristics it\textquotesingle{}ll tell you an efficient way to re-\/render in the form of a set of non-\/overlapping rectangles that covers the whole area that needs re-\/rendering.

The following is pseudo-\/code showing some simple use of Eina\+\_\+\+Tiler\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{tiler = \mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\_tiler\_new}}(MY\_CANVAS\_WIDTH, MY\_CANVAS\_HEIGHT);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list\_of\_areas\_that\_need\_re\_rendering, l, rect)}
\DoxyCodeLine{  eina\_tiler\_add(tiler, rect);}
\DoxyCodeLine{itr = \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\_tiler\_iterator\_new}}(tiler);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\_ITERATOR\_FOREACH}}(itr, rect)}
\DoxyCodeLine{  my\_function\_that\_repaints\_areas\_of\_the\_canvas(rect);}

\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\+\_\+tiler\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}{eina\+\_\+tiler\+\_\+rect\+\_\+add()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new()}}
\end{DoxySeeAlso}
\begin{DoxyWarning}{Warning}
There are no guarantees that this will be the most efficient way to re-\/render for any particular case.
\end{DoxyWarning}
\hypertarget{group__Eina__Tiler__Group_grid_slicer}{}\doxysubsection{Grid Slicer}\label{group__Eina__Tiler__Group_grid_slicer}
Grid slicer and Eina\+\_\+\+Tiler are usually used together, that is however {\bfseries{not}} necessary, they can be used independently. Grid slicer provides an easy API to divide an area in tiles which is useful in certain applications to divide the area that will be rendered into tiles. It\textquotesingle{}s customary to, then create one Eina\+\_\+\+Tiler for each tile.

The following is pseudo-\/code showing a very simplified use of grid slicer together with Eina\+\_\+\+Tiler\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{itr = \mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\_tile\_grid\_slicer\_iterator\_new}}(0, 0, MY\_CANVAS\_WIDTH, MY\_CANVAS\_HEIGHT, TILE\_WIDTH, TILE\_HEIGHT);}
\DoxyCodeLine{\mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\_ITERATOR\_FOREACH}}(itr, grid\_info)}
\DoxyCodeLine{  \{}
\DoxyCodeLine{     tiler = \mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\_tiler\_new}}(grid\_info-\/>rect.w, grid\_info-\/>rect.w);}
\DoxyCodeLine{     \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\_LIST\_FOREACH}}(list\_of\_areas\_that\_need\_re\_rendering\_in\_this\_tile, l, rect)}
\DoxyCodeLine{       eina\_tiler\_add(tiler, rect);}
\DoxyCodeLine{     itr = \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\_tiler\_iterator\_new}}(tiler);}
\DoxyCodeLine{     \mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\_ITERATOR\_FOREACH}}(itr, rect)}
\DoxyCodeLine{     my\_function\_that\_repaints\_areas\_of\_the\_canvas(rect);}
\DoxyCodeLine{  \}}

\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\+\_\+tiler\+\_\+new()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}{eina\+\_\+tiler\+\_\+rect\+\_\+add()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+next()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new()}} 
\end{DoxySeeAlso}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}\label{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}} 
\index{Tiler@{Tiler}!eina\_tiler\_new@{eina\_tiler\_new}}
\index{eina\_tiler\_new@{eina\_tiler\_new}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_new()}{eina\_tiler\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$ eina\+\_\+tiler\+\_\+new (\begin{DoxyParamCaption}\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Creates a new tiler with {\ttfamily w} width and {\ttfamily h} height. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em w} & Width of the tiler \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height of the tiler \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The newly created tiler
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_ga888348853d29439724c8a6a8ec681eab}{eina\+\_\+tiler\+\_\+free()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.



Referenced by \mbox{\hyperlink{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}{eina\+\_\+tiler\+\_\+intersection()}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga888348853d29439724c8a6a8ec681eab}\label{group__Eina__Tiler__Group_ga888348853d29439724c8a6a8ec681eab}} 
\index{Tiler@{Tiler}!eina\_tiler\_free@{eina\_tiler\_free}}
\index{eina\_tiler\_free@{eina\_tiler\_free}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_free()}{eina\_tiler\_free()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t }\end{DoxyParamCaption})}



Frees a tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & The tiler to free.\\
\hline
\end{DoxyParams}
This function frees {\ttfamily t}. It does not free the memory allocated for the elements of {\ttfamily t}. 

Referenced by \mbox{\hyperlink{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}{eina\+\_\+tiler\+\_\+intersection()}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_gaeccfbd01d1493a8f7490dc55ed0c8e84}\label{group__Eina__Tiler__Group_gaeccfbd01d1493a8f7490dc55ed0c8e84}} 
\index{Tiler@{Tiler}!eina\_tiler\_tile\_size\_set@{eina\_tiler\_tile\_size\_set}}
\index{eina\_tiler\_tile\_size\_set@{eina\_tiler\_tile\_size\_set}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_tile\_size\_set()}{eina\_tiler\_tile\_size\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+tile\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Sets the size of tiles for a tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler whose tile size will be set. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & Width of the tiles. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height of the tiles.\\
\hline
\end{DoxyParams}
\begin{DoxyWarning}{Warning}
{\ttfamily w} and {\ttfamily h} {\bfseries{must}} be greater than zero, otherwise tile size won\textquotesingle{}t be changed. 

Tile size is not used! 
\end{DoxyWarning}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga8b0f1f327a4535cb4151885dabb3ad27}\label{group__Eina__Tiler__Group_ga8b0f1f327a4535cb4151885dabb3ad27}} 
\index{Tiler@{Tiler}!eina\_tiler\_area\_size\_set@{eina\_tiler\_area\_size\_set}}
\index{eina\_tiler\_area\_size\_set@{eina\_tiler\_area\_size\_set}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_area\_size\_set()}{eina\_tiler\_area\_size\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+area\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Changes the size of the area covered by the tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler whose area size will be set. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & Width of the area. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height of the area.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+8
\end{DoxySince}
\begin{DoxyWarning}{Warning}
Must clear the tiler before changing its size. 
\end{DoxyWarning}
\mbox{\Hypertarget{group__Eina__Tiler__Group_ga7821cec890f7602c7eb5cfd05580982d}\label{group__Eina__Tiler__Group_ga7821cec890f7602c7eb5cfd05580982d}} 
\index{Tiler@{Tiler}!eina\_tiler\_area\_size\_get@{eina\_tiler\_area\_size\_get}}
\index{eina\_tiler\_area\_size\_get@{eina\_tiler\_area\_size\_get}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_area\_size\_get()}{eina\_tiler\_area\_size\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+area\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Gets the size of the area covered by the tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & The tiler whose area size will be fetched. \\
\hline
\mbox{\texttt{ out}}  & {\em w} & Width of the area. \\
\hline
\mbox{\texttt{ out}}  & {\em h} & Height of the area.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Tiler__Group_ga90ee634b2a735bbea4174fdf3fe4bb76}\label{group__Eina__Tiler__Group_ga90ee634b2a735bbea4174fdf3fe4bb76}} 
\index{Tiler@{Tiler}!eina\_tiler\_strict\_set@{eina\_tiler\_strict\_set}}
\index{eina\_tiler\_strict\_set@{eina\_tiler\_strict\_set}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_strict\_set()}{eina\_tiler\_strict\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+strict\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{strict }\end{DoxyParamCaption})}



Defines if we need to follow a strict grid of tile or a loose one. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler to apply the strict rules to. \\
\hline
\mbox{\texttt{ in}}  & {\em strict} & Define if it will be strict or loose\\
\hline
\end{DoxyParams}
By default it will be loose.

\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__Tiler__Group_gadd32604baaa43b0ff3d7f950b527e9e7}\label{group__Eina__Tiler__Group_gadd32604baaa43b0ff3d7f950b527e9e7}} 
\index{Tiler@{Tiler}!eina\_tiler\_empty@{eina\_tiler\_empty}}
\index{eina\_tiler\_empty@{eina\_tiler\_empty}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_empty()}{eina\_tiler\_empty()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tiler\+\_\+empty (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t }\end{DoxyParamCaption})}



Tells if a tiler is empty or not. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & The tiler to apply the strict rules to. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} when empty, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} when not.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.



Referenced by \mbox{\hyperlink{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}{eina\+\_\+tiler\+\_\+intersection()}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}\label{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}} 
\index{Tiler@{Tiler}!eina\_tiler\_rect\_add@{eina\_tiler\_rect\_add}}
\index{eina\_tiler\_rect\_add@{eina\_tiler\_rect\_add}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_rect\_add()}{eina\_tiler\_rect\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tiler\+\_\+rect\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{const \mbox{\hyperlink{group__Eina__Rectangle__Group_gad1f49db9be2cd747f458ebf4718b6228}{Eina\+\_\+\+Rectangle}} $\ast$}]{r }\end{DoxyParamCaption})}



Adds a rectangle to a tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler in which to add a container. \\
\hline
\mbox{\texttt{ in}}  & {\em r} & The rectangle to be added. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} on failure.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_ga6db1ae80d697a44991325de72cbccec6}{eina\+\_\+tiler\+\_\+rect\+\_\+del()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_ga563ffb826d1e5002d01a72a3b5187bb8}{eina\+\_\+rectangle\+\_\+intersection()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga6db1ae80d697a44991325de72cbccec6}\label{group__Eina__Tiler__Group_ga6db1ae80d697a44991325de72cbccec6}} 
\index{Tiler@{Tiler}!eina\_tiler\_rect\_del@{eina\_tiler\_rect\_del}}
\index{eina\_tiler\_rect\_del@{eina\_tiler\_rect\_del}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_rect\_del()}{eina\_tiler\_rect\_del()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+rect\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t,  }\item[{const \mbox{\hyperlink{group__Eina__Rectangle__Group_gad1f49db9be2cd747f458ebf4718b6228}{Eina\+\_\+\+Rectangle}} $\ast$}]{r }\end{DoxyParamCaption})}



Removes a rectangle from a tiler. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler in which to add a container. \\
\hline
\mbox{\texttt{ in}}  & {\em r} & The rectangle to be removed.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_ga12c9f9b6720db9ad343d9f5b8a6d4d5c}{eina\+\_\+tiler\+\_\+rect\+\_\+add()}} 

\mbox{\hyperlink{group__Eina__Tiler__Group_gaeedf46e5d5d54b1cfbfed5a26e185f9c}{eina\+\_\+tiler\+\_\+clear()}} 
\end{DoxySeeAlso}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_ga563ffb826d1e5002d01a72a3b5187bb8}{eina\+\_\+rectangle\+\_\+intersection()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_gaeedf46e5d5d54b1cfbfed5a26e185f9c}\label{group__Eina__Tiler__Group_gaeedf46e5d5d54b1cfbfed5a26e185f9c}} 
\index{Tiler@{Tiler}!eina\_tiler\_clear@{eina\_tiler\_clear}}
\index{eina\_tiler\_clear@{eina\_tiler\_clear}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_clear()}{eina\_tiler\_clear()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+tiler\+\_\+clear (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t }\end{DoxyParamCaption})}



Removes all rectangles from tiles. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em t} & The tiler to clear.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tiler__Group_ga6db1ae80d697a44991325de72cbccec6}{eina\+\_\+tiler\+\_\+rect\+\_\+del()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}\label{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}} 
\index{Tiler@{Tiler}!eina\_tiler\_iterator\_new@{eina\_tiler\_iterator\_new}}
\index{eina\_tiler\_iterator\_new@{eina\_tiler\_iterator\_new}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_iterator\_new()}{eina\_tiler\_iterator\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+tiler\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t }\end{DoxyParamCaption})}



Creates a iterator to access the tilers calculated rectangles. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t} & The tiler to iterate over. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A iterator containing Eina\+\_\+\+Rectangle. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.



Referenced by \mbox{\hyperlink{group__Eina__Tiler__Group_ga1d0bf504f4aa781e26ee22dac9b5060f}{eina\+\_\+tiler\+\_\+equal()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}{eina\+\_\+tiler\+\_\+intersection()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga83844f55f924d860fabe6065faa614b8}{eina\+\_\+tiler\+\_\+subtract()}}, and \mbox{\hyperlink{group__Eina__Tiler__Group_gad6df9da191429bac8ad054bdd8b63758}{eina\+\_\+tiler\+\_\+union()}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}\label{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}} 
\index{Tiler@{Tiler}!eina\_tile\_grid\_slicer\_iterator\_new@{eina\_tile\_grid\_slicer\_iterator\_new}}
\index{eina\_tile\_grid\_slicer\_iterator\_new@{eina\_tile\_grid\_slicer\_iterator\_new}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tile\_grid\_slicer\_iterator\_new()}{eina\_tile\_grid\_slicer\_iterator\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new (\begin{DoxyParamCaption}\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h,  }\item[{int}]{tile\+\_\+w,  }\item[{int}]{tile\+\_\+h }\end{DoxyParamCaption})}



Creates a new Eina\+\_\+\+Iterator that iterates over a list of tiles. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em x} & X axis coordinate. \\
\hline
\mbox{\texttt{ in}}  & {\em y} & Y axis coordinate. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & Width. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height. \\
\hline
\mbox{\texttt{ in}}  & {\em tile\+\_\+w} & Tile width. \\
\hline
\mbox{\texttt{ in}}  & {\em tile\+\_\+h} & Tile height. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the Eina\+\_\+\+Iterator. {\ttfamily NULL} on failure.
\end{DoxyReturn}
The region defined by {\itshape x}, {\itshape y}, {\itshape w}, {\itshape h} will be divided in to a grid of tiles of width {\itshape tile\+\_\+w} and height {\ttfamily tile\+\_\+h}, the returned iterator will iterate over every tile in the grid having as its data a \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}}.

\begin{DoxyNote}{Note}
This is a convenience function, iterating over the returned iterator is equivalent to calling \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}} and calling \mbox{\hyperlink{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+next()}} until it returns \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}. 
\end{DoxyNote}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_gad6df9da191429bac8ad054bdd8b63758}\label{group__Eina__Tiler__Group_gad6df9da191429bac8ad054bdd8b63758}} 
\index{Tiler@{Tiler}!eina\_tiler\_union@{eina\_tiler\_union}}
\index{eina\_tiler\_union@{eina\_tiler\_union}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_union()}{eina\_tiler\_union()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tiler\+\_\+union (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{dst,  }\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{src }\end{DoxyParamCaption})}



Gets the union of two tilers. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em dst} & The first tiler, will store the result. \\
\hline
\mbox{\texttt{ in}}  & {\em src} & The second tiler. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise.
\end{DoxyReturn}
This function gets the union of tilers {\ttfamily dst} and {\ttfamily src}. The result is stored in {\ttfamily dst}. It returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if it succeeds. \begin{DoxySince}{Since}
1.\+11 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\+\_\+\+ITERATOR\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__Rectangle_a7570ed17f58fc94be997414a86130074}{\+\_\+\+Eina\+\_\+\+Rectangle\+::h}}, \mbox{\hyperlink{group__Eina__Cpu__Group_gaacc3ee1a7f283f8ef65cea31f4436a95}{MAX}}, and \mbox{\hyperlink{struct__Eina__Rectangle_af6a92d51ec25ee3464c81297ffc3a330}{\+\_\+\+Eina\+\_\+\+Rectangle\+::w}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga83844f55f924d860fabe6065faa614b8}\label{group__Eina__Tiler__Group_ga83844f55f924d860fabe6065faa614b8}} 
\index{Tiler@{Tiler}!eina\_tiler\_subtract@{eina\_tiler\_subtract}}
\index{eina\_tiler\_subtract@{eina\_tiler\_subtract}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_subtract()}{eina\_tiler\_subtract()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tiler\+\_\+subtract (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{dst,  }\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{src }\end{DoxyParamCaption})}



Subtracts two tilers. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em dst} & The first tiler, will store the result. \\
\hline
\mbox{\texttt{ in}}  & {\em src} & The second tiler. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise.
\end{DoxyReturn}
This function subtracts two tilers {\ttfamily dst} and {\ttfamily src}. The result is stored in {\ttfamily dst}. It returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if it succeeds. \begin{DoxySince}{Since}
1.\+11 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\+\_\+\+ITERATOR\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__Rectangle_a7570ed17f58fc94be997414a86130074}{\+\_\+\+Eina\+\_\+\+Rectangle\+::h}}, and \mbox{\hyperlink{struct__Eina__Rectangle_af6a92d51ec25ee3464c81297ffc3a330}{\+\_\+\+Eina\+\_\+\+Rectangle\+::w}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}\label{group__Eina__Tiler__Group_gad3dd33a89ec5905f72089d17f93b56b7}} 
\index{Tiler@{Tiler}!eina\_tiler\_intersection@{eina\_tiler\_intersection}}
\index{eina\_tiler\_intersection@{eina\_tiler\_intersection}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_intersection()}{eina\_tiler\_intersection()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$ eina\+\_\+tiler\+\_\+intersection (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t1,  }\item[{\mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t2 }\end{DoxyParamCaption})}



Gets the intersection of two tilers. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t1} & The first tile. \\
\hline
\mbox{\texttt{ in}}  & {\em t2} & The second tiler. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer of intersection result. {\ttfamily NULL} if intersection doesn\textquotesingle{}t exist.
\end{DoxyReturn}
This function gets the intersection of two tilers {\ttfamily t1} and {\ttfamily t2}. It returns a pointer of result if intersection of two tilers exists., otherwise returns NULL. \begin{DoxySince}{Since}
1.\+11 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_ga2d2e8fce5cb8a06b55bf2a12e6520bf4}{eina\+\_\+rectangles\+\_\+intersect()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_gadd32604baaa43b0ff3d7f950b527e9e7}{eina\+\_\+tiler\+\_\+empty()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga888348853d29439724c8a6a8ec681eab}{eina\+\_\+tiler\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_gaca78d2c4c69a919d1e8a9650c7e62ba0}{eina\+\_\+tiler\+\_\+new()}}, \mbox{\hyperlink{struct__Eina__Rectangle_a7570ed17f58fc94be997414a86130074}{\+\_\+\+Eina\+\_\+\+Rectangle\+::h}}, \mbox{\hyperlink{group__Eina__Cpu__Group_gaacc3ee1a7f283f8ef65cea31f4436a95}{MAX}}, \mbox{\hyperlink{group__Eina__Cpu__Group_ga74e75242132eaabbc1c512488a135926}{MIN}}, \mbox{\hyperlink{struct__Eina__Rectangle_af6a92d51ec25ee3464c81297ffc3a330}{\+\_\+\+Eina\+\_\+\+Rectangle\+::w}}, \mbox{\hyperlink{struct__Eina__Rectangle_a8358c0791dcf476432687510ca4e5d5c}{\+\_\+\+Eina\+\_\+\+Rectangle\+::x}}, and \mbox{\hyperlink{struct__Eina__Rectangle_ae74dc834fb71a1f4cd9e3fe11dec3940}{\+\_\+\+Eina\+\_\+\+Rectangle\+::y}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_ga1d0bf504f4aa781e26ee22dac9b5060f}\label{group__Eina__Tiler__Group_ga1d0bf504f4aa781e26ee22dac9b5060f}} 
\index{Tiler@{Tiler}!eina\_tiler\_equal@{eina\_tiler\_equal}}
\index{eina\_tiler\_equal@{eina\_tiler\_equal}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tiler\_equal()}{eina\_tiler\_equal()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tiler\+\_\+equal (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t1,  }\item[{const \mbox{\hyperlink{group__Eina__Tiler__Group_gabcc29c8a2b66db646e0d6e4b1828954c}{Eina\+\_\+\+Tiler}} $\ast$}]{t2 }\end{DoxyParamCaption})}



Gets whether two tilers are equal in rects or not. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em t1} & The first tiler. \\
\hline
\mbox{\texttt{ in}}  & {\em t2} & The second tiler. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if equal, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} if unequal.
\end{DoxyReturn}
This function gets result of comparison for {\ttfamily t1} and {\ttfamily t2}. It returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if tilers are equal. \begin{DoxySince}{Since}
1.\+11 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad870f9b1d5fb8892cb9623ad0e7f75b2}{eina\+\_\+iterator\+\_\+next()}}, \mbox{\hyperlink{group__Eina__Rectangle__Group_ga2d2e8fce5cb8a06b55bf2a12e6520bf4}{eina\+\_\+rectangles\+\_\+intersect()}}, \mbox{\hyperlink{group__Eina__Tiler__Group_ga6d30ecd288f61af33555a622782adfff}{eina\+\_\+tiler\+\_\+iterator\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__Rectangle_a7570ed17f58fc94be997414a86130074}{\+\_\+\+Eina\+\_\+\+Rectangle\+::h}}, \mbox{\hyperlink{struct__Eina__Rectangle_af6a92d51ec25ee3464c81297ffc3a330}{\+\_\+\+Eina\+\_\+\+Rectangle\+::w}}, \mbox{\hyperlink{struct__Eina__Rectangle_a8358c0791dcf476432687510ca4e5d5c}{\+\_\+\+Eina\+\_\+\+Rectangle\+::x}}, and \mbox{\hyperlink{struct__Eina__Rectangle_ae74dc834fb71a1f4cd9e3fe11dec3940}{\+\_\+\+Eina\+\_\+\+Rectangle\+::y}}.

\mbox{\Hypertarget{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}\label{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}} 
\index{Tiler@{Tiler}!eina\_tile\_grid\_slicer\_next@{eina\_tile\_grid\_slicer\_next}}
\index{eina\_tile\_grid\_slicer\_next@{eina\_tile\_grid\_slicer\_next}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tile\_grid\_slicer\_next()}{eina\_tile\_grid\_slicer\_next()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+next (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer $\ast$}]{slc,  }\item[{const \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}} $\ast$$\ast$}]{rect }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Iterates over the tiles set by \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}}. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em slc} & Pointer to an Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer struct. \\
\hline
\mbox{\texttt{ out}}  & {\em rect} & Pointer to a struct \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}} $\ast$. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if the current rect is valid. \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} if there are no more rects to iterate over (and thus the current one isn\textquotesingle{}t valid).
\end{DoxyReturn}
This functions iterates over each \mbox{\hyperlink{structEina__Tile__Grid__Info}{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Info}} $\ast$rect of the grid. \mbox{\hyperlink{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup()}} must be called first, and $\ast$rect is only valid if this function returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}. Its content shouldn\textquotesingle{}t be modified.

\begin{DoxyNote}{Note}
Consider using \mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new()}} instead. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}\label{group__Eina__Tiler__Group_gaa8fe2ae9aac1fd5b0971877300696c8c}} 
\index{Tiler@{Tiler}!eina\_tile\_grid\_slicer\_setup@{eina\_tile\_grid\_slicer\_setup}}
\index{eina\_tile\_grid\_slicer\_setup@{eina\_tile\_grid\_slicer\_setup}!Tiler@{Tiler}}
\doxysubsubsection{\texorpdfstring{eina\_tile\_grid\_slicer\_setup()}{eina\_tile\_grid\_slicer\_setup()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+setup (\begin{DoxyParamCaption}\item[{Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer $\ast$}]{slc,  }\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h,  }\item[{int}]{tile\+\_\+w,  }\item[{int}]{tile\+\_\+h }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Sets up an Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer struct. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em slc} & Pointer to an Eina\+\_\+\+Tile\+\_\+\+Grid\+\_\+\+Slicer struct. \\
\hline
\mbox{\texttt{ in}}  & {\em x} & X axis coordinate. \\
\hline
\mbox{\texttt{ in}}  & {\em y} & Y axis coordinate. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & Width. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & Height. \\
\hline
\mbox{\texttt{ in}}  & {\em tile\+\_\+w} & Tile width. \\
\hline
\mbox{\texttt{ in}}  & {\em tile\+\_\+h} & Tile height. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the Eina\+\_\+\+Iterator, {\ttfamily NULL} on failure.
\end{DoxyReturn}
The region defined by {\itshape x}, {\itshape y}, {\itshape w}, {\itshape h} will be divided into a grid of tiles of width {\itshape tile\+\_\+w} and height {\ttfamily tile\+\_\+h}, {\ttfamily slc} can then be used with \mbox{\hyperlink{group__Eina__Tiler__Group_gacdf4ee56dde73ae84f293601ea44763a}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+next()}} to access each tile.

\begin{DoxyNote}{Note}
Consider using \mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new()}} instead. 
\end{DoxyNote}


Referenced by \mbox{\hyperlink{group__Eina__Tiler__Group_ga96001bfa24720b49f3a66c29fa645eff}{eina\+\_\+tile\+\_\+grid\+\_\+slicer\+\_\+iterator\+\_\+new()}}.

