\hypertarget{group__Evas__Smart__Object__Group}{}\doxysection{Smart Object Functions}
\label{group__Evas__Smart__Object__Group}\index{Smart Object Functions@{Smart Object Functions}}
\doxysubsection*{Modules}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Evas__Smart__Object__Clipped}{Clipped Smart Object}}
\begin{DoxyCompactList}\small\item\em Clipped smart object is a base to construct other smart objects based on the concept of having an internal clipper that is applied to all children objects. This clipper will control the visibility, clipping and color of sibling objects (remember that the clipping is recursive, and clipper color modulates the color of its clippees). By default, this base will also move children relative to the parent, and delete them when parent is deleted. In other words, it is the base for simple object grouping. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Box}{Box Smart Object}}
\begin{DoxyCompactList}\small\item\em A box is a convenience smart object that packs children inside it in {\bfseries{sequence}}, using a layouting function specified by the user. There are a couple of pre-\/made layouting functions {\bfseries{built-\/in in Evas}}, all of them using children size hints to define their size and alignment inside their cell space. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Table}{Table Smart Object.}}
\begin{DoxyCompactList}\small\item\em Convenience smart object that packs children using a tabular layout using children size hints to define their size and alignment inside their cell space. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Evas__Object__Grid}{Grid Smart Object.}}
\begin{DoxyCompactList}\small\item\em Convenience smart object that packs children under a regular grid layout, using their virtual grid location and size to determine children\textquotesingle{}s positions inside the grid object\textquotesingle{}s area. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{group__Evas__Smart__Object__Group_gab2aa4ab3a40904f9bc392f03bfc5d59d}{evas\+\_\+smart\+\_\+legacy\+\_\+type\+\_\+register}} (const char $\ast$type, const \mbox{\hyperlink{group__Eo_ga4f7483d7c5a34a3b81d8f8467fdd566a}{Efl\+\_\+\+Class}} $\ast$klass)
\begin{DoxyCompactList}\small\item\em Registers an object type and its associated class. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$ \mbox{\hyperlink{group__Evas__Canvas_gad80de73a33446f902d4b39141a8d0a05}{evas\+\_\+object\+\_\+smart\+\_\+add}} (\mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} $\ast$e, \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$s)
\begin{DoxyCompactList}\small\item\em Instantiates a new smart object described by {\ttfamily s}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evas__Canvas_ga6845c17effe796430cb4fc5f2cfccef0}{evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$smart\+\_\+obj)
\begin{DoxyCompactList}\small\item\em Set an Evas object as a member of a given smart object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evas__Canvas_ga12034359ab780a3a0e8b20b83475ed15}{evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+del}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Removes a member object from a given smart object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$event, \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Add (register) a callback function to the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evas__Canvas_gac0332a965f191376d30786a624bfad41}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+priority\+\_\+add}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$event, \mbox{\hyperlink{Evas__Common_8h_a569c486e7bbb47ad28baaec79eb1ff3b}{Evas\+\_\+\+Callback\+\_\+\+Priority}} priority, \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Add (register) a callback function to the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Evas__Canvas_gaa79948c7d1bee9a75baa01e72dc4ef63}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$event, \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}} func)
\begin{DoxyCompactList}\small\item\em Delete (unregister) a callback function from the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Evas__Canvas_ga2163df56f3c1759f83b2996572e94fef}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del\+\_\+full}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$event, \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}} func, const void $\ast$data)
\begin{DoxyCompactList}\small\item\em Delete (unregister) a callback function from the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evas__Canvas_gaa81bbe0af70df6c90b8fc781c59237bc}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+call}} (\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$obj, const char $\ast$event, void $\ast$event\+\_\+info)
\begin{DoxyCompactList}\small\item\em Call a given smart callback on the smart object {\ttfamily obj}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Functions dealing with Evas smart objects (instances).

Smart objects are groupings of primitive Evas objects that behave as a cohesive group. For instance, a file manager icon may be a smart object composed of an image object, a text label and two rectangles that appear behind the image and text when the icon is selected. As a smart object, the normal Evas object A\+PI could be used on the icon object.

Besides that, generally smart objects implement a {\bfseries{specific A\+PI}}, so that users interact with its own custom features. The A\+PI takes form of explicit exported functions one may call and {\bfseries{smart callbacks}}.\hypertarget{group__Evas__Smart__Object__Group_Evas_Smart_Object_Group_Callbacks}{}\doxysubsection{Smart events and callbacks}\label{group__Evas__Smart__Object__Group_Evas_Smart_Object_Group_Callbacks}
Smart objects can elect events (smart events, from now on) occurring inside of them to be reported back to their users via callback functions (smart callbacks). This way, you can extend Evas\textquotesingle{} own object events. They are defined by an {\bfseries{event string}} that identifies them uniquely. There\textquotesingle{}s also a function prototype definition for the callback functions\+: \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}}.

When defining an \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}}, smart object implementors are strongly encouraged to properly set the \mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{Evas\+\_\+\+Smart\+\_\+\+Class\+::callbacks}} callbacks description array, so that the users of the smart object can have introspection on its events A\+PI {\bfseries{at run time}}.

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

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Group}{Smart Functions}} for class definitions. 
\end{DoxySeeAlso}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Evas__Smart__Object__Group_gab2aa4ab3a40904f9bc392f03bfc5d59d}\label{group__Evas__Smart__Object__Group_gab2aa4ab3a40904f9bc392f03bfc5d59d}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_smart\_legacy\_type\_register@{evas\_smart\_legacy\_type\_register}}
\index{evas\_smart\_legacy\_type\_register@{evas\_smart\_legacy\_type\_register}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_smart\_legacy\_type\_register()}{evas\_smart\_legacy\_type\_register()}}
{\footnotesize\ttfamily void evas\+\_\+smart\+\_\+legacy\+\_\+type\+\_\+register (\begin{DoxyParamCaption}\item[{const char $\ast$}]{type,  }\item[{const \mbox{\hyperlink{group__Eo_ga4f7483d7c5a34a3b81d8f8467fdd566a}{Efl\+\_\+\+Class}} $\ast$}]{klass }\end{DoxyParamCaption})}



Registers an object type and its associated class. 

L\+E\+G\+A\+CY M\+E\+C\+H\+A\+N\+I\+SM S\+U\+P\+P\+O\+RT.

This function is invoked in the class constructor of smart classes. It will add the type and the class into a hash table that will then be used to check the type of an object. This function has been implemented to support legacy mechanism that checks objects types by name. U\+SE IT O\+N\+LY F\+OR L\+E\+G\+A\+CY S\+U\+P\+P\+O\+RT. Otherwise, it is H\+I\+G\+H\+LY recommended to use efl\+\_\+isa.


\begin{DoxyParams}{Parameters}
{\em type} & The type (name string) to add. \\
\hline
{\em klass} & The class to associate to the type.\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Efl__Class_ga5924dc6e04303305688de466cf13bae8}{efl\+\_\+isa}} 
\end{DoxySeeAlso}


References eina\+\_\+hash\+\_\+set().

\mbox{\Hypertarget{group__Evas__Canvas_gad80de73a33446f902d4b39141a8d0a05}\label{group__Evas__Canvas_gad80de73a33446f902d4b39141a8d0a05}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_add@{evas\_object\_smart\_add}}
\index{evas\_object\_smart\_add@{evas\_object\_smart\_add}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_add()}{evas\_object\_smart\_add()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}}$\ast$ evas\+\_\+object\+\_\+smart\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Canvas_ga5ff87cc4ce6bc43e3b640a6d37f73043}{Evas}} $\ast$}]{e,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} $\ast$}]{s }\end{DoxyParamCaption})}



Instantiates a new smart object described by {\ttfamily s}. 


\begin{DoxyParams}{Parameters}
{\em e} & the canvas on which to add the object \\
\hline
{\em s} & the \mbox{\hyperlink{Evas__Common_8h_a7cdfd1afece1cad64c413eb9a778ddbb}{Evas\+\_\+\+Smart}} describing the smart object \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a new \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} handle
\end{DoxyReturn}
This is the function one should use when defining the public function {\bfseries{adding}} an instance of the new smart object to a given canvas. It will take care of setting all of its internals to work as they should, if the user set things properly, as seem on the \mbox{\hyperlink{group__Evas__Smart__Group_ga58dc94af6f064b39b2bf0155908fbe52}{E\+V\+A\+S\+\_\+\+S\+M\+A\+R\+T\+\_\+\+S\+U\+B\+C\+L\+A\+S\+S\+\_\+\+N\+EW}}, for example. 

References efl\+\_\+add, efl\+\_\+isa(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+AL, and E\+V\+A\+S\+\_\+\+C\+A\+N\+V\+A\+S\+\_\+\+C\+L\+A\+SS.

\mbox{\Hypertarget{group__Evas__Canvas_ga6845c17effe796430cb4fc5f2cfccef0}\label{group__Evas__Canvas_ga6845c17effe796430cb4fc5f2cfccef0}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_member\_add@{evas\_object\_smart\_member\_add}}
\index{evas\_object\_smart\_member\_add@{evas\_object\_smart\_member\_add}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_member\_add()}{evas\_object\_smart\_member\_add()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{smart\+\_\+obj }\end{DoxyParamCaption})}



Set an Evas object as a member of a given smart object. 


\begin{DoxyParams}{Parameters}
{\em obj} & The member object \\
\hline
{\em smart\+\_\+obj} & The smart object\\
\hline
\end{DoxyParams}
Members will automatically be stacked and layered together with the smart object. The various stacking functions will operate on members relative to the other members instead of the entire canvas, since they now live on an exclusive layer (see evas\+\_\+object\+\_\+stack\+\_\+above(), for more details).

Any {\ttfamily smart\+\_\+obj} object\textquotesingle{}s specific implementation of the {\ttfamily member\+\_\+add()} smart function will take place too, naturally.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Canvas_ga12034359ab780a3a0e8b20b83475ed15}{evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+del()}} 

\mbox{\hyperlink{group__Evas__Canvas_ga97233734c49c93a258315bff9dfc85f5}{evas\+\_\+object\+\_\+smart\+\_\+members\+\_\+get()}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{group__Evas__Canvas_ga12034359ab780a3a0e8b20b83475ed15}\label{group__Evas__Canvas_ga12034359ab780a3a0e8b20b83475ed15}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_member\_del@{evas\_object\_smart\_member\_del}}
\index{evas\_object\_smart\_member\_del@{evas\_object\_smart\_member\_del}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_member\_del()}{evas\_object\_smart\_member\_del()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj }\end{DoxyParamCaption})}



Removes a member object from a given smart object. 


\begin{DoxyParams}{Parameters}
{\em obj} & the member object\\
\hline
\end{DoxyParams}
This removes a member object from a smart object, if it was added to any. The object will still be on the canvas, but no longer associated with whichever smart object it was associated with.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Canvas_ga6845c17effe796430cb4fc5f2cfccef0}{evas\+\_\+object\+\_\+smart\+\_\+member\+\_\+add()}} for more details 

\mbox{\hyperlink{group__Evas__Canvas_ga97233734c49c93a258315bff9dfc85f5}{evas\+\_\+object\+\_\+smart\+\_\+members\+\_\+get()}} 
\end{DoxySeeAlso}


References efl\+\_\+data\+\_\+scope\+\_\+safe\+\_\+get().

\mbox{\Hypertarget{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}\label{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_callback\_add@{evas\_object\_smart\_callback\_add}}
\index{evas\_object\_smart\_callback\_add@{evas\_object\_smart\_callback\_add}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_callback\_add()}{evas\_object\_smart\_callback\_add()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{event,  }\item[{\mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Add (register) a callback function to the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. 


\begin{DoxyParams}{Parameters}
{\em obj} & a smart object \\
\hline
{\em event} & the event\textquotesingle{}s name string \\
\hline
{\em func} & the callback function \\
\hline
{\em data} & user data to be passed to the callback function\\
\hline
\end{DoxyParams}
Smart callbacks look very similar to Evas callbacks, but are implemented as smart object\textquotesingle{}s custom ones.

This function adds a function callback to an smart object when the event named {\ttfamily event} occurs in it. The function is {\ttfamily func}.

In the event of a memory allocation error during addition of the callback to the object, \mbox{\hyperlink{group__Evas__Main__Group_gacfae4f589c777003f58d51e502c52835}{evas\+\_\+alloc\+\_\+error()}} should be used to determine the nature of the error, if any, and the program should sensibly try and recover.

A smart callback function must have the \mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}} prototype definition. The first parameter ({\ttfamily data}) in this definition will have the same value passed to \mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add()}} as the {\ttfamily data} parameter, at runtime. The second parameter {\ttfamily obj} is a handle to the object on which the event occurred. The third parameter, {\ttfamily event\+\_\+info}, is a pointer to data which is totally dependent on the smart object\textquotesingle{}s implementation and semantic for the given event.

There is an infrastructure for introspection on smart objects\textquotesingle{} events (see \mbox{\hyperlink{group__Evas__Smart__Group_ga21bfd8ca489ecc08a0c3c9f66764f06d}{evas\+\_\+smart\+\_\+callbacks\+\_\+descriptions\+\_\+get()}}), but no internal smart objects on Evas implement them yet.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Smart__Object__Group_Evas_Smart_Object_Group_Callbacks}{Smart events and callbacks}} for more details.

\mbox{\hyperlink{group__Evas__Canvas_gaa79948c7d1bee9a75baa01e72dc4ef63}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del()}} 
\end{DoxySeeAlso}


References E\+V\+A\+S\+\_\+\+C\+A\+L\+L\+B\+A\+C\+K\+\_\+\+P\+R\+I\+O\+R\+I\+T\+Y\+\_\+\+D\+E\+F\+A\+U\+LT, and evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+priority\+\_\+add().

\mbox{\Hypertarget{group__Evas__Canvas_gac0332a965f191376d30786a624bfad41}\label{group__Evas__Canvas_gac0332a965f191376d30786a624bfad41}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_callback\_priority\_add@{evas\_object\_smart\_callback\_priority\_add}}
\index{evas\_object\_smart\_callback\_priority\_add@{evas\_object\_smart\_callback\_priority\_add}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_callback\_priority\_add()}{evas\_object\_smart\_callback\_priority\_add()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+priority\+\_\+add (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{event,  }\item[{\mbox{\hyperlink{Evas__Common_8h_a569c486e7bbb47ad28baaec79eb1ff3b}{Evas\+\_\+\+Callback\+\_\+\+Priority}}}]{priority,  }\item[{\mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Add (register) a callback function to the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. 

Except for the priority field, it\textquotesingle{}s exactly the same as \mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add}}


\begin{DoxyParams}{Parameters}
{\em obj} & a smart object \\
\hline
{\em event} & the event\textquotesingle{}s name string \\
\hline
{\em priority} & The priority of the callback, lower values called first. \\
\hline
{\em func} & the callback function \\
\hline
{\em data} & user data to be passed to the callback function\\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References efl\+\_\+event\+\_\+callback\+\_\+priority\+\_\+add(), eina\+\_\+inlist\+\_\+append(), and E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+G\+ET.



Referenced by evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add().

\mbox{\Hypertarget{group__Evas__Canvas_gaa79948c7d1bee9a75baa01e72dc4ef63}\label{group__Evas__Canvas_gaa79948c7d1bee9a75baa01e72dc4ef63}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_callback\_del@{evas\_object\_smart\_callback\_del}}
\index{evas\_object\_smart\_callback\_del@{evas\_object\_smart\_callback\_del}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_callback\_del()}{evas\_object\_smart\_callback\_del()}}
{\footnotesize\ttfamily void$\ast$ evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{event,  }\item[{\mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}}}]{func }\end{DoxyParamCaption})}



Delete (unregister) a callback function from the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. 


\begin{DoxyParams}{Parameters}
{\em obj} & a smart object \\
\hline
{\em event} & the event\textquotesingle{}s name string \\
\hline
{\em func} & the callback function \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the data pointer
\end{DoxyReturn}
This function removes {\bfseries{the first}} added smart callback on the object {\ttfamily obj} matching the event name {\ttfamily event} and the registered function pointer {\ttfamily func}. If the removal is successful it will also return the data pointer that was passed to \mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add()}} (that will be the same as the parameter) when the callback(s) was(were) added to the canvas. If not successful {\ttfamily N\+U\+LL} will be returned.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add()}} for more details. 
\end{DoxySeeAlso}


References efl\+\_\+event\+\_\+callback\+\_\+del(), E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+G\+ET, and eina\+\_\+inlist\+\_\+remove().

\mbox{\Hypertarget{group__Evas__Canvas_ga2163df56f3c1759f83b2996572e94fef}\label{group__Evas__Canvas_ga2163df56f3c1759f83b2996572e94fef}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_callback\_del\_full@{evas\_object\_smart\_callback\_del\_full}}
\index{evas\_object\_smart\_callback\_del\_full@{evas\_object\_smart\_callback\_del\_full}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_callback\_del\_full()}{evas\_object\_smart\_callback\_del\_full()}}
{\footnotesize\ttfamily void$\ast$ evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del\+\_\+full (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{event,  }\item[{\mbox{\hyperlink{Evas__Common_8h_afbde245aa36db11d8280b266235c25b2}{Evas\+\_\+\+Smart\+\_\+\+Cb}}}]{func,  }\item[{const void $\ast$}]{data }\end{DoxyParamCaption})}



Delete (unregister) a callback function from the smart event specified by {\ttfamily event} on the smart object {\ttfamily obj}. 


\begin{DoxyParams}{Parameters}
{\em obj} & a smart object \\
\hline
{\em event} & the event\textquotesingle{}s name string \\
\hline
{\em func} & the callback function \\
\hline
{\em data} & the data pointer that was passed to the callback \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the data pointer
\end{DoxyReturn}
This function removes {\bfseries{the first}} added smart callback on the object {\ttfamily obj} matching the event name {\ttfamily event}, the registered function pointer {\ttfamily func} and the callback data pointer {\ttfamily data}. If the removal is successful it will also return the data pointer that was passed to \mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add()}} (that will be the same as the parameter) when the callback(s) was(were) added to the canvas. If not successful {\ttfamily N\+U\+LL} will be returned. A common use would be to remove an exact match of a callback

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evas__Canvas_ga18a8b179f94d21b2b09e19db11741061}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+add()}} for more details. 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2
\end{DoxySince}
\begin{DoxyNote}{Note}
To delete all smart event callbacks which match {\ttfamily type} and {\ttfamily func}, use \mbox{\hyperlink{group__Evas__Canvas_gaa79948c7d1bee9a75baa01e72dc4ef63}{evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+del()}}. 
\end{DoxyNote}


References efl\+\_\+event\+\_\+callback\+\_\+del(), E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+F\+O\+R\+E\+A\+CH, E\+I\+N\+A\+\_\+\+I\+N\+L\+I\+S\+T\+\_\+\+G\+ET, and eina\+\_\+inlist\+\_\+remove().

\mbox{\Hypertarget{group__Evas__Canvas_gaa81bbe0af70df6c90b8fc781c59237bc}\label{group__Evas__Canvas_gaa81bbe0af70df6c90b8fc781c59237bc}} 
\index{Smart Object Functions@{Smart Object Functions}!evas\_object\_smart\_callback\_call@{evas\_object\_smart\_callback\_call}}
\index{evas\_object\_smart\_callback\_call@{evas\_object\_smart\_callback\_call}!Smart Object Functions@{Smart Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_smart\_callback\_call()}{evas\_object\_smart\_callback\_call()}}
{\footnotesize\ttfamily void evas\+\_\+object\+\_\+smart\+\_\+callback\+\_\+call (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\+\_\+\+Object}} $\ast$}]{obj,  }\item[{const char $\ast$}]{event,  }\item[{void $\ast$}]{event\+\_\+info }\end{DoxyParamCaption})}



Call a given smart callback on the smart object {\ttfamily obj}. 


\begin{DoxyParams}{Parameters}
{\em obj} & the smart object \\
\hline
{\em event} & the event\textquotesingle{}s name string \\
\hline
{\em event\+\_\+info} & pointer to an event specific struct or information to pass to the callback functions registered on this smart event\\
\hline
\end{DoxyParams}
This should be called {\bfseries{internally}}, from the smart object\textquotesingle{}s own code, when some specific event has occurred and the implementor wants is to pertain to the object\textquotesingle{}s events A\+PI (see \mbox{\hyperlink{group__Evas__Smart__Object__Group_Evas_Smart_Object_Group_Callbacks}{Smart events and callbacks}}). The documentation for the smart object should include a list of possible events and what type of {\ttfamily event\+\_\+info} to expect for each of them. Also, when defining an \mbox{\hyperlink{group__Evas__Smart__Group_gaea15f67e901bf5380cdb67dc1bb43391}{Evas\+\_\+\+Smart\+\_\+\+Class}}, smart object implementors are strongly encouraged to properly set the \mbox{\hyperlink{struct__Evas__Smart__Class_af7074494030024c3d0e502bca7b19067}{Evas\+\_\+\+Smart\+\_\+\+Class\+::callbacks}} callbacks description array, so that the users of the smart object can have introspection on its events A\+PI {\bfseries{at run time}}. 

References efl\+\_\+event\+\_\+callback\+\_\+legacy\+\_\+call().



Referenced by emotion\+\_\+object\+\_\+last\+\_\+position\+\_\+load(), and emotion\+\_\+object\+\_\+last\+\_\+position\+\_\+save().

