\section{Mapbuf}
\label{group__Elm__Mapbuf}\index{Mapbuf@{Mapbuf}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_ga0a667f053772c91bb706d62795712439}{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set} (Eina\+\_\+\+Bool on)
\begin{DoxyCompactList}\small\item\em Set or unset auto flag for map rendering. \end{DoxyCompactList}\item 
E\+O\+A\+PI Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_ga1ec3719cd169ee0c02f1bdf202011361}{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get a value whether auto mode is enabled or not. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_ga07ec467f85dbb0c9ed4294f27cf630ee}{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set} (Eina\+\_\+\+Bool smooth)
\begin{DoxyCompactList}\small\item\em Enable or disable smooth map rendering. \end{DoxyCompactList}\item 
E\+O\+A\+PI Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_gab9f7ee1128b7ac7cad21e0ad1fb46925}{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get a value whether smooth map rendering is enabled or not. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_ga7c6c408d7142c759c8b08ade7f36fcdb}{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set} (Eina\+\_\+\+Bool alpha)
\begin{DoxyCompactList}\small\item\em Set or unset alpha flag for map rendering. \end{DoxyCompactList}\item 
E\+O\+A\+PI Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_gaf291f65b66bb60989edc123cacd31a88}{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get a value whether alpha blending is enabled or not. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_ga1c7f76aecc2a632687ae7a3227e6c05d}{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set} (Eina\+\_\+\+Bool enabled)
\begin{DoxyCompactList}\small\item\em Enable or disable the map. \end{DoxyCompactList}\item 
E\+O\+A\+PI Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_ga577295e1056744d877759121219b10ae}{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Get a value whether map is enabled or not. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_ga45631a874975a7450282c13c1d8dfa03}{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set} (int idx, int r, int g, int b, int a)
\begin{DoxyCompactList}\small\item\em Set the color of a vertex in the mapbuf. \end{DoxyCompactList}\item 
E\+O\+A\+PI void \hyperlink{group__Elm__Mapbuf_gace0466412cd0996cda001310ce2d3006}{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get} (int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)
\begin{DoxyCompactList}\small\item\em Get the color set on a vertex in the mapbuf. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_ga9acf0d119600f2454939e5e6cca068ed}{elm\+\_\+mapbuf\+\_\+auto\+\_\+set} (Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool on)
\begin{DoxyCompactList}\small\item\em Set or unset auto flag for map rendering. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_ga7beb6e4c2d3927034072fa4425eccf75}{elm\+\_\+mapbuf\+\_\+auto\+\_\+get} (const Elm\+\_\+\+Mapbuf $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get a value whether auto mode is enabled or not. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_ga75a4e96621b6e3d4563811c94b8db9a8}{elm\+\_\+mapbuf\+\_\+smooth\+\_\+set} (Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool smooth)
\begin{DoxyCompactList}\small\item\em Enable or disable smooth map rendering. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_ga4ddcfca0d1b4c796d3939baf4683b190}{elm\+\_\+mapbuf\+\_\+smooth\+\_\+get} (const Elm\+\_\+\+Mapbuf $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get a value whether smooth map rendering is enabled or not. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_gaa594204de9687310a8613518d3639e89}{elm\+\_\+mapbuf\+\_\+alpha\+\_\+set} (Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool alpha)
\begin{DoxyCompactList}\small\item\em Set or unset alpha flag for map rendering. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_gae5eb35909c38472bab65764a568947d8}{elm\+\_\+mapbuf\+\_\+alpha\+\_\+get} (const Elm\+\_\+\+Mapbuf $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get a value whether alpha blending is enabled or not. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_gac2478280f81e22d3add165f7e480bd6a}{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set} (Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool enabled)
\begin{DoxyCompactList}\small\item\em Enable or disable the map. \end{DoxyCompactList}\item 
Eina\+\_\+\+Bool \hyperlink{group__Elm__Mapbuf_gae69da3f5d6417ab8ae258a4e77bea872}{elm\+\_\+mapbuf\+\_\+enabled\+\_\+get} (const Elm\+\_\+\+Mapbuf $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get a value whether map is enabled or not. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_ga6dda7a8322ebaffc287a20c58026464e}{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set} (Elm\+\_\+\+Mapbuf $\ast$obj, int idx, int r, int g, int b, int a)
\begin{DoxyCompactList}\small\item\em Set the color of a vertex in the mapbuf. \end{DoxyCompactList}\item 
void \hyperlink{group__Elm__Mapbuf_ga53ff978e5c544bec74b16f41ba29d774}{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get} (Elm\+\_\+\+Mapbuf $\ast$obj, int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)
\begin{DoxyCompactList}\small\item\em Get the color set on a vertex in the mapbuf. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Elm__Mapbuf_gaed8b665e2ac7557abc645503327700fd}{elm\+\_\+mapbuf\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new mapbuf widget to the given parent Elementary (container) object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{mapbuf_inheritance_tree}}
\end{DoxyImageNoCaption}


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth]{img/widget/mapbuf/preview-00}}
\end{DoxyImageNoCaption}


This holds one content object and uses an Evas Map of transformation points to be later used with this content. So the content will be moved as a single image. So it will improve performance when you have a complex interface, with a lot of elements, and will need to move it frequently (the content object and its children).

This widget inherits from \hyperlink{group__Widget_elm-container-class}{The Elementary Container Class}, so that the functions meant to act on it will work for mapbuf objects\+:

\begin{DoxyItemize}
\item \hyperlink{group__Elm__General_ga0531ec8867c72def7c780601764ca642}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+set} \item \hyperlink{group__Elm__General_ga32413f4d59d8232cd362a922a281abf1}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+get} \item \hyperlink{group__Elm__General_gadc5a1df25fe17e31739841133b53b5fc}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+unset}\end{DoxyItemize}
Default content parts of the mapbuf widget that you can use are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ The main content of the mapbuf\end{DoxyItemize}
To enable map, \hyperlink{group__Elm__Mapbuf_gac2478280f81e22d3add165f7e480bd6a}{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set()} should be used.

See how to use this widget in this example\+: \hyperlink{mapbuf_example}{Mapbuf Widget Example} 

\subsection{Function Documentation}
\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+add@{elm\+\_\+mapbuf\+\_\+add}}
\index{elm\+\_\+mapbuf\+\_\+add@{elm\+\_\+mapbuf\+\_\+add}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}{elm_mapbuf_add(Evas_Object *parent)}}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+mapbuf\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gaed8b665e2ac7557abc645503327700fd}


Add a new mapbuf widget to the given parent Elementary (container) object. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A new mapbuf widget handle or {\ttfamily N\+U\+LL}, on errors.
\end{DoxyReturn}
This function inserts a new mapbuf widget on the canvas. \index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+alpha\+\_\+get@{elm\+\_\+mapbuf\+\_\+alpha\+\_\+get}}
\index{elm\+\_\+mapbuf\+\_\+alpha\+\_\+get@{elm\+\_\+mapbuf\+\_\+alpha\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+alpha\+\_\+get(const Elm\+\_\+\+Mapbuf $\ast$obj)}{elm_mapbuf_alpha_get(const Elm_Mapbuf *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+mapbuf\+\_\+alpha\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Elm\+\_\+\+Mapbuf $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gae5eb35909c38472bab65764a568947d8}


Get a value whether alpha blending is enabled or not. 

\begin{DoxyReturn}{Returns}
The alpha state. 
\end{DoxyReturn}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+alpha\+\_\+set@{elm\+\_\+mapbuf\+\_\+alpha\+\_\+set}}
\index{elm\+\_\+mapbuf\+\_\+alpha\+\_\+set@{elm\+\_\+mapbuf\+\_\+alpha\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+alpha\+\_\+set(\+Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool alpha)}{elm_mapbuf_alpha_set(Elm_Mapbuf *obj, Eina_Bool alpha)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+alpha\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{Eina\+\_\+\+Bool}]{alpha}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gaa594204de9687310a8613518d3639e89}


Set or unset alpha flag for map rendering. 

This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects have this currently. It stops alpha blending of the map area, and is useful if you know the object and/or all sub-\/objects is 100\% solid.

Alpha is enabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em alpha} & The alpha state. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+auto\+\_\+get@{elm\+\_\+mapbuf\+\_\+auto\+\_\+get}}
\index{elm\+\_\+mapbuf\+\_\+auto\+\_\+get@{elm\+\_\+mapbuf\+\_\+auto\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+auto\+\_\+get(const Elm\+\_\+\+Mapbuf $\ast$obj)}{elm_mapbuf_auto_get(const Elm_Mapbuf *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+mapbuf\+\_\+auto\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Elm\+\_\+\+Mapbuf $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga7beb6e4c2d3927034072fa4425eccf75}


Get a value whether auto mode is enabled or not. 

\begin{DoxyReturn}{Returns}
The auto mode state. 
\end{DoxyReturn}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+auto\+\_\+set@{elm\+\_\+mapbuf\+\_\+auto\+\_\+set}}
\index{elm\+\_\+mapbuf\+\_\+auto\+\_\+set@{elm\+\_\+mapbuf\+\_\+auto\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+auto\+\_\+set(\+Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool on)}{elm_mapbuf_auto_set(Elm_Mapbuf *obj, Eina_Bool on)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+auto\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{Eina\+\_\+\+Bool}]{on}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga9acf0d119600f2454939e5e6cca068ed}


Set or unset auto flag for map rendering. 

When a ampbuf object has \char`\"{}auto mode\char`\"{} enabled, then it will enable and disable map mode based on current visibility. Mapbuf will track if you show or hide it A\+ND if the object is inside the canvas viewport or not when it is moved or resized. Note that if you turn automode off, then map mode will be in a disabled state at this point. When you turn it on for the first time, the current state will be evaluated base on current properties of the mapbuf object.

Auto mode is disabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em on} & The auto mode state. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+enabled\+\_\+get@{elm\+\_\+mapbuf\+\_\+enabled\+\_\+get}}
\index{elm\+\_\+mapbuf\+\_\+enabled\+\_\+get@{elm\+\_\+mapbuf\+\_\+enabled\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+enabled\+\_\+get(const Elm\+\_\+\+Mapbuf $\ast$obj)}{elm_mapbuf_enabled_get(const Elm_Mapbuf *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+mapbuf\+\_\+enabled\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Elm\+\_\+\+Mapbuf $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gae69da3f5d6417ab8ae258a4e77bea872}


Get a value whether map is enabled or not. 

\begin{DoxyReturn}{Returns}
The enabled state. 
\end{DoxyReturn}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+enabled\+\_\+set@{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set}}
\index{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set@{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+enabled\+\_\+set(\+Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool enabled)}{elm_mapbuf_enabled_set(Elm_Mapbuf *obj, Eina_Bool enabled)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+enabled\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{Eina\+\_\+\+Bool}]{enabled}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gac2478280f81e22d3add165f7e480bd6a}


Enable or disable the map. 

This enables the map that is set or disables it. On enable, the object geometry will be saved, and the new geometry will change (position and size) to reflect the map geometry set.

Also, when enabled, alpha and smooth states will be used, so if the content isn\textquotesingle{}t solid, alpha should be enabled, for example, otherwise a black rectangle will fill the content.

When disabled, the stored map will be freed and geometry prior to enabling the map will be restored.

It\textquotesingle{}s disabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em enabled} & The enabled state. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get@{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get}}
\index{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get@{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get(\+Elm\+\_\+\+Mapbuf $\ast$obj, int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)}{elm_mapbuf_point_color_get(Elm_Mapbuf *obj, int idx, int *r, int *g, int *b, int *a)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{int}]{idx, }
\item[{int $\ast$}]{r, }
\item[{int $\ast$}]{g, }
\item[{int $\ast$}]{b, }
\item[{int $\ast$}]{a}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga53ff978e5c544bec74b16f41ba29d774}


Get the color set on a vertex in the mapbuf. 

This gets the color set by \hyperlink{group__Elm__Mapbuf_ga6dda7a8322ebaffc287a20c58026464e}{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set} on the given vertex of the mapbuf.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em r} & Pointer to red return. \\
\hline
\mbox{\tt out}  & {\em g} & Pointer to green return. \\
\hline
\mbox{\tt out}  & {\em b} & Pointer to blue return. \\
\hline
\mbox{\tt out}  & {\em a} & Pointer to alpha return.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+9 
\end{DoxySince}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set@{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set}}
\index{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set@{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set(\+Elm\+\_\+\+Mapbuf $\ast$obj, int idx, int r, int g, int b, int a)}{elm_mapbuf_point_color_set(Elm_Mapbuf *obj, int idx, int r, int g, int b, int a)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{int}]{idx, }
\item[{int}]{r, }
\item[{int}]{g, }
\item[{int}]{b, }
\item[{int}]{a}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga6dda7a8322ebaffc287a20c58026464e}


Set the color of a vertex in the mapbuf. 

This sets the color of the vertex in the mapbuf. Colors will be linearly interpolated between vertex points through the mapbuf. Color will multiply the \char`\"{}texture\char`\"{} pixels (like G\+L\+\_\+\+M\+O\+D\+U\+L\+A\+TE in Open\+GL). The default color of a vertex in a mapbuf is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em r} & Red (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em g} & Green (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em b} & Blue (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em a} & Alpha (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+9 
\end{DoxySince}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+smooth\+\_\+get@{elm\+\_\+mapbuf\+\_\+smooth\+\_\+get}}
\index{elm\+\_\+mapbuf\+\_\+smooth\+\_\+get@{elm\+\_\+mapbuf\+\_\+smooth\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+smooth\+\_\+get(const Elm\+\_\+\+Mapbuf $\ast$obj)}{elm_mapbuf_smooth_get(const Elm_Mapbuf *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+mapbuf\+\_\+smooth\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Elm\+\_\+\+Mapbuf $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga4ddcfca0d1b4c796d3939baf4683b190}


Get a value whether smooth map rendering is enabled or not. 

\begin{DoxyReturn}{Returns}
The smooth mode state. 
\end{DoxyReturn}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+mapbuf\+\_\+smooth\+\_\+set@{elm\+\_\+mapbuf\+\_\+smooth\+\_\+set}}
\index{elm\+\_\+mapbuf\+\_\+smooth\+\_\+set@{elm\+\_\+mapbuf\+\_\+smooth\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+mapbuf\+\_\+smooth\+\_\+set(\+Elm\+\_\+\+Mapbuf $\ast$obj, Eina\+\_\+\+Bool smooth)}{elm_mapbuf_smooth_set(Elm_Mapbuf *obj, Eina_Bool smooth)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+mapbuf\+\_\+smooth\+\_\+set (
\begin{DoxyParamCaption}
\item[{Elm\+\_\+\+Mapbuf $\ast$}]{obj, }
\item[{Eina\+\_\+\+Bool}]{smooth}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga75a4e96621b6e3d4563811c94b8db9a8}


Enable or disable smooth map rendering. 

This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off.

By default smooth maps are enabled.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em smooth} & The smooth mode state. \\
\hline
\end{DoxyParams}


References elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get(void)}{elm_obj_mapbuf_alpha_get(void)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gaf291f65b66bb60989edc123cacd31a88}


Get a value whether alpha blending is enabled or not. 

\begin{DoxyReturn}{Returns}
The alpha state. 
\end{DoxyReturn}


Referenced by elm\+\_\+mapbuf\+\_\+alpha\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set(\+Eina\+\_\+\+Bool alpha)}{elm_obj_mapbuf_alpha_set(Eina_Bool alpha)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+alpha\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eina\+\_\+\+Bool}]{alpha}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga7c6c408d7142c759c8b08ade7f36fcdb}


Set or unset alpha flag for map rendering. 

This sets alpha flag for map rendering. If the object is a type that has its own alpha settings, then this will take precedence. Only image objects have this currently. It stops alpha blending of the map area, and is useful if you know the object and/or all sub-\/objects is 100\% solid.

Alpha is enabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em alpha} & The alpha state. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+mapbuf\+\_\+alpha\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get(void)}{elm_obj_mapbuf_auto_get(void)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga1ec3719cd169ee0c02f1bdf202011361}


Get a value whether auto mode is enabled or not. 

\begin{DoxyReturn}{Returns}
The auto mode state. 
\end{DoxyReturn}


Referenced by elm\+\_\+mapbuf\+\_\+auto\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set(\+Eina\+\_\+\+Bool on)}{elm_obj_mapbuf_auto_set(Eina_Bool on)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+auto\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eina\+\_\+\+Bool}]{on}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga0a667f053772c91bb706d62795712439}


Set or unset auto flag for map rendering. 

When a ampbuf object has \char`\"{}auto mode\char`\"{} enabled, then it will enable and disable map mode based on current visibility. Mapbuf will track if you show or hide it A\+ND if the object is inside the canvas viewport or not when it is moved or resized. Note that if you turn automode off, then map mode will be in a disabled state at this point. When you turn it on for the first time, the current state will be evaluated base on current properties of the mapbuf object.

Auto mode is disabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em on} & The auto mode state. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+mapbuf\+\_\+auto\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get(void)}{elm_obj_mapbuf_enabled_get(void)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga577295e1056744d877759121219b10ae}


Get a value whether map is enabled or not. 

\begin{DoxyReturn}{Returns}
The enabled state. 
\end{DoxyReturn}


Referenced by elm\+\_\+mapbuf\+\_\+enabled\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set(\+Eina\+\_\+\+Bool enabled)}{elm_obj_mapbuf_enabled_set(Eina_Bool enabled)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+enabled\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eina\+\_\+\+Bool}]{enabled}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga1c7f76aecc2a632687ae7a3227e6c05d}


Enable or disable the map. 

This enables the map that is set or disables it. On enable, the object geometry will be saved, and the new geometry will change (position and size) to reflect the map geometry set.

Also, when enabled, alpha and smooth states will be used, so if the content isn\textquotesingle{}t solid, alpha should be enabled, for example, otherwise a black rectangle will fill the content.

When disabled, the stored map will be freed and geometry prior to enabling the map will be restored.

It\textquotesingle{}s disabled by default.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em enabled} & The enabled state. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+mapbuf\+\_\+enabled\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get(int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)}{elm_obj_mapbuf_point_color_get(int idx, int *r, int *g, int *b, int *a)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get (
\begin{DoxyParamCaption}
\item[{int}]{idx, }
\item[{int $\ast$}]{r, }
\item[{int $\ast$}]{g, }
\item[{int $\ast$}]{b, }
\item[{int $\ast$}]{a}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gace0466412cd0996cda001310ce2d3006}


Get the color set on a vertex in the mapbuf. 

This gets the color set by \hyperlink{group__Elm__Mapbuf_ga45631a874975a7450282c13c1d8dfa03}{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set} on the given vertex of the mapbuf.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt out}  & {\em r} & Pointer to red return. \\
\hline
\mbox{\tt out}  & {\em g} & Pointer to green return. \\
\hline
\mbox{\tt out}  & {\em b} & Pointer to blue return. \\
\hline
\mbox{\tt out}  & {\em a} & Pointer to alpha return.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+9 
\end{DoxySince}


Referenced by elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set(int idx, int r, int g, int b, int a)}{elm_obj_mapbuf_point_color_set(int idx, int r, int g, int b, int a)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set (
\begin{DoxyParamCaption}
\item[{int}]{idx, }
\item[{int}]{r, }
\item[{int}]{g, }
\item[{int}]{b, }
\item[{int}]{a}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga45631a874975a7450282c13c1d8dfa03}


Set the color of a vertex in the mapbuf. 

This sets the color of the vertex in the mapbuf. Colors will be linearly interpolated between vertex points through the mapbuf. Color will multiply the \char`\"{}texture\char`\"{} pixels (like G\+L\+\_\+\+M\+O\+D\+U\+L\+A\+TE in Open\+GL). The default color of a vertex in a mapbuf is white solid (255, 255, 255, 255) which means it will have no affect on modifying the texture pixels.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em r} & Red (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em g} & Green (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em b} & Blue (0 -\/ 255) \\
\hline
\mbox{\tt in}  & {\em a} & Alpha (0 -\/ 255)\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+9 
\end{DoxySince}


Referenced by elm\+\_\+mapbuf\+\_\+point\+\_\+color\+\_\+set().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get@{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get(void)}{elm_obj_mapbuf_smooth_get(void)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI Eina\+\_\+\+Bool elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+get (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_gab9f7ee1128b7ac7cad21e0ad1fb46925}


Get a value whether smooth map rendering is enabled or not. 

\begin{DoxyReturn}{Returns}
The smooth mode state. 
\end{DoxyReturn}


Referenced by elm\+\_\+mapbuf\+\_\+smooth\+\_\+get().

\index{Mapbuf@{Mapbuf}!elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set}}
\index{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set@{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set}!Mapbuf@{Mapbuf}}
\subsubsection[{\texorpdfstring{elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set(\+Eina\+\_\+\+Bool smooth)}{elm_obj_mapbuf_smooth_set(Eina_Bool smooth)}}]{\setlength{\rightskip}{0pt plus 5cm}E\+O\+A\+PI void elm\+\_\+obj\+\_\+mapbuf\+\_\+smooth\+\_\+set (
\begin{DoxyParamCaption}
\item[{Eina\+\_\+\+Bool}]{smooth}
\end{DoxyParamCaption}
)}\label{group__Elm__Mapbuf_ga07ec467f85dbb0c9ed4294f27cf630ee}


Enable or disable smooth map rendering. 

This sets smoothing for map rendering. If the object is a type that has its own smoothing settings, then both the smooth settings for this object and the map must be turned off.

By default smooth maps are enabled.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em smooth} & The smooth mode state. \\
\hline
\end{DoxyParams}


Referenced by elm\+\_\+mapbuf\+\_\+smooth\+\_\+set().

