\hypertarget{group__Elm__Styles}{}\doxysection{Styles}
\label{group__Elm__Styles}\index{Styles@{Styles}}


Widgets can have different styles of look.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Elm__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}{elm\+\_\+object\+\_\+style\+\_\+set}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{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$ \mbox{\hyperlink{group__Elm__Styles_ga24dacea7a34b91f10ee8d170be392797}{elm\+\_\+object\+\_\+style\+\_\+get}} (const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the style used by the widget. \end{DoxyCompactList}\end{DoxyCompactItemize}


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

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

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

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Elm__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}\label{group__Elm__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}} 
\index{Styles@{Styles}!elm\_object\_style\_set@{elm\_object\_style\_set}}
\index{elm\_object\_style\_set@{elm\_object\_style\_set}!Styles@{Styles}}
\doxysubsubsection{\texorpdfstring{elm\_object\_style\_set()}{elm\_object\_style\_set()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} elm\+\_\+object\+\_\+style\+\_\+set (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{style }\end{DoxyParamCaption})}



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 EINA\+\_\+\+TRUE} on success, {\ttfamily EINA\+\_\+\+FALSE} 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}
\mbox{\hyperlink{group__Elm__Theme_ga71d7575c05248a5c6d7ae3b525e964cc}{elm\+\_\+theme\+\_\+extension\+\_\+add()}} 

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

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

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


References EINA\+\_\+\+FALSE, and EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL.

\mbox{\Hypertarget{group__Elm__Styles_ga24dacea7a34b91f10ee8d170be392797}\label{group__Elm__Styles_ga24dacea7a34b91f10ee8d170be392797}} 
\index{Styles@{Styles}!elm\_object\_style\_get@{elm\_object\_style\_get}}
\index{elm\_object\_style\_get@{elm\_object\_style\_get}!Styles@{Styles}}
\doxysubsubsection{\texorpdfstring{elm\_object\_style\_get()}{elm\_object\_style\_get()}}
{\footnotesize\ttfamily const char$\ast$ elm\+\_\+object\+\_\+style\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



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}
\mbox{\hyperlink{group__Elm__Styles_ga7fc2d1f9ba723470da7a05799c49f7fe}{elm\+\_\+object\+\_\+style\+\_\+set()}} 
\end{DoxySeeAlso}


References EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL.

