\section{Bubble}
\label{group__Bubble}\index{Bubble@{Bubble}}


The Bubble is a widget to show text similar to how speech is represented in comics.  


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


\subsection{Detailed Description}
The Bubble is a widget to show text similar to how speech is represented in comics. 

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


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


The bubble widget contains 5 important visual elements\+: \begin{DoxyItemize}
\item The frame is a rectangle with rounded edjes and an \char`\"{}arrow\char`\"{}. \item The {\ttfamily icon} is an image to which the frame\textquotesingle{}s arrow points to. \item The {\ttfamily label} is a text which appears to the right of the icon if the corner is \char`\"{}top\+\_\+left\char`\"{} or \char`\"{}bottom\+\_\+left\char`\"{} and is right aligned to the frame otherwise. \item The {\ttfamily info} is a text which appears to the right of the label. Info\textquotesingle{}s font is of a lighter color than label. \item The {\ttfamily content} is an evas object that is shown inside the frame.\end{DoxyItemize}
The position of the arrow, icon, label and info depends on which corner is selected. The four available corners are\+: \begin{DoxyItemize}
\item \char`\"{}top\+\_\+left\char`\"{} -\/ Default \item \char`\"{}top\+\_\+right\char`\"{} \item \char`\"{}bottom\+\_\+left\char`\"{} \item \char`\"{}bottom\+\_\+right\char`\"{}\end{DoxyItemize}
This widget inherits from the \hyperlink{group__Layout}{Layout} one, so that all the functions acting on it also work for bubble objects.

This widget emits the following signals, besides the ones sent from Layout\+: \begin{DoxyItemize}
\item {\ttfamily \char`\"{}clicked\char`\"{}} -\/ This is called when a user has clicked the bubble. \item {\ttfamily \char`\"{}focused\char`\"{}} -\/ When the bubble has received focus. (since 1.\+8) \item {\ttfamily \char`\"{}unfocused\char`\"{}} -\/ When the bubble has lost focus. (since 1.\+8)\end{DoxyItemize}
Default content parts of the bubble that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ A content of the bubble \item \char`\"{}icon\char`\"{} -\/ An icon of the bubble\end{DoxyItemize}
Default text parts of the button widget that you can use for are\+: \begin{DoxyItemize}
\item \char`\"{}default\char`\"{} -\/ A label of the bubble \item \char`\"{}info\char`\"{} -\/ An info of the bubble\end{DoxyItemize}
Supported elm\+\_\+object common A\+P\+Is. \begin{DoxyItemize}
\item \hyperlink{group__General_ga9c088563c442670796564d2e5158f154}{elm\+\_\+object\+\_\+part\+\_\+text\+\_\+set} \item \hyperlink{group__General_ga965e34858eb4b80b7a4b5feda732bf27}{elm\+\_\+object\+\_\+part\+\_\+text\+\_\+get} \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}
For an example of using a bubble see \hyperlink{bubble_01_example_page}{this}. 

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


Add a new bubble 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}
This function adds a text bubble to the given parent evas object. 