\section{Menu}
\label{group__Menu}\index{Menu@{Menu}}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Menu_gaaeecc450db4e359289c16c41489ca94b}{elm\+\_\+menu\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new menu to the parent. \end{DoxyCompactList}\item 
void \hyperlink{group__Menu_ga38bf247cc8be061572d7ad3621ea190a}{elm\+\_\+menu\+\_\+parent\+\_\+set} (Evas\+\_\+\+Object $\ast$obj, Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Set the parent for the given menu widget. \end{DoxyCompactList}\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Menu_gab8407e820a282aa598168beee2a4dfbe}{elm\+\_\+menu\+\_\+parent\+\_\+get} (const Evas\+\_\+\+Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the parent for the given menu widget. \end{DoxyCompactList}\end{DoxyCompactItemize}


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


 
\begin{DoxyImageNoCaption}
  \mbox{\includegraphics[width=\textwidth,height=\textheight/2,keepaspectratio=true]{img/widget/menu/preview-00}}
\end{DoxyImageNoCaption}


A menu is a list of items displayed above its parent. When the menu is showing its parent is darkened. Each item can have a sub-\/menu. The menu object can be used to display a menu on a right click event, in a toolbar, anywhere.

Signals that you can add callbacks for are\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}clicked\char`\"{}} -\/ the user clicked the empty space in the menu to dismiss. \item {\ttfamily \char`\"{}dismissed\char`\"{}} -\/ the user clicked the empty space in the menu to dismiss (since 1.\+8) \item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ the program\textquotesingle{}s language changed (since 1.\+9)\end{DoxyItemize}
Default content parts of the menu items that you can use for are\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}default\char`\"{}} -\/ A main content of the menu item\end{DoxyItemize}
Default text parts of the menu items that you can use for are\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}default\char`\"{}} -\/ A label in the menu item\end{DoxyItemize}
Supported elm\+\_\+object\+\_\+item common A\+P\+Is. \begin{DoxyItemize}
\item elm\+\_\+object\+\_\+item\+\_\+del \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+text\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+text\+\_\+get \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+content\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+part\+\_\+content\+\_\+get \item elm\+\_\+object\+\_\+item\+\_\+disabled\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+disabled\+\_\+get \item elm\+\_\+object\+\_\+item\+\_\+signal\+\_\+emit (since 1.\+12)\end{DoxyItemize}
\begin{DoxySeeAlso}{See also}
\hyperlink{tutorial_menu}{Menu Example} 
\end{DoxySeeAlso}


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


Add a new menu to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & The parent object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The new object or N\+U\+LL if it cannot be created. 
\end{DoxyReturn}


References elm\+\_\+layout\+\_\+content\+\_\+set(), and elm\+\_\+menu\+\_\+parent\+\_\+set().



Referenced by elm\+\_\+win\+\_\+util\+\_\+dialog\+\_\+add().

\index{Menu@{Menu}!elm\+\_\+menu\+\_\+parent\+\_\+get@{elm\+\_\+menu\+\_\+parent\+\_\+get}}
\index{elm\+\_\+menu\+\_\+parent\+\_\+get@{elm\+\_\+menu\+\_\+parent\+\_\+get}!Menu@{Menu}}
\subsubsection[{\texorpdfstring{elm\+\_\+menu\+\_\+parent\+\_\+get(const Evas\+\_\+\+Object $\ast$obj)}{elm_menu_parent_get(const Evas_Object *obj)}}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+menu\+\_\+parent\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Evas\+\_\+\+Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Menu_gab8407e820a282aa598168beee2a4dfbe}


Get the parent for the given menu widget. 


\begin{DoxyParams}{Parameters}
{\em obj} & The menu object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The parent.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Menu_ga38bf247cc8be061572d7ad3621ea190a}{elm\+\_\+menu\+\_\+parent\+\_\+set()} 
\end{DoxySeeAlso}


References elm\+\_\+icon\+\_\+add(), elm\+\_\+layout\+\_\+content\+\_\+set(), and elm\+\_\+object\+\_\+item\+\_\+text\+\_\+set.

\index{Menu@{Menu}!elm\+\_\+menu\+\_\+parent\+\_\+set@{elm\+\_\+menu\+\_\+parent\+\_\+set}}
\index{elm\+\_\+menu\+\_\+parent\+\_\+set@{elm\+\_\+menu\+\_\+parent\+\_\+set}!Menu@{Menu}}
\subsubsection[{\texorpdfstring{elm\+\_\+menu\+\_\+parent\+\_\+set(\+Evas\+\_\+\+Object $\ast$obj, Evas\+\_\+\+Object $\ast$parent)}{elm_menu_parent_set(Evas_Object *obj, Evas_Object *parent)}}]{\setlength{\rightskip}{0pt plus 5cm}void elm\+\_\+menu\+\_\+parent\+\_\+set (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{obj, }
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Menu_ga38bf247cc8be061572d7ad3621ea190a}


Set the parent for the given menu widget. 


\begin{DoxyParams}{Parameters}
{\em obj} & The menu object. \\
\hline
{\em parent} & The new parent. \\
\hline
\end{DoxyParams}


References elm\+\_\+hover\+\_\+parent\+\_\+set().



Referenced by elm\+\_\+menu\+\_\+add(), and elm\+\_\+toolbar\+\_\+transverse\+\_\+expanded\+\_\+get().

