\hypertarget{group__Evas__Coord__Mapping__Group}{\section{Coordinate Mapping Functions}
\label{group__Evas__Coord__Mapping__Group}\index{Coordinate Mapping Functions@{Coordinate Mapping Functions}}
}


Functions that are used to map coordinates from the canvas to the screen or the screen to the canvas.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\-\_\-\-Coord \hyperlink{group__Evas__Coord__Mapping__Group_ga0d77dc8300b118d282fafb999342800c}{evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world} (const \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e, int x)
\begin{DoxyCompactList}\small\item\em Convert/scale an output screen co-\/ordinate into canvas co-\/ordinates. \end{DoxyCompactList}\item 
Evas\-\_\-\-Coord \hyperlink{group__Evas__Coord__Mapping__Group_ga0d483975d64c449525bff24b83f2e0ac}{evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world} (const \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e, int y)
\begin{DoxyCompactList}\small\item\em Convert/scale an output screen co-\/ordinate into canvas co-\/ordinates. \end{DoxyCompactList}\item 
int \hyperlink{group__Evas__Coord__Mapping__Group_ga6ad65ce8821349e9a0a1f7e18a3d7fb5}{evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen} (const \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e, Evas\-\_\-\-Coord x)
\begin{DoxyCompactList}\small\item\em Convert/scale a canvas co-\/ordinate into output screen co-\/ordinates. \end{DoxyCompactList}\item 
int \hyperlink{group__Evas__Coord__Mapping__Group_gaead9ab9f64b06a2986edef9e25cb2d02}{evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen} (const \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} $\ast$e, Evas\-\_\-\-Coord y)
\begin{DoxyCompactList}\small\item\em Convert/scale a canvas co-\/ordinate into output screen co-\/ordinates. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions that are used to map coordinates from the canvas to the screen or the screen to the canvas. 

\subsection{Function Documentation}
\hypertarget{group__Evas__Coord__Mapping__Group_ga0d77dc8300b118d282fafb999342800c}{\index{Coordinate Mapping Functions@{Coordinate Mapping Functions}!evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world@{evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world}}
\index{evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world@{evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world}!Coordinate Mapping Functions@{Coordinate Mapping Functions}}
\subsubsection[{evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world}]{\setlength{\rightskip}{0pt plus 5cm}Evas\-\_\-\-Coord evas\-\_\-coord\-\_\-screen\-\_\-x\-\_\-to\-\_\-world (
\begin{DoxyParamCaption}
\item[{const {\bf Evas} $\ast$}]{e, }
\item[{int}]{x}
\end{DoxyParamCaption}
)}}\label{group__Evas__Coord__Mapping__Group_ga0d77dc8300b118d282fafb999342800c}


Convert/scale an output screen co-\/ordinate into canvas co-\/ordinates. 


\begin{DoxyParams}{Parameters}
{\em e} & The pointer to the Evas Canvas \\
\hline
{\em x} & The screen/output x co-\/ordinate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The screen co-\/ordinate translated to canvas unit co-\/ordinates
\end{DoxyReturn}
This function takes in a horizontal co-\/ordinate as the {\ttfamily x} parameter and converts it into canvas units, accounting for output size, viewport size and location, returning it as the function return value. If {\ttfamily e} is invalid, the results are undefined.

Example\-: 
\begin{DoxyCode}
\textcolor{keyword}{extern} \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} *evas;
\textcolor{keyword}{extern} \textcolor{keywordtype}{int} screen\_x;
Evas\_Coord canvas\_x;

canvas\_x = \hyperlink{group__Evas__Coord__Mapping__Group_ga0d77dc8300b118d282fafb999342800c}{evas\_coord\_screen\_x\_to\_world}(evas, screen\_x);
\end{DoxyCode}
 \hypertarget{group__Evas__Coord__Mapping__Group_ga0d483975d64c449525bff24b83f2e0ac}{\index{Coordinate Mapping Functions@{Coordinate Mapping Functions}!evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world@{evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world}}
\index{evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world@{evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world}!Coordinate Mapping Functions@{Coordinate Mapping Functions}}
\subsubsection[{evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world}]{\setlength{\rightskip}{0pt plus 5cm}Evas\-\_\-\-Coord evas\-\_\-coord\-\_\-screen\-\_\-y\-\_\-to\-\_\-world (
\begin{DoxyParamCaption}
\item[{const {\bf Evas} $\ast$}]{e, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{group__Evas__Coord__Mapping__Group_ga0d483975d64c449525bff24b83f2e0ac}


Convert/scale an output screen co-\/ordinate into canvas co-\/ordinates. 


\begin{DoxyParams}{Parameters}
{\em e} & The pointer to the Evas Canvas \\
\hline
{\em y} & The screen/output y co-\/ordinate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The screen co-\/ordinate translated to canvas unit co-\/ordinates
\end{DoxyReturn}
This function takes in a vertical co-\/ordinate as the {\ttfamily y} parameter and converts it into canvas units, accounting for output size, viewport size and location, returning it as the function return value. If {\ttfamily e} is invalid, the results are undefined.

Example\-: 
\begin{DoxyCode}
\textcolor{keyword}{extern} \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} *evas;
\textcolor{keyword}{extern} \textcolor{keywordtype}{int} screen\_y;
Evas\_Coord canvas\_y;

canvas\_y = \hyperlink{group__Evas__Coord__Mapping__Group_ga0d483975d64c449525bff24b83f2e0ac}{evas\_coord\_screen\_y\_to\_world}(evas, screen\_y);
\end{DoxyCode}
 \hypertarget{group__Evas__Coord__Mapping__Group_ga6ad65ce8821349e9a0a1f7e18a3d7fb5}{\index{Coordinate Mapping Functions@{Coordinate Mapping Functions}!evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen@{evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen}}
\index{evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen@{evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen}!Coordinate Mapping Functions@{Coordinate Mapping Functions}}
\subsubsection[{evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen}]{\setlength{\rightskip}{0pt plus 5cm}int evas\-\_\-coord\-\_\-world\-\_\-x\-\_\-to\-\_\-screen (
\begin{DoxyParamCaption}
\item[{const {\bf Evas} $\ast$}]{e, }
\item[{Evas\-\_\-\-Coord}]{x}
\end{DoxyParamCaption}
)}}\label{group__Evas__Coord__Mapping__Group_ga6ad65ce8821349e9a0a1f7e18a3d7fb5}


Convert/scale a canvas co-\/ordinate into output screen co-\/ordinates. 


\begin{DoxyParams}{Parameters}
{\em e} & The pointer to the Evas Canvas \\
\hline
{\em x} & The canvas x co-\/ordinate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The output/screen co-\/ordinate translated to output co-\/ordinates
\end{DoxyReturn}
This function takes in a horizontal co-\/ordinate as the {\ttfamily x} parameter and converts it into output units, accounting for output size, viewport size and location, returning it as the function return value. If {\ttfamily e} is invalid, the results are undefined.

Example\-: 
\begin{DoxyCode}
\textcolor{keyword}{extern} \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} *evas;
\textcolor{keywordtype}{int} screen\_x;
\textcolor{keyword}{extern} Evas\_Coord canvas\_x;

screen\_x = \hyperlink{group__Evas__Coord__Mapping__Group_ga6ad65ce8821349e9a0a1f7e18a3d7fb5}{evas\_coord\_world\_x\_to\_screen}(evas, canvas\_x);
\end{DoxyCode}
 \hypertarget{group__Evas__Coord__Mapping__Group_gaead9ab9f64b06a2986edef9e25cb2d02}{\index{Coordinate Mapping Functions@{Coordinate Mapping Functions}!evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen@{evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen}}
\index{evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen@{evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen}!Coordinate Mapping Functions@{Coordinate Mapping Functions}}
\subsubsection[{evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen}]{\setlength{\rightskip}{0pt plus 5cm}int evas\-\_\-coord\-\_\-world\-\_\-y\-\_\-to\-\_\-screen (
\begin{DoxyParamCaption}
\item[{const {\bf Evas} $\ast$}]{e, }
\item[{Evas\-\_\-\-Coord}]{y}
\end{DoxyParamCaption}
)}}\label{group__Evas__Coord__Mapping__Group_gaead9ab9f64b06a2986edef9e25cb2d02}


Convert/scale a canvas co-\/ordinate into output screen co-\/ordinates. 


\begin{DoxyParams}{Parameters}
{\em e} & The pointer to the Evas Canvas \\
\hline
{\em y} & The canvas y co-\/ordinate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The output/screen co-\/ordinate translated to output co-\/ordinates
\end{DoxyReturn}
This function takes in a vertical co-\/ordinate as the {\ttfamily x} parameter and converts it into output units, accounting for output size, viewport size and location, returning it as the function return value. If {\ttfamily e} is invalid, the results are undefined.

Example\-: 
\begin{DoxyCode}
\textcolor{keyword}{extern} \hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas} *evas;
\textcolor{keywordtype}{int} screen\_y;
\textcolor{keyword}{extern} Evas\_Coord canvas\_y;

screen\_y = \hyperlink{group__Evas__Coord__Mapping__Group_gaead9ab9f64b06a2986edef9e25cb2d02}{evas\_coord\_world\_y\_to\_screen}(evas, canvas\_y);
\end{DoxyCode}
 