\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}\item 
void \hyperlink{group__Styles_gaf8d3bc757952a004aa159a46650f7ef4}{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set} (\hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$it, Eina\-\_\-\-Bool disabled)
\begin{DoxyCompactList}\small\item\em Set the disabled state of an widget item. \end{DoxyCompactList}\item 
Eina\-\_\-\-Bool \hyperlink{group__Styles_gaf088ea84b1133a01a31b7663b7f62e5c}{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get} (const \hyperlink{group__General_ga13a0c231414b86e62f68afe3c6fb462b}{Elm\-\_\-\-Object\-\_\-\-Item} $\ast$it)
\begin{DoxyCompactList}\small\item\em Get the disabled state of an widget item. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Widgets can have different styles of look. These generic A\-P\-I'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\-\_\-item\-\_\-disabled\-\_\-get@{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get}}
\index{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get@{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get}!Styles@{Styles}}
\subsubsection[{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}Eina\-\_\-\-Bool elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-get (
\begin{DoxyParamCaption}
\item[{const {\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$}]{it}
\end{DoxyParamCaption}
)}\label{group__Styles_gaf088ea84b1133a01a31b7663b7f62e5c}


Get the disabled state of an widget item. 


\begin{DoxyParams}{Parameters}
{\em it} & The Elementary object item \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily E\-I\-N\-A\-\_\-\-T\-R\-U\-E}, if the widget item is disabled, {\ttfamily E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} if it's enabled (or on errors)
\end{DoxyReturn}
This gets the state of the widget, which might be enabled or disabled. \index{Styles@{Styles}!elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set@{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set}}
\index{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set@{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set}!Styles@{Styles}}
\subsubsection[{elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}void elm\-\_\-object\-\_\-item\-\_\-disabled\-\_\-set (
\begin{DoxyParamCaption}
\item[{{\bf Elm\-\_\-\-Object\-\_\-\-Item} $\ast$}]{it, }
\item[{Eina\-\_\-\-Bool}]{disabled}
\end{DoxyParamCaption}
)}\label{group__Styles_gaf8d3bc757952a004aa159a46650f7ef4}


Set the disabled state of an widget item. 


\begin{DoxyParams}{Parameters}
{\em it} & The Elementary object item \\
\hline
{\em disabled} & The state to put in in\-: {\ttfamily E\-I\-N\-A\-\_\-\-T\-R\-U\-E} for disabled, {\ttfamily E\-I\-N\-A\-\_\-\-F\-A\-L\-S\-E} for enabled\\
\hline
\end{DoxyParams}
Elementary object item can be {\bfseries disabled}, in which state they won't receive input and, in general, will be themed differently from their normal state, usually greyed out. Useful for contexts where you don't want your users to interact with some of the parts of you interface.

This sets the state for the widget item, either disabling it or enabling it back. \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'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}
