\hypertarget{group__Evas__Smart__Group}{}\doxysection{Smart Functions}
\label{group__Evas__Smart__Group}\index{Smart Functions@{Smart Functions}}


Functions that deal with \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} structs, creating definition (classes) of objects that will have customized behavior for methods like \mbox{\hyperlink{group__Evas__Object__Group_ga335c8ee6eaeaac9710656af4f8b0db91}{evas\+\_\+object\+\_\+move()}}, \mbox{\hyperlink{group__Evas__Object__Group_gacad94595f83580c18908cb3b69b08d1a}{evas\+\_\+object\+\_\+resize()}}, \mbox{\hyperlink{group__Evas__Object__Group_ga66f8c8350b182fe880d0242a26de2632}{evas\+\_\+object\+\_\+clip\+\_\+set()}} and others.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Evas__Smart__Class}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Class}}
\begin{DoxyCompactList}\small\item\em A smart object\textquotesingle{}s {\bfseries{base}} class definition. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Evas__Smart__Interface}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Interface}}
\begin{DoxyCompactList}\small\item\em A smart object\textquotesingle{}s {\bfseries{base}} interface definition. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Evas__Smart__Cb__Description}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}}
\begin{DoxyCompactList}\small\item\em Describes a callback issued by a smart object (\mbox{\hyperlink{group__Evas__Smart__Object__Group_ga684daaa265375789a2e0f2fa15333512}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+call()}}), as defined in its smart object class. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}~4
\begin{DoxyCompactList}\small\item\em The version you have to put into the version field in the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} struct. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL}}~\{NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}
\begin{DoxyCompactList}\small\item\em Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION}}~\{NULL, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}
\begin{DoxyCompactList}\small\item\em Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set version. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION}}(name)~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}
\begin{DoxyCompactList}\small\item\em Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name and version. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT}}(name,  parent)~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, parent, NULL, NULL\}
\begin{DoxyCompactList}\small\item\em Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name, version and parent class. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS}}(name,  parent,  callbacks)~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, parent, callbacks, NULL\}
\begin{DoxyCompactList}\small\item\em Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name, version, parent class and callbacks definition. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}{EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+NEW}}(smart\+\_\+name,  prefix,  api\+\_\+type,  parent\+\_\+type,  parent\+\_\+func,  cb\+\_\+desc)
\begin{DoxyCompactList}\small\item\em Convenience macro to subclass a given Evas smart class. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga647c0365b6819db617e5e8dc33d592f6}{EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+IFACE\+\_\+\+NEW}}(smart\+\_\+name,  prefix,  api\+\_\+type,  parent\+\_\+type,  parent\+\_\+func,  cb\+\_\+desc,  ifaces)
\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga4aa4b72aafa0391144fb0171aeff2ccd}{EVAS\+\_\+\+SMART\+\_\+\+DATA\+\_\+\+ALLOC}}(o,  priv\+\_\+type)
\begin{DoxyCompactList}\small\item\em Convenience macro to allocate smart data only if needed. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Evas__Smart__Group_ga6888875280ccf11f026e09c890650c95}{evas\+\_\+smart\+\_\+class\+\_\+inherit}}(sc,  parent\+\_\+sc)~\mbox{\hyperlink{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}{evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full}}(sc, (\mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$)parent\+\_\+sc, sizeof($\ast$parent\+\_\+sc))
\begin{DoxyCompactList}\small\item\em Easy to use version of \mbox{\hyperlink{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}{evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full()}}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \mbox{\hyperlink{struct__Evas__Smart__Class}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Class}} \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}}
\begin{DoxyCompactList}\small\item\em A smart object\textquotesingle{}s {\bfseries{base}} class definition. \end{DoxyCompactList}\item 
typedef struct \mbox{\hyperlink{struct__Evas__Smart__Interface}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Interface}} \mbox{\hyperlink{group__Evas__Smart__Group_gaef9b6443e1fdb6ffd3acd39981e91fee}{Evas\+\_\+\+Smart\+\_\+\+Interface}}
\begin{DoxyCompactList}\small\item\em A smart object\textquotesingle{}s {\bfseries{base}} interface definition. \end{DoxyCompactList}\item 
typedef struct \mbox{\hyperlink{struct__Evas__Smart__Cb__Description}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}} \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}}
\begin{DoxyCompactList}\small\item\em A smart object callback description, used to provide introspection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Smart__Group_ga2289a4031efadd67c9f13d4416d4111e}{evas\+\_\+smart\+\_\+free}} (\mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s)
\begin{DoxyCompactList}\small\item\em Free an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$ \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\+\_\+smart\+\_\+class\+\_\+new}} (const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$sc)
\begin{DoxyCompactList}\small\item\em Creates a new \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} from a given \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} struct. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$ \mbox{\hyperlink{group__Evas__Smart__Group_gaa97d44ab398038cff1715be6372ec34c}{evas\+\_\+smart\+\_\+class\+\_\+get}} (const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s)
\begin{DoxyCompactList}\small\item\em Get the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} handle of an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void $\ast$ \mbox{\hyperlink{group__Evas__Smart__Group_gaa777ac4f01db64305202ebb8211f041b}{evas\+\_\+smart\+\_\+data\+\_\+get}} (const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s)
\begin{DoxyCompactList}\small\item\em Get the data pointer set on an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}} $\ast$$\ast$ \mbox{\hyperlink{group__Evas__Smart__Group_ga1b5e498c9b4e88d6096fd87755b04425}{evas\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get}} (const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s, unsigned int $\ast$count)
\begin{DoxyCompactList}\small\item\em Get the smart callbacks known by this \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handle\textquotesingle{}s smart class hierarchy. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}} $\ast$ \mbox{\hyperlink{group__Evas__Smart__Group_gac87df4c01c90f01d6f122f609d356ec3}{evas\+\_\+smart\+\_\+callback\+\_\+description\+\_\+find}} (const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Find a callback description for the callback named {\itshape name}. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}{evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full}} (\mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$sc, const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$parent\+\_\+sc, unsigned int parent\+\_\+sc\+\_\+size)
\begin{DoxyCompactList}\small\item\em Sets one class to inherit from the other. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API int \mbox{\hyperlink{group__Evas__Smart__Group_ga767621c009af2c66ea9095a93cdec03d}{evas\+\_\+smart\+\_\+usage\+\_\+get}} (const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s)
\begin{DoxyCompactList}\small\item\em Get the number of uses of the smart instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions that deal with \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} structs, creating definition (classes) of objects that will have customized behavior for methods like \mbox{\hyperlink{group__Evas__Object__Group_ga335c8ee6eaeaac9710656af4f8b0db91}{evas\+\_\+object\+\_\+move()}}, \mbox{\hyperlink{group__Evas__Object__Group_gacad94595f83580c18908cb3b69b08d1a}{evas\+\_\+object\+\_\+resize()}}, \mbox{\hyperlink{group__Evas__Object__Group_ga66f8c8350b182fe880d0242a26de2632}{evas\+\_\+object\+\_\+clip\+\_\+set()}} and others. 

These objects will accept the generic methods defined in \mbox{\hyperlink{group__Evas__Object__Group}{Generic Object Functions}} and the extensions defined in \mbox{\hyperlink{group__Evas__Smart__Object__Group}{Smart Object Functions}}. There are a couple of existent smart objects in Evas itself (see Evas\+\_\+\+Object\+\_\+\+Box, \mbox{\hyperlink{group__Evas__Object__Table__Group}{Table Smart Object.}} and \mbox{\hyperlink{group__Evas__Smart__Object__Clipped}{Clipped Smart Object}}).

See also some \mbox{\hyperlink{Example_Evas_Smart_Objects}{examples}} of this group of functions. 

\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}\label{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_VERSION@{EVAS\_SMART\_CLASS\_VERSION}}
\index{EVAS\_SMART\_CLASS\_VERSION@{EVAS\_SMART\_CLASS\_VERSION}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_VERSION}{EVAS\_SMART\_CLASS\_VERSION}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION~4}



The version you have to put into the version field in the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} struct. 

Used to safeguard from binaries with old smart object intefaces running with newer ones. \mbox{\Hypertarget{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}\label{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_INIT\_NULL@{EVAS\_SMART\_CLASS\_INIT\_NULL}}
\index{EVAS\_SMART\_CLASS\_INIT\_NULL@{EVAS\_SMART\_CLASS\_INIT\_NULL}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_INIT\_NULL}{EVAS\_SMART\_CLASS\_INIT\_NULL}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL~\{NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}}



Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}\label{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_INIT\_VERSION@{EVAS\_SMART\_CLASS\_INIT\_VERSION}}
\index{EVAS\_SMART\_CLASS\_INIT\_VERSION@{EVAS\_SMART\_CLASS\_INIT\_VERSION}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_INIT\_VERSION}{EVAS\_SMART\_CLASS\_INIT\_VERSION}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION~\{NULL, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}}



Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set version. 

Similar to EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL, but will set version field to latest EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}\label{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION}}
\index{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION}{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION(\begin{DoxyParamCaption}\item[{}]{name }\end{DoxyParamCaption})~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL\}}



Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name and version. 

Similar to EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL, but will set version field to latest EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION and name to the specified value.

It will keep a reference to name field as a \char`\"{}const char $\ast$\char`\"{}, that is, name must be available while the structure is used (hint\+: static or global!) and will not be modified.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}\label{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT}}
\index{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT}{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT(\begin{DoxyParamCaption}\item[{}]{name,  }\item[{}]{parent }\end{DoxyParamCaption})~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, parent, NULL, NULL\}}



Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name, version and parent class. 

Similar to EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL, but will set version field to latest EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION, name to the specified value and parent class.

It will keep a reference to name field as a \char`\"{}const char $\ast$\char`\"{}, that is, name must be available while the structure is used (hint\+: static or global!) and will not be modified. Similarly, parent reference will be kept.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}\label{group__Evas__Smart__Group_ga5ebe1775142621cc3b75a3c57085ec83}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS}}
\index{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS@{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS}{EVAS\_SMART\_CLASS\_INIT\_NAME\_VERSION\_PARENT\_CALLBACKS}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT\+\_\+\+CALLBACKS(\begin{DoxyParamCaption}\item[{}]{name,  }\item[{}]{parent,  }\item[{}]{callbacks }\end{DoxyParamCaption})~\{name, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, parent, callbacks, NULL\}}



Initialize to zero a whole Evas\+\_\+\+Smart\+\_\+\+Class structure and set name, version, parent class and callbacks definition. 

Similar to EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL, but will set version field to latest EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION, name to the specified value, parent class and callbacks at this level.

It will keep a reference to name field as a \char`\"{}const char $\ast$\char`\"{}, that is, name must be available while the structure is used (hint\+: static or global!) and will not be modified. Similarly, parent and callbacks reference will be kept.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_ga223f5d420c1e22275cd6490cd77c85f0}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NULL}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaaa610a135c79167162405b56cffe8562}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_gaff2bbd5bb79e51ad8d31f98106caff77}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION}} 

\mbox{\hyperlink{group__Evas__Smart__Group_ga653b7bf36c2c87bd38d8126e11a4671d}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+INIT\+\_\+\+NAME\+\_\+\+VERSION\+\_\+\+PARENT}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}\label{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_SUBCLASS\_NEW@{EVAS\_SMART\_SUBCLASS\_NEW}}
\index{EVAS\_SMART\_SUBCLASS\_NEW@{EVAS\_SMART\_SUBCLASS\_NEW}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_SUBCLASS\_NEW}{EVAS\_SMART\_SUBCLASS\_NEW}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+NEW(\begin{DoxyParamCaption}\item[{}]{smart\+\_\+name,  }\item[{}]{prefix,  }\item[{}]{api\+\_\+type,  }\item[{}]{parent\+\_\+type,  }\item[{}]{parent\+\_\+func,  }\item[{}]{cb\+\_\+desc }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ parent\_type\ *\ prefix\#\#\_parent\_sc\ =\ NULL;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ prefix\#\#\_smart\_set\_user(api\_type\ *\ api);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ prefix\#\#\_smart\_set(api\_type\ *\ api)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *sc;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!(sc\ =\ (\mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *)api))\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \textcolor{keywordflow}{return};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!prefix\#\#\_parent\_sc)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ prefix\#\#\_parent\_sc\ =\ parent\_func();\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ evas\_smart\_class\_inherit(sc,\ prefix\#\#\_parent\_sc);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ prefix\#\#\_smart\_set\_user(api);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\_Smart}}\ *prefix\#\#\_smart\_class\_new(\textcolor{keywordtype}{void})\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keyword}{static}\ \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\_Smart}}\ *smart\ =\ NULL;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keyword}{static}\ api\_type\ api;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!smart)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *sc\ =\ (\mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *)\&api;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ memset(\&api,\ 0,\ \textcolor{keyword}{sizeof}(api\_type));\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>version\ =\ \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\_SMART\_CLASS\_VERSION}};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>\mbox{\hyperlink{struct__Evas__Smart__Class_a34b0476dfa714dff39812ed72636005f}{name}}\ =\ smart\_name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>\mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{callbacks}}\ =\ cb\_desc;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ prefix\#\#\_smart\_set(\&api);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ smart\ =\ \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\_smart\_class\_new}}(sc);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{return}\ smart;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}


Convenience macro to subclass a given Evas smart class. 


\begin{DoxyParams}{Parameters}
{\em smart\+\_\+name} & The name used for the smart class. e.\+g\+: {\ttfamily \char`\"{}\+Evas\+\_\+\+Object\+\_\+\+Box\char`\"{}}. \\
\hline
{\em prefix} & Prefix used for all variables and functions defined and referenced by this macro. \\
\hline
{\em api\+\_\+type} & Type of the structure used as API for the smart class. Either \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} or something derived from it. \\
\hline
{\em parent\+\_\+type} & Type of the parent class API. \\
\hline
{\em parent\+\_\+func} & Function that gets the parent class. e.\+g\+: \mbox{\hyperlink{group__Evas__Object__Box__Group_gaeafd91c71d3aeb8ff18e2bba2021c208}{evas\+\_\+object\+\_\+box\+\_\+smart\+\_\+class\+\_\+get()}}. \\
\hline
{\em cb\+\_\+desc} & Array of callback descriptions for this smart class.\\
\hline
\end{DoxyParams}
This macro saves some typing when writing a smart class derived from another one. In order for this to work, the user {\bfseries{must}} provide some functions adhering to the following guidelines\+:
\begin{DoxyItemize}
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+set\+\_\+user()\+: the {\bfseries{internal}} {\ttfamily \+\_\+smart\+\_\+set} function (defined by this macro) will call this one, provided by the user, after inheriting everything from the parent, which should {\bfseries{take care of setting the right member functions for the class}}, both overrides and extensions, if any.
\item If this new class should be subclassable as well, a {\bfseries{public}} {\ttfamily \+\_\+smart\+\_\+set()} function is desirable to fill in the class used as parent by the children. It\textquotesingle{}s up to the user to provide this interface, which will most likely call \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+set() to get the job done.
\end{DoxyItemize}

After the macro\textquotesingle{}s usage, the following will be defined for use\+:
\begin{DoxyItemize}
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+parent\+\_\+sc\+: A pointer to the {\bfseries{parent}} smart class. When calling parent functions from overloaded ones, use this global variable.
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+class\+\_\+new()\+: this function returns the \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} needed to create smart objects with this class, which should be passed to \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga6689aaee0f614404be7dc7c3d31a23e0}{evas\+\_\+object\+\_\+smart\+\_\+add()}}.
\end{DoxyItemize}

\begin{DoxyWarning}{Warning}
{\ttfamily smart\+\_\+name} has to be a pointer to a globally available string! The smart class created here will just have a pointer set to that, and all object instances will depend on it for smart class name lookup. 
\end{DoxyWarning}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{evas-smart-object_8c-example}{evas-\/smart-\/object.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga647c0365b6819db617e5e8dc33d592f6}\label{group__Evas__Smart__Group_ga647c0365b6819db617e5e8dc33d592f6}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_SUBCLASS\_IFACE\_NEW@{EVAS\_SMART\_SUBCLASS\_IFACE\_NEW}}
\index{EVAS\_SMART\_SUBCLASS\_IFACE\_NEW@{EVAS\_SMART\_SUBCLASS\_IFACE\_NEW}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_SUBCLASS\_IFACE\_NEW}{EVAS\_SMART\_SUBCLASS\_IFACE\_NEW}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+IFACE\+\_\+\+NEW(\begin{DoxyParamCaption}\item[{}]{smart\+\_\+name,  }\item[{}]{prefix,  }\item[{}]{api\+\_\+type,  }\item[{}]{parent\+\_\+type,  }\item[{}]{parent\+\_\+func,  }\item[{}]{cb\+\_\+desc,  }\item[{}]{ifaces }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keyword}{const}\ parent\_type\ *\ prefix\#\#\_parent\_sc\ =\ NULL;\ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ prefix\#\#\_smart\_set\_user(api\_type\ *\ api);\ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ prefix\#\#\_smart\_set(api\_type\ *\ api)\ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *sc;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!(sc\ =\ (\mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *)api))\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \textcolor{keywordflow}{return};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!prefix\#\#\_parent\_sc)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ prefix\#\#\_parent\_sc\ =\ parent\_func();\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ evas\_smart\_class\_inherit(sc,\ prefix\#\#\_parent\_sc);\ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ prefix\#\#\_smart\_set\_user(api);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \textcolor{keyword}{static}\ \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\_Smart}}\ *prefix\#\#\_smart\_class\_new(\textcolor{keywordtype}{void})\ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keyword}{static}\ \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\_Smart}}\ *smart\ =\ NULL;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keyword}{static}\ api\_type\ api;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ if\ (!smart)\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *sc\ =\ (\mbox{\hyperlink{struct__Evas__Smart__Class}{Evas\_Smart\_Class}}\ *)\&api;\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ memset(\&api,\ 0,\ \textcolor{keyword}{sizeof}(api\_type));\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>version\ =\ \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\_SMART\_CLASS\_VERSION}};\ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>\mbox{\hyperlink{struct__Evas__Smart__Class_a34b0476dfa714dff39812ed72636005f}{name}}\ =\ smart\_name;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>\mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{callbacks}}\ =\ cb\_desc;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ sc-\/>\mbox{\hyperlink{struct__Evas__Smart__Class_a26493bcab3adc8486eca1ff00a5e246f}{interfaces}}\ =\ ifaces;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ prefix\#\#\_smart\_set(\&api);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ smart\ =\ \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\_smart\_class\_new}}(sc);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \textcolor{keywordflow}{return}\ smart;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}}

\end{DoxyCode}
\begin{DoxySince}{Since}
1.\+7
\end{DoxySince}
Convenience macro to subclass a given Evas smart class. This is the same as \mbox{\hyperlink{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}{EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+NEW}}, but now {\bfseries{declaring smart interfaces}} besides the smart callbacks.


\begin{DoxyParams}{Parameters}
{\em smart\+\_\+name} & The name used for the smart class. e.\+g\+: {\ttfamily \char`\"{}\+Evas\+\_\+\+Object\+\_\+\+Box\char`\"{}}. \\
\hline
{\em prefix} & Prefix used for all variables and functions defined and referenced by this macro. \\
\hline
{\em api\+\_\+type} & Type of the structure used as API for the smart class. Either \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} or something derived from it. \\
\hline
{\em parent\+\_\+type} & Type of the parent class API. \\
\hline
{\em parent\+\_\+func} & Function that gets the parent class. e.\+g\+: \mbox{\hyperlink{group__Evas__Object__Box__Group_gaeafd91c71d3aeb8ff18e2bba2021c208}{evas\+\_\+object\+\_\+box\+\_\+smart\+\_\+class\+\_\+get()}}. \\
\hline
{\em cb\+\_\+desc} & Array of smart callback descriptions for this smart class. \\
\hline
{\em ifaces} & Array of Evas smart interafaces for this smart class.\\
\hline
\end{DoxyParams}
This macro saves some typing when writing a smart class derived from another one. In order for this to work, the user {\bfseries{must}} provide some functions adhering to the following guidelines\+:
\begin{DoxyItemize}
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+set\+\_\+user()\+: the {\bfseries{internal}} {\ttfamily \+\_\+smart\+\_\+set} function (defined by this macro) will call this one, provided by the user, after inheriting everything from the parent, which should {\bfseries{take care of setting the right member functions for the class}}, both overrides and extensions, if any.
\item If this new class should be subclassable as well, a {\bfseries{public}} {\ttfamily \+\_\+smart\+\_\+set()} function is desirable to fill in the class used as parent by the children. It\textquotesingle{}s up to the user to provide this interface, which will most likely call \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+set() to get the job done.
\end{DoxyItemize}

After the macro\textquotesingle{}s usage, the following will be defined for use\+:
\begin{DoxyItemize}
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+parent\+\_\+sc\+: A pointer to the {\bfseries{parent}} smart class. When calling parent functions from overloaded ones, use this global variable.
\item \texorpdfstring{$<$}{<}prefix\texorpdfstring{$>$}{>}\+\_\+smart\+\_\+class\+\_\+new()\+: this function returns the \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} needed to create smart objects with this class, which should be passed to \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga6689aaee0f614404be7dc7c3d31a23e0}{evas\+\_\+object\+\_\+smart\+\_\+add()}}.
\end{DoxyItemize}

\begin{DoxyWarning}{Warning}
{\ttfamily smart\+\_\+name} has to be a pointer to a globally available string! The smart class created here will just have a pointer set to that, and all object instances will depend on it for smart class name lookup. 
\end{DoxyWarning}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{evas-smart-interface_8c-example}{evas-\/smart-\/interface.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga4aa4b72aafa0391144fb0171aeff2ccd}\label{group__Evas__Smart__Group_ga4aa4b72aafa0391144fb0171aeff2ccd}} 
\index{Smart Functions@{Smart Functions}!EVAS\_SMART\_DATA\_ALLOC@{EVAS\_SMART\_DATA\_ALLOC}}
\index{EVAS\_SMART\_DATA\_ALLOC@{EVAS\_SMART\_DATA\_ALLOC}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{EVAS\_SMART\_DATA\_ALLOC}{EVAS\_SMART\_DATA\_ALLOC}}
{\footnotesize\ttfamily \#define EVAS\+\_\+\+SMART\+\_\+\+DATA\+\_\+\+ALLOC(\begin{DoxyParamCaption}\item[{}]{o,  }\item[{}]{priv\+\_\+type }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ priv\_type\ *\ priv;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ priv\ =\ \mbox{\hyperlink{group__Evas__Smart__Object__Group_gae2caa592c0aedca4671fb70ce2dcfe27}{evas\_object\_smart\_data\_get}}(o);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ if\ (!priv)\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ priv\ =\ (priv\_type\ *)calloc(1,\ \textcolor{keyword}{sizeof}(priv\_type));\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ if\ (!priv)\ \textcolor{keywordflow}{return};\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ evas\_object\_smart\_data\_set(o,\ priv);\ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}}

\end{DoxyCode}


Convenience macro to allocate smart data only if needed. 

When writing a subclassable smart object, the {\ttfamily }.add() function will need to check if the smart private data was already allocated by some child object or not. This macro makes it easier to do it.

\begin{DoxyNote}{Note}
This is an idiom used when one calls the parent\textquotesingle{}s {\ttfamily }.add() after the specialized code. Naturally, the parent\textquotesingle{}s base smart data has to be contemplated as the specialized one\textquotesingle{}s first member, for things to work.
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em o} & Evas object passed to the {\ttfamily }.add() function \\
\hline
{\em priv\+\_\+type} & The type of the data to allocate \\
\hline
\end{DoxyParams}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{evas-smart-interface_8c-example}{evas-\/smart-\/interface.\+c}}, and \mbox{\hyperlink{evas-smart-object_8c-example}{evas-\/smart-\/object.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga6888875280ccf11f026e09c890650c95}\label{group__Evas__Smart__Group_ga6888875280ccf11f026e09c890650c95}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_class\_inherit@{evas\_smart\_class\_inherit}}
\index{evas\_smart\_class\_inherit@{evas\_smart\_class\_inherit}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_class\_inherit}{evas\_smart\_class\_inherit}}
{\footnotesize\ttfamily \#define evas\+\_\+smart\+\_\+class\+\_\+inherit(\begin{DoxyParamCaption}\item[{}]{sc,  }\item[{}]{parent\+\_\+sc }\end{DoxyParamCaption})~\mbox{\hyperlink{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}{evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full}}(sc, (\mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$)parent\+\_\+sc, sizeof($\ast$parent\+\_\+sc))}



Easy to use version of \mbox{\hyperlink{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}{evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full()}}. 

This version will use sizeof(parent\+\_\+sc), copying everything.


\begin{DoxyParams}{Parameters}
{\em sc} & child class, will have methods copied from {\itshape parent\+\_\+sc} \\
\hline
{\em parent\+\_\+sc} & parent class, will provide contents to be copied. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
1 on success, 0 on failure. 
\end{DoxyReturn}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}\label{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}} 
\index{Smart Functions@{Smart Functions}!Evas\_Smart\_Class@{Evas\_Smart\_Class}}
\index{Evas\_Smart\_Class@{Evas\_Smart\_Class}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{Evas\_Smart\_Class}{Evas\_Smart\_Class}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}}}



A smart object\textquotesingle{}s {\bfseries{base}} class definition. 

\mbox{\Hypertarget{group__Evas__Smart__Group_gaef9b6443e1fdb6ffd3acd39981e91fee}\label{group__Evas__Smart__Group_gaef9b6443e1fdb6ffd3acd39981e91fee}} 
\index{Smart Functions@{Smart Functions}!Evas\_Smart\_Interface@{Evas\_Smart\_Interface}}
\index{Evas\_Smart\_Interface@{Evas\_Smart\_Interface}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{Evas\_Smart\_Interface}{Evas\_Smart\_Interface}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Smart__Group_gaef9b6443e1fdb6ffd3acd39981e91fee}{Evas\+\_\+\+Smart\+\_\+\+Interface}}}



A smart object\textquotesingle{}s {\bfseries{base}} interface definition. 

An Evas interface is exactly like the OO-\/concept\+: a \textquotesingle{}contract\textquotesingle{} or API a given object is declared to support. A smart object may have more than one interface, thus extending the behavior it gets from sub-\/classing.

\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}\label{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}} 
\index{Smart Functions@{Smart Functions}!Evas\_Smart\_Cb\_Description@{Evas\_Smart\_Cb\_Description}}
\index{Evas\_Smart\_Cb\_Description@{Evas\_Smart\_Cb\_Description}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{Evas\_Smart\_Cb\_Description}{Evas\_Smart\_Cb\_Description}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}}}



A smart object callback description, used to provide introspection. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga2289a4031efadd67c9f13d4416d4111e}\label{group__Evas__Smart__Group_ga2289a4031efadd67c9f13d4416d4111e}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_free@{evas\_smart\_free}}
\index{evas\_smart\_free@{evas\_smart\_free}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_free()}{evas\_smart\_free()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+smart\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s }\end{DoxyParamCaption})}



Free an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. 


\begin{DoxyParams}{Parameters}
{\em s} & the \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct to free\\
\hline
\end{DoxyParams}
\begin{DoxyWarning}{Warning}
If this smart handle was created using \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\+\_\+smart\+\_\+class\+\_\+new()}}, the associated \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} will not be freed.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
If you\textquotesingle{}re using the \mbox{\hyperlink{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}{EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+NEW}} schema to create your smart object, note that an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handle will be shared amongst all instances of the given smart class, through a static variable. Evas will internally count references on \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handles and free them when they are not referenced anymore. Thus, this function is of no use for Evas users, most probably. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}\label{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_class\_new@{evas\_smart\_class\_new}}
\index{evas\_smart\_class\_new@{evas\_smart\_class\_new}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_class\_new()}{evas\_smart\_class\_new()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$ evas\+\_\+smart\+\_\+class\+\_\+new (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$}]{sc }\end{DoxyParamCaption})}



Creates a new \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} from a given \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} struct. 


\begin{DoxyParams}{Parameters}
{\em sc} & the smart class definition \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} pointer
\end{DoxyReturn}
\mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handles are necessary to create new {\bfseries{instances}} of smart objects belonging to the class described by {\ttfamily sc}. That handle will contain, besides the smart class interface definition, all its smart callbacks infrastructure set, too.

\begin{DoxyNote}{Note}
If you are willing to subclass a given smart class to construct yours, consider using the \mbox{\hyperlink{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}{EVAS\+\_\+\+SMART\+\_\+\+SUBCLASS\+\_\+\+NEW}} macro, which will make use of this function automatically for you. 
\end{DoxyNote}


References \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}.

\mbox{\Hypertarget{group__Evas__Smart__Group_gaa97d44ab398038cff1715be6372ec34c}\label{group__Evas__Smart__Group_gaa97d44ab398038cff1715be6372ec34c}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_class\_get@{evas\_smart\_class\_get}}
\index{evas\_smart\_class\_get@{evas\_smart\_class\_get}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_class\_get()}{evas\_smart\_class\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$ evas\+\_\+smart\+\_\+class\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s }\end{DoxyParamCaption})}



Get the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} handle of an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. 


\begin{DoxyParams}{Parameters}
{\em s} & a valid \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} pointer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} in it 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Evas__Smart__Group_gaa777ac4f01db64305202ebb8211f041b}\label{group__Evas__Smart__Group_gaa777ac4f01db64305202ebb8211f041b}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_data\_get@{evas\_smart\_data\_get}}
\index{evas\_smart\_data\_get@{evas\_smart\_data\_get}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_data\_get()}{evas\_smart\_data\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void $\ast$ evas\+\_\+smart\+\_\+data\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s }\end{DoxyParamCaption})}



Get the data pointer set on an \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} struct. 


\begin{DoxyParams}{Parameters}
{\em s} & a valid \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handle\\
\hline
\end{DoxyParams}
This data pointer is set as the data field in the \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} passed in to \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\+\_\+smart\+\_\+class\+\_\+new()}}. \mbox{\Hypertarget{group__Evas__Smart__Group_ga1b5e498c9b4e88d6096fd87755b04425}\label{group__Evas__Smart__Group_ga1b5e498c9b4e88d6096fd87755b04425}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_callbacks\_descriptions\_get@{evas\_smart\_callbacks\_descriptions\_get}}
\index{evas\_smart\_callbacks\_descriptions\_get@{evas\_smart\_callbacks\_descriptions\_get}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_callbacks\_descriptions\_get()}{evas\_smart\_callbacks\_descriptions\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}} $\ast$$\ast$ evas\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s,  }\item[{unsigned int $\ast$}]{count }\end{DoxyParamCaption})}



Get the smart callbacks known by this \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handle\textquotesingle{}s smart class hierarchy. 


\begin{DoxyParams}[1]{Parameters}
 & {\em s} & A valid \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} handle. \\
\hline
\mbox{\texttt{ out}}  & {\em count} & Returns the number of elements in the returned array.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The array with callback descriptions known by this smart class, with its size returned in {\itshape count} parameter. It should not be modified in any way. If no callbacks are known, {\ttfamily NULL} is returned. The array is sorted by event names and elements refer to the original values given to \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\+\_\+smart\+\_\+class\+\_\+new()}}\textquotesingle{}s \mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{Evas\+\_\+\+Smart\+\_\+\+Class\+::callbacks}} (pointer to them).
\end{DoxyReturn}
This is likely different from \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga6f2cc793ce222baa338d1f976ad15e67}{evas\+\_\+object\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get()}} as it will contain the callbacks of {\bfseries{all}} this class hierarchy sorted, while the direct smart class member refers only to that specific class and should not include parent\textquotesingle{}s.

If no callbacks are known, this function returns {\ttfamily NULL}.

The array elements and thus their contents will be {\bfseries{references}} to original values given to \mbox{\hyperlink{group__Evas__Smart__Group_ga87c3b0e2d90db17f17dd06f56d7571a7}{evas\+\_\+smart\+\_\+class\+\_\+new()}} as \mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{Evas\+\_\+\+Smart\+\_\+\+Class\+::callbacks}}.

The array is sorted by \mbox{\hyperlink{struct__Evas__Smart__Cb__Description_ab377859f4cfcf1c2dd3c149a76b70b53}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description\+::name}}. The last array element is a {\ttfamily NULL} pointer and is not accounted for in {\itshape count}. Loop iterations can check any of these size indicators.

\begin{DoxyNote}{Note}
objects may provide per-\/instance callbacks, use \mbox{\hyperlink{group__Evas__Smart__Object__Group_ga6f2cc793ce222baa338d1f976ad15e67}{evas\+\_\+object\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get()}} to get those as well. 
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Object__Group_ga6f2cc793ce222baa338d1f976ad15e67}{evas\+\_\+object\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_gac87df4c01c90f01d6f122f609d356ec3}\label{group__Evas__Smart__Group_gac87df4c01c90f01d6f122f609d356ec3}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_callback\_description\_find@{evas\_smart\_callback\_description\_find}}
\index{evas\_smart\_callback\_description\_find@{evas\_smart\_callback\_description\_find}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_callback\_description\_find()}{evas\_smart\_callback\_description\_find()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API const \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}} $\ast$ evas\+\_\+smart\+\_\+callback\+\_\+description\+\_\+find (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



Find a callback description for the callback named {\itshape name}. 


\begin{DoxyParams}{Parameters}
{\em s} & The \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} where to search for class registered smart event callbacks. \\
\hline
{\em name} & Name of the desired callback, which must {\bfseries{not}} be {\ttfamily NULL}. The search has a special case for {\itshape name} being the same pointer as registered with \mbox{\hyperlink{group__Evas__Smart__Group_ga0ad0e7d482d7660e756e275d355e3634}{Evas\+\_\+\+Smart\+\_\+\+Cb\+\_\+\+Description}}. One can use it to avoid excessive use of strcmp(). \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A reference to the description if found, or {\ttfamily NULL}, otherwise
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group_ga1b5e498c9b4e88d6096fd87755b04425}{evas\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}\label{group__Evas__Smart__Group_gaef540ec61cd8924181107a22f37f871a}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_class\_inherit\_full@{evas\_smart\_class\_inherit\_full}}
\index{evas\_smart\_class\_inherit\_full@{evas\_smart\_class\_inherit\_full}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_class\_inherit\_full()}{evas\_smart\_class\_inherit\_full()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} evas\+\_\+smart\+\_\+class\+\_\+inherit\+\_\+full (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$}]{sc,  }\item[{const \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}} $\ast$}]{parent\+\_\+sc,  }\item[{unsigned int}]{parent\+\_\+sc\+\_\+size }\end{DoxyParamCaption})}



Sets one class to inherit from the other. 

Copy all function pointers, set {\ttfamily parent} to {\itshape parent\+\_\+sc} and copy everything after sizeof(\+Evas\+\_\+\+Smart\+\_\+\+Class) present in {\itshape parent\+\_\+sc}, using {\itshape parent\+\_\+sc\+\_\+size} as reference.

This is recommended instead of a single memcpy() since it will take care to not modify {\itshape sc} name, version, callbacks and possible other members.


\begin{DoxyParams}{Parameters}
{\em sc} & child class. \\
\hline
{\em parent\+\_\+sc} & parent class, will provide attributes. \\
\hline
{\em parent\+\_\+sc\+\_\+size} & size of parent\+\_\+sc structure, child should be at least this size. Everything after {\ttfamily Evas\+\_\+\+Smart\+\_\+\+Class} size is copied using regular memcpy(). \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{group__Evas__Smart__Group_ga1ca1514302a47188c921b232d6ce42db}{EVAS\+\_\+\+SMART\+\_\+\+CLASS\+\_\+\+VERSION}}, and \mbox{\hyperlink{struct__Evas__Smart__Class_a4b009bf8125551b4bec8bc114756fc3e}{\+\_\+\+Evas\+\_\+\+Smart\+\_\+\+Class\+::parent}}.

\mbox{\Hypertarget{group__Evas__Smart__Group_ga767621c009af2c66ea9095a93cdec03d}\label{group__Evas__Smart__Group_ga767621c009af2c66ea9095a93cdec03d}} 
\index{Smart Functions@{Smart Functions}!evas\_smart\_usage\_get@{evas\_smart\_usage\_get}}
\index{evas\_smart\_usage\_get@{evas\_smart\_usage\_get}!Smart Functions@{Smart Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_usage\_get()}{evas\_smart\_usage\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API int evas\+\_\+smart\+\_\+usage\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s }\end{DoxyParamCaption})}



Get the number of uses of the smart instance. 


\begin{DoxyParams}{Parameters}
{\em s} & The Evas\+\_\+\+Smart to get the usage count of \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of uses of the smart instance
\end{DoxyReturn}
This function tells you how many more uses of the smart instance are in existence. This should be used before freeing/clearing any of the Evas\+\_\+\+Smart\+\_\+\+Class that was used to create the smart instance. The smart instance will refer to data in the Evas\+\_\+\+Smart\+\_\+\+Class used to create it and thus you cannot remove the original data until all users of it are gone. When the usage count goes to 0, you can \mbox{\hyperlink{group__Evas__Smart__Group_ga2289a4031efadd67c9f13d4416d4111e}{evas\+\_\+smart\+\_\+free()}} the smart instance {\ttfamily s} and remove from memory any of the Evas\+\_\+\+Smart\+\_\+\+Class that was used to create the smart instance, if you desire. Removing it from memory without doing this will cause problems (crashes, undefined behavior, etc.), so either never remove the original Evas\+\_\+\+Smart\+\_\+\+Class data from memory (have it be a constant structure and data), or use this API call and be very careful. 