\section{Mapbuf}
\label{group__Mapbuf}\index{Mapbuf@{Mapbuf}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__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__General_ga0531ec8867c72def7c780601764ca642}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+set} \item \hyperlink{group__General_ga32413f4d59d8232cd362a922a281abf1}{elm\+\_\+object\+\_\+part\+\_\+content\+\_\+get} \item \hyperlink{group__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, 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__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. 