\hypertarget{group__Evas__Object__Textgrid__Group}{}\doxysection{Textgrid Object Functions}
\label{group__Evas__Object__Textgrid__Group}\index{Textgrid Object Functions@{Textgrid Object Functions}}


Textgrid objects manage chunks of text as a 2D grid of cells, each of which contains a single unicode character with color and style formatting information.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Evas__Textgrid__Cell}{\+\_\+\+Evas\+\_\+\+Textgrid\+\_\+\+Cell}}
\begin{DoxyCompactList}\small\item\em A cell contains a single unicode character, with associated formatting data including style, color, and color palette. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gac96d9caa0bcda103733dca653f29f302}{evas\+\_\+object\+\_\+textgrid\+\_\+supported\+\_\+font\+\_\+styles\+\_\+set}} (Evas\+\_\+\+Textgrid $\ast$obj, Evas\+\_\+\+Textgrid\+\_\+\+Font\+\_\+\+Style styles)
\begin{DoxyCompactList}\small\item\em This function is not implemented yet, do not use. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API Evas\+\_\+\+Textgrid\+\_\+\+Font\+\_\+\+Style \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga56fbd09c06da5c4714df9fb7880b3b96}{evas\+\_\+object\+\_\+textgrid\+\_\+supported\+\_\+font\+\_\+styles\+\_\+get}} (const Evas\+\_\+\+Textgrid $\ast$obj)
\begin{DoxyCompactList}\small\item\em This function is not implemented yet, do not use. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}{evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+set}} (Evas\+\_\+\+Textgrid $\ast$obj, int w, int h)
\begin{DoxyCompactList}\small\item\em Set the size of the textgrid object. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga5d239606add79784d1f3fdfb2f89e871}{evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+get}} (const Evas\+\_\+\+Textgrid $\ast$obj, int $\ast$w, int $\ast$h)
\begin{DoxyCompactList}\small\item\em Get the size of the textgrid object. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga54ca4e48346582d8d960532210228fc6}{evas\+\_\+object\+\_\+textgrid\+\_\+cell\+\_\+size\+\_\+get}} (const Evas\+\_\+\+Textgrid $\ast$obj, int $\ast$width, int $\ast$height)
\begin{DoxyCompactList}\small\item\em Retrieve the size of a cell of the given textgrid object in pixels. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa628b2a19daf8f5547da3ea5e31097b6}{evas\+\_\+object\+\_\+textgrid\+\_\+update\+\_\+add}} (Evas\+\_\+\+Textgrid $\ast$obj, int x, int y, int w, int h)
\begin{DoxyCompactList}\small\item\em Indicate for evas that part of a textgrid region (cells) has been updated. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga6866c85f05e1a795b925b883f0662ba8}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+set}} (Evas\+\_\+\+Textgrid $\ast$obj, int y, const \mbox{\hyperlink{struct__Evas__Textgrid__Cell}{Evas\+\_\+\+Textgrid\+\_\+\+Cell}} $\ast$row)
\begin{DoxyCompactList}\small\item\em Set the string at the given row of the given textgrid object. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API \mbox{\hyperlink{struct__Evas__Textgrid__Cell}{Evas\+\_\+\+Textgrid\+\_\+\+Cell}} $\ast$ \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa19479def520ed564e7440626c3781ee}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get}} (const Evas\+\_\+\+Textgrid $\ast$obj, int y)
\begin{DoxyCompactList}\small\item\em Get the string at the given row of the given textgrid object. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gafdcf7a4b14d04a9ced762af244044c7b}{evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+set}} (Evas\+\_\+\+Textgrid $\ast$obj, Evas\+\_\+\+Textgrid\+\_\+\+Palette pal, int idx, int r, int g, int b, int a)
\begin{DoxyCompactList}\small\item\em The set color to the given palette at the given index of the given textgrid object. \end{DoxyCompactList}\item 
EVAS\+\_\+\+API void \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga2bfbeb084f803248998070b61491c89c}{evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+get}} (const Evas\+\_\+\+Textgrid $\ast$obj, Evas\+\_\+\+Textgrid\+\_\+\+Palette pal, int idx, int $\ast$r, int $\ast$g, int $\ast$b, int $\ast$a)
\begin{DoxyCompactList}\small\item\em The retrieve color to the given palette at the given index of the given textgrid object. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Textgrid objects manage chunks of text as a 2D grid of cells, each of which contains a single unicode character with color and style formatting information. 

The object\textquotesingle{}s text can be interacted with character-\/by-\/character or by row.

\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_gac96d9caa0bcda103733dca653f29f302}\label{group__Evas__Object__Textgrid__Group_gac96d9caa0bcda103733dca653f29f302}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_supported\_font\_styles\_set@{evas\_object\_textgrid\_supported\_font\_styles\_set}}
\index{evas\_object\_textgrid\_supported\_font\_styles\_set@{evas\_object\_textgrid\_supported\_font\_styles\_set}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_supported\_font\_styles\_set()}{evas\_object\_textgrid\_supported\_font\_styles\_set()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+supported\+\_\+font\+\_\+styles\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{Evas\+\_\+\+Textgrid\+\_\+\+Font\+\_\+\+Style}]{styles }\end{DoxyParamCaption})}



This function is not implemented yet, do not use. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em styles} & EVAS\+\_\+\+TEXTGRID\+\_\+\+FONT\+\_\+\+STYLE\+\_\+\+NORMAL \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga56fbd09c06da5c4714df9fb7880b3b96}\label{group__Evas__Object__Textgrid__Group_ga56fbd09c06da5c4714df9fb7880b3b96}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_supported\_font\_styles\_get@{evas\_object\_textgrid\_supported\_font\_styles\_get}}
\index{evas\_object\_textgrid\_supported\_font\_styles\_get@{evas\_object\_textgrid\_supported\_font\_styles\_get}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_supported\_font\_styles\_get()}{evas\_object\_textgrid\_supported\_font\_styles\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API Evas\+\_\+\+Textgrid\+\_\+\+Font\+\_\+\+Style evas\+\_\+object\+\_\+textgrid\+\_\+supported\+\_\+font\+\_\+styles\+\_\+get (\begin{DoxyParamCaption}\item[{const Evas\+\_\+\+Textgrid $\ast$}]{obj }\end{DoxyParamCaption})}



This function is not implemented yet, do not use. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EVAS\+\_\+\+TEXTGRID\+\_\+\+FONT\+\_\+\+STYLE\+\_\+\+NORMAL 
\end{DoxyReturn}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}\label{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_size\_set@{evas\_object\_textgrid\_size\_set}}
\index{evas\_object\_textgrid\_size\_set@{evas\_object\_textgrid\_size\_set}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_size\_set()}{evas\_object\_textgrid\_size\_set()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Set the size of the textgrid object. 

This function sets the number of lines {\ttfamily h} and the number of columns {\ttfamily w} for the textgrid object {\ttfamily obj}. If {\ttfamily w} or {\ttfamily h} are less than or equal to 0, this function does nothing.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em w} & The number of columns (width in cells) of the grid. \\
\hline
\mbox{\texttt{ in}}  & {\em h} & The number of rows (height in cells) of the grid.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga5d239606add79784d1f3fdfb2f89e871}\label{group__Evas__Object__Textgrid__Group_ga5d239606add79784d1f3fdfb2f89e871}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_size\_get@{evas\_object\_textgrid\_size\_get}}
\index{evas\_object\_textgrid\_size\_get@{evas\_object\_textgrid\_size\_get}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_size\_get()}{evas\_object\_textgrid\_size\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int $\ast$}]{w,  }\item[{int $\ast$}]{h }\end{DoxyParamCaption})}



Get the size of the textgrid object. 

This function retrieves the number of lines in the buffer {\ttfamily h} and the number of columns in the buffer {\ttfamily w} of the textgrid object {\ttfamily obj}. {\ttfamily w} or {\ttfamily h} can be {\ttfamily null}. On error, they are set to 0.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ out}}  & {\em w} & The number of columns (width in cells) of the grid. \\
\hline
\mbox{\texttt{ out}}  & {\em h} & The number of rows (height in cells) of the grid.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga54ca4e48346582d8d960532210228fc6}\label{group__Evas__Object__Textgrid__Group_ga54ca4e48346582d8d960532210228fc6}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_cell\_size\_get@{evas\_object\_textgrid\_cell\_size\_get}}
\index{evas\_object\_textgrid\_cell\_size\_get@{evas\_object\_textgrid\_cell\_size\_get}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_cell\_size\_get()}{evas\_object\_textgrid\_cell\_size\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+cell\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int $\ast$}]{width,  }\item[{int $\ast$}]{height }\end{DoxyParamCaption})}



Retrieve the size of a cell of the given textgrid object in pixels. 

This functions retrieves the width and height, in pixels, of a cell of the textgrid object {\ttfamily obj} and stores them respectively in the buffers {\ttfamily width} and {\ttfamily height}. Their values depend on the monospace font and style used for the textgrid object. {\ttfamily width} and {\ttfamily height} can be {\ttfamily null}. On error, they are set to 0.

See also efl\+\_\+text\+\_\+font\+\_\+size\+\_\+set, efl\+\_\+text\+\_\+font\+\_\+family\+\_\+set and \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gac96d9caa0bcda103733dca653f29f302}{evas\+\_\+object\+\_\+textgrid\+\_\+supported\+\_\+font\+\_\+styles\+\_\+set}}


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ out}}  & {\em width} & A pointer to the location to store the cell\textquotesingle{}s width in pixels. \\
\hline
\mbox{\texttt{ out}}  & {\em height} & A pointer to the location to store the cell\textquotesingle{}s height in pixels.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_gaa628b2a19daf8f5547da3ea5e31097b6}\label{group__Evas__Object__Textgrid__Group_gaa628b2a19daf8f5547da3ea5e31097b6}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_update\_add@{evas\_object\_textgrid\_update\_add}}
\index{evas\_object\_textgrid\_update\_add@{evas\_object\_textgrid\_update\_add}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_update\_add()}{evas\_object\_textgrid\_update\_add()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+update\+\_\+add (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{w,  }\item[{int}]{h }\end{DoxyParamCaption})}



Indicate for evas that part of a textgrid region (cells) has been updated. 

This function declares to evas that a region of cells was updated by code and needs refreshing.

See also \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga6866c85f05e1a795b925b883f0662ba8}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+set}}, \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa19479def520ed564e7440626c3781ee}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get}} and \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}{evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+set}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em x} & The rect region of cells top-\/left x (column). \\
\hline
\mbox{\texttt{ in}}  & {\em y} & The rect region of cells top-\/left y (row). \\
\hline
\mbox{\texttt{ in}}  & {\em w} & The rect region size in number of cells (columns). \\
\hline
\mbox{\texttt{ in}}  & {\em h} & The rect region size in number of cells (rows).\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga6866c85f05e1a795b925b883f0662ba8}\label{group__Evas__Object__Textgrid__Group_ga6866c85f05e1a795b925b883f0662ba8}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_cellrow\_set@{evas\_object\_textgrid\_cellrow\_set}}
\index{evas\_object\_textgrid\_cellrow\_set@{evas\_object\_textgrid\_cellrow\_set}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_cellrow\_set()}{evas\_object\_textgrid\_cellrow\_set()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int}]{y,  }\item[{const \mbox{\hyperlink{struct__Evas__Textgrid__Cell}{Evas\+\_\+\+Textgrid\+\_\+\+Cell}} $\ast$}]{row }\end{DoxyParamCaption})}



Set the string at the given row of the given textgrid object. 

This function returns cells to the textgrid taken by evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get. The row pointer {\ttfamily row} should be the same row pointer returned by evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get for the same row {\ttfamily y}.

See also \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa19479def520ed564e7440626c3781ee}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get}}, \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}{evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+set}} and \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa628b2a19daf8f5547da3ea5e31097b6}{evas\+\_\+object\+\_\+textgrid\+\_\+update\+\_\+add}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em y} & The row index of the grid. \\
\hline
\mbox{\texttt{ in}}  & {\em row} & The string as a sequence of Evas\+\_\+\+Textgrid\+\_\+\+Cell.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_gaa19479def520ed564e7440626c3781ee}\label{group__Evas__Object__Textgrid__Group_gaa19479def520ed564e7440626c3781ee}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_cellrow\_get@{evas\_object\_textgrid\_cellrow\_get}}
\index{evas\_object\_textgrid\_cellrow\_get@{evas\_object\_textgrid\_cellrow\_get}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_cellrow\_get()}{evas\_object\_textgrid\_cellrow\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API \mbox{\hyperlink{struct__Evas__Textgrid__Cell}{Evas\+\_\+\+Textgrid\+\_\+\+Cell}} $\ast$ evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+get (\begin{DoxyParamCaption}\item[{const Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{int}]{y }\end{DoxyParamCaption})}



Get the string at the given row of the given textgrid object. 

This function returns a pointer to the first cell of the line {\ttfamily y} of the textgrid object {\ttfamily obj}. If {\ttfamily y} is not between 0 and the number of lines of the grid -\/ 1, or on error, this function return {\ttfamily null}.

See also \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga6866c85f05e1a795b925b883f0662ba8}{evas\+\_\+object\+\_\+textgrid\+\_\+cellrow\+\_\+set}}, \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga10ae2949c1c4f84ab30ab985952af701}{evas\+\_\+object\+\_\+textgrid\+\_\+size\+\_\+set}} and \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gaa628b2a19daf8f5547da3ea5e31097b6}{evas\+\_\+object\+\_\+textgrid\+\_\+update\+\_\+add}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em y} & The row index of the grid.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the first cell of the given row.
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_gafdcf7a4b14d04a9ced762af244044c7b}\label{group__Evas__Object__Textgrid__Group_gafdcf7a4b14d04a9ced762af244044c7b}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_palette\_set@{evas\_object\_textgrid\_palette\_set}}
\index{evas\_object\_textgrid\_palette\_set@{evas\_object\_textgrid\_palette\_set}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_palette\_set()}{evas\_object\_textgrid\_palette\_set()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+set (\begin{DoxyParamCaption}\item[{Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{Evas\+\_\+\+Textgrid\+\_\+\+Palette}]{pal,  }\item[{int}]{idx,  }\item[{int}]{r,  }\item[{int}]{g,  }\item[{int}]{b,  }\item[{int}]{a }\end{DoxyParamCaption})}



The set color to the given palette at the given index of the given textgrid object. 

This function sets the color for the palette of type {\ttfamily pal} at the index {\ttfamily idx} of the textgrid object {\ttfamily obj}. The ARGB components are given by {\ttfamily r}, {\ttfamily g}, {\ttfamily b} and {\ttfamily a}. This color can be used when setting the Evas\+\_\+\+Textgrid\+\_\+\+Cell structure. The components must set a pre-\/multiplied color. If pal is EVAS\+\_\+\+TEXTGRID\+\_\+\+PALETTE\+\_\+\+NONE or EVAS\+\_\+\+TEXTGRID\+\_\+\+PALETTE\+\_\+\+LAST, or if {\ttfamily idx} is not between 0 and 255, or on error, this function does nothing. The color components are clamped between 0 and 255. If {\ttfamily idx} is greater than the latest set color, the colors between this last index and {\ttfamily idx} -\/ 1 are set to black (0, 0, 0, 0).

See also \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_ga2bfbeb084f803248998070b61491c89c}{evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+get}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em pal} & The type of the palette to set the color. \\
\hline
\mbox{\texttt{ in}}  & {\em idx} & The index of the palette to which the color is stored. \\
\hline
\mbox{\texttt{ in}}  & {\em r} & The red component of the color. \\
\hline
\mbox{\texttt{ in}}  & {\em g} & The green component of the color. \\
\hline
\mbox{\texttt{ in}}  & {\em b} & The blue component of the color. \\
\hline
\mbox{\texttt{ in}}  & {\em a} & The alpha component of the color.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
\mbox{\Hypertarget{group__Evas__Object__Textgrid__Group_ga2bfbeb084f803248998070b61491c89c}\label{group__Evas__Object__Textgrid__Group_ga2bfbeb084f803248998070b61491c89c}} 
\index{Textgrid Object Functions@{Textgrid Object Functions}!evas\_object\_textgrid\_palette\_get@{evas\_object\_textgrid\_palette\_get}}
\index{evas\_object\_textgrid\_palette\_get@{evas\_object\_textgrid\_palette\_get}!Textgrid Object Functions@{Textgrid Object Functions}}
\doxysubsubsection{\texorpdfstring{evas\_object\_textgrid\_palette\_get()}{evas\_object\_textgrid\_palette\_get()}}
{\footnotesize\ttfamily EVAS\+\_\+\+API void evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+get (\begin{DoxyParamCaption}\item[{const Evas\+\_\+\+Textgrid $\ast$}]{obj,  }\item[{Evas\+\_\+\+Textgrid\+\_\+\+Palette}]{pal,  }\item[{int}]{idx,  }\item[{int $\ast$}]{r,  }\item[{int $\ast$}]{g,  }\item[{int $\ast$}]{b,  }\item[{int $\ast$}]{a }\end{DoxyParamCaption})}



The retrieve color to the given palette at the given index of the given textgrid object. 

This function retrieves the color for the palette of type {\ttfamily pal} at the index {\ttfamily idx} of the textgrid object {\ttfamily obj}. The ARGB components are stored in the buffers {\ttfamily r}, {\ttfamily g}, {\ttfamily b} and {\ttfamily a}. If {\ttfamily idx} is not between 0 and the index of the latest set color, or if {\ttfamily pal} is EVAS\+\_\+\+TEXTGRID\+\_\+\+PALETTE\+\_\+\+NONE or EVAS\+\_\+\+TEXTGRID\+\_\+\+PALETTE\+\_\+\+LAST, the values of the components are 0. {\ttfamily r}, {\ttfamily g}, {\ttfamily b} and {\ttfamily a} can be {\ttfamily null}.

See also \mbox{\hyperlink{group__Evas__Object__Textgrid__Group_gafdcf7a4b14d04a9ced762af244044c7b}{evas\+\_\+object\+\_\+textgrid\+\_\+palette\+\_\+set}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em obj} & The object. \\
\hline
\mbox{\texttt{ in}}  & {\em pal} & The type of the palette to set the color. \\
\hline
\mbox{\texttt{ in}}  & {\em idx} & The index of the palette to which the color is stored. \\
\hline
\mbox{\texttt{ out}}  & {\em r} & A pointer to the red component of the color. \\
\hline
\mbox{\texttt{ out}}  & {\em g} & A pointer to the green component of the color. \\
\hline
\mbox{\texttt{ out}}  & {\em b} & A pointer to the blue component of the color. \\
\hline
\mbox{\texttt{ out}}  & {\em a} & A pointer to the alpha component of the color.\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+7 
\end{DoxySince}
