\section{Styles}
\label{group__Styles}\index{Styles@{Styles}}


Widgets can have different styles of look.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Eina\+\_\+\+Bool \hyperlink{group__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}{elm\+\_\+object\+\_\+style\+\_\+set} (Evas\+\_\+\+Object $\ast$obj, const char $\ast$style)
\begin{DoxyCompactList}\small\item\em Set the style to used by a given widget. \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__Styles_ga24dacea7a34b91f10ee8d170be392797}{elm\+\_\+object\+\_\+style\+\_\+get} (const Evas\+\_\+\+Object $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the style used by the widget. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Widgets can have different styles of look. 

These generic A\+P\+I\textquotesingle{}s set styles of widgets, if they support them (and if the theme(s) do).

\hyperlink{general_functions_example_page}{This} example contemplates some of these functions. 

\subsection{Function Documentation}
\index{Styles@{Styles}!elm\+\_\+object\+\_\+style\+\_\+get@{elm\+\_\+object\+\_\+style\+\_\+get}}
\index{elm\+\_\+object\+\_\+style\+\_\+get@{elm\+\_\+object\+\_\+style\+\_\+get}!Styles@{Styles}}
\subsubsection[{elm\+\_\+object\+\_\+style\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ elm\+\_\+object\+\_\+style\+\_\+get (
\begin{DoxyParamCaption}
\item[{const Evas\+\_\+\+Object $\ast$}]{obj}
\end{DoxyParamCaption}
)}\label{group__Styles_ga24dacea7a34b91f10ee8d170be392797}


Get the style used by the widget. 

This gets the style being used for that widget. Note that the string pointer is only valid as long as the object is valid and the style doesn\textquotesingle{}t change.


\begin{DoxyParams}{Parameters}
{\em obj} & The Elementary widget to query for its style \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The style name used
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\hyperlink{group__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}{elm\+\_\+object\+\_\+style\+\_\+set()} 
\end{DoxySeeAlso}
\index{Styles@{Styles}!elm\+\_\+object\+\_\+style\+\_\+set@{elm\+\_\+object\+\_\+style\+\_\+set}}
\index{elm\+\_\+object\+\_\+style\+\_\+set@{elm\+\_\+object\+\_\+style\+\_\+set}!Styles@{Styles}}
\subsubsection[{elm\+\_\+object\+\_\+style\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}Eina\+\_\+\+Bool elm\+\_\+object\+\_\+style\+\_\+set (
\begin{DoxyParamCaption}
\item[{Evas\+\_\+\+Object $\ast$}]{obj, }
\item[{const char $\ast$}]{style}
\end{DoxyParamCaption}
)}\label{group__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}


Set the style to used by a given widget. 


\begin{DoxyParams}{Parameters}
{\em obj} & The Elementary widget to style \\
\hline
{\em style} & The name of the style to use on it \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\+I\+N\+A\+\_\+\+T\+R\+U\+E} on success, {\ttfamily E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E} otherwise
\end{DoxyReturn}
This sets the style (by name) that will define the appearance of a widget. Styles vary from widget to widget and may also be defined by other themes by means of extensions and overlays.

\begin{DoxySeeAlso}{See also}
\hyperlink{group__Theme_ga71d7575c05248a5c6d7ae3b525e964cc}{elm\+\_\+theme\+\_\+extension\+\_\+add()} 

\hyperlink{group__Theme_ga474684d4227bc309a1ce314ff16c70a7}{elm\+\_\+theme\+\_\+extension\+\_\+del()} 

\hyperlink{group__Theme_ga6c9e97741f3893e14508ec5e4410b4f0}{elm\+\_\+theme\+\_\+overlay\+\_\+add()} 

\hyperlink{group__Theme_ga100c2a0f541686f3272cc6009aae5864}{elm\+\_\+theme\+\_\+overlay\+\_\+del()} 
\end{DoxySeeAlso}
