\section{Ctxpopup}
\label{group__Ctxpopup}\index{Ctxpopup@{Ctxpopup}}


Context popup widget.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Evas\+\_\+\+Object $\ast$ \hyperlink{group__Ctxpopup_gae1ad10d2c5153a5f009c23b83e71b251}{elm\+\_\+ctxpopup\+\_\+add} (Evas\+\_\+\+Object $\ast$parent)
\begin{DoxyCompactList}\small\item\em Add a new Ctxpopup object to the parent. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Context popup widget. 

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


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


A ctxpopup is a widget that, when shown, pops up a list of items. It automatically chooses an area inside its parent object\textquotesingle{}s view (set via \hyperlink{group__Ctxpopup_gae1ad10d2c5153a5f009c23b83e71b251}{elm\+\_\+ctxpopup\+\_\+add()} and elm\+\_\+ctxpopup\+\_\+hover\+\_\+parent\+\_\+set()) to optimally fit into it. In the default theme, it will also point an arrow to it\textquotesingle{}s top left position at the time one shows it. Ctxpopup items have a label and/or an icon. It is intended for a small number of items (hence the use of list, not genlist).

This widget inherits from the Layout one, so that all the functions acting on it also work for context popup objects (since 1.\+8).

This widget emits the following signals, besides the ones sent from Layout\+:
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}dismissed\char`\"{}} -\/ This is called when 1. the outside of ctxpopup was clicked or 2. its parent area is changed or 3. the language is changed and also when
\end{DoxyItemize}
\begin{DoxyEnumerate}
\item the parent object is resized due to the window rotation. Then ctxpopup is dismissed.
\end{DoxyEnumerate}
\begin{DoxyItemize}
\item {\ttfamily \char`\"{}language,changed\char`\"{}} -\/ This is called when the program\textquotesingle{}s language is changed.
\item {\ttfamily \char`\"{}focused\char`\"{}} -\/ When the ctxpopup has received focus. (since 1.\+8)
\item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ When the ctxpopup has lost focus. (since 1.\+8) Default content parts of the ctxpopup widget that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ A content of the ctxpopup\end{DoxyItemize}
Default content parts of the ctxpopup items that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}icon\char`\"{} -\/ An icon in the title area\end{DoxyItemize}
Default text parts of the ctxpopup items that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ A title label in the title area\end{DoxyItemize}
Supported elm\+\_\+object common A\+P\+Is. \begin{DoxyItemize}
\item \hyperlink{group__General_ga6849a57df3316eabad5bec443bf87597}{elm\+\_\+object\+\_\+disabled\+\_\+set} \item \hyperlink{group__General_ga3ecb0d6b4e76ff39006f218942c7950d}{elm\+\_\+object\+\_\+disabled\+\_\+get}\end{DoxyItemize}
Supported elm\+\_\+object\+\_\+item common A\+P\+Is. \begin{DoxyItemize}
\item elm\+\_\+object\+\_\+item\+\_\+del \item elm\+\_\+object\+\_\+item\+\_\+disabled\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+disabled\+\_\+get \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\+\_\+signal\+\_\+emit \item elm\+\_\+object\+\_\+item\+\_\+focus\+\_\+set \item elm\+\_\+object\+\_\+item\+\_\+focus\+\_\+get\end{DoxyItemize}
\hyperlink{tutorial_ctxpopup}{Ctxpopup example} shows the usage of a good deal of the A\+P\+I. 
\end{DoxyItemize}

\subsection{Function Documentation}
\index{Ctxpopup@{Ctxpopup}!elm\+\_\+ctxpopup\+\_\+add@{elm\+\_\+ctxpopup\+\_\+add}}
\index{elm\+\_\+ctxpopup\+\_\+add@{elm\+\_\+ctxpopup\+\_\+add}!Ctxpopup@{Ctxpopup}}
\subsubsection[{elm\+\_\+ctxpopup\+\_\+add(\+Evas\+\_\+\+Object $\ast$parent)}]{\setlength{\rightskip}{0pt plus 5cm}Evas\+\_\+\+Object$\ast$ elm\+\_\+ctxpopup\+\_\+add (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{parent}
\end{DoxyParamCaption}
)}\label{group__Ctxpopup_gae1ad10d2c5153a5f009c23b83e71b251}


Add a new Ctxpopup object to the parent. 


\begin{DoxyParams}{Parameters}
{\em parent} & Parent object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New object or {\ttfamily N\+U\+L\+L}, if it cannot be created 
\end{DoxyReturn}
