\hypertarget{classACG_1_1QtColorTranslator}{}\section{A\+CG\+:\+:Qt\+Color\+Translator Class Reference}
\label{classACG_1_1QtColorTranslator}\index{A\+C\+G\+::\+Qt\+Color\+Translator@{A\+C\+G\+::\+Qt\+Color\+Translator}}


{\ttfamily \#include $<$A\+C\+G/\+Qt\+Widgets/\+Qt\+Color\+Translator.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a6956334b589d8d9d703a68c5c1822d2d}\label{classACG_1_1QtColorTranslator_a6956334b589d8d9d703a68c5c1822d2d}} 
\hyperlink{classACG_1_1QtColorTranslator_a6956334b589d8d9d703a68c5c1822d2d}{Qt\+Color\+Translator} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_afd2c56ae6a8fa724d393f853de422e83}\label{classACG_1_1QtColorTranslator_afd2c56ae6a8fa724d393f853de422e83}} 
\hyperlink{classACG_1_1QtColorTranslator_afd2c56ae6a8fa724d393f853de422e83}{Qt\+Color\+Translator} (Q\+G\+L\+Context \&\+\_\+context)
\begin{DoxyCompactList}\small\item\em construct with Q\+G\+Lcontext \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_ae192b8e10f3591fee59b503b2cb81aa4}\label{classACG_1_1QtColorTranslator_ae192b8e10f3591fee59b503b2cb81aa4}} 
\hyperlink{classACG_1_1QtColorTranslator_ae192b8e10f3591fee59b503b2cb81aa4}{$\sim$\+Qt\+Color\+Translator} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a51ac20f2885414ba5686533baff3066e}\label{classACG_1_1QtColorTranslator_a51ac20f2885414ba5686533baff3066e}} 
void \hyperlink{classACG_1_1QtColorTranslator_a51ac20f2885414ba5686533baff3066e}{initialize} ()
\begin{DoxyCompactList}\small\item\em init (takes current Q\+G\+Lcontext) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a4f0ee0fa2adcf78fb30e999392128306}\label{classACG_1_1QtColorTranslator_a4f0ee0fa2adcf78fb30e999392128306}} 
void \hyperlink{classACG_1_1QtColorTranslator_a4f0ee0fa2adcf78fb30e999392128306}{initialize} (Q\+G\+L\+Context \&\+\_\+context)
\begin{DoxyCompactList}\small\item\em init with given Q\+G\+Lcontext \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_ad563686a149f2e6f10ec99a781c1e0d8}\label{classACG_1_1QtColorTranslator_ad563686a149f2e6f10ec99a781c1e0d8}} 
bool \hyperlink{classACG_1_1QtColorTranslator_ad563686a149f2e6f10ec99a781c1e0d8}{initialized} () const
\begin{DoxyCompactList}\small\item\em has it been initialized? \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a98e16b1d9b4c767d44555ab8f5f85ba2}\label{classACG_1_1QtColorTranslator_a98e16b1d9b4c767d44555ab8f5f85ba2}} 
bool \hyperlink{classACG_1_1QtColorTranslator_a98e16b1d9b4c767d44555ab8f5f85ba2}{index2color} (unsigned int \+\_\+idx, Q\+Rgb \&\+\_\+col) const
\begin{DoxyCompactList}\small\item\em index -\/$>$ color (one buffer) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_aa635b15e8c1c5c6340a8904c93019df4}\label{classACG_1_1QtColorTranslator_aa635b15e8c1c5c6340a8904c93019df4}} 
bool \hyperlink{classACG_1_1QtColorTranslator_aa635b15e8c1c5c6340a8904c93019df4}{index2color} (unsigned int \+\_\+idx, Q\+Rgb \&\+\_\+front\+Color, Q\+Rgb \&\+\_\+back\+Color) const
\begin{DoxyCompactList}\small\item\em index -\/$>$ color (two buffers) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a38923ebfd71d70f2c18fb32797aa9b2d}\label{classACG_1_1QtColorTranslator_a38923ebfd71d70f2c18fb32797aa9b2d}} 
int \hyperlink{classACG_1_1QtColorTranslator_a38923ebfd71d70f2c18fb32797aa9b2d}{color2index} (Q\+Rgb \+\_\+c) const
\begin{DoxyCompactList}\small\item\em color -\/$>$ index (one buffer) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a99dc2e06238dcbace488dca78747fdb3}\label{classACG_1_1QtColorTranslator_a99dc2e06238dcbace488dca78747fdb3}} 
int \hyperlink{classACG_1_1QtColorTranslator_a99dc2e06238dcbace488dca78747fdb3}{color2index} (Q\+Rgb \+\_\+front\+Color, Q\+Rgb \+\_\+back\+Color) const
\begin{DoxyCompactList}\small\item\em color -\/$>$ index (two buffers) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a4a169e2a5a619acf60ebdf816f07f024}\label{classACG_1_1QtColorTranslator_a4a169e2a5a619acf60ebdf816f07f024}} 
unsigned int \hyperlink{classACG_1_1QtColorTranslator_a4a169e2a5a619acf60ebdf816f07f024}{max\+Index} () const
\begin{DoxyCompactList}\small\item\em returns max convertable index (using O\+NE buffer) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_aeaa961e2a5840c6bfb63633e77827ec9}\label{classACG_1_1QtColorTranslator_aeaa961e2a5840c6bfb63633e77827ec9}} 
bool {\bfseries initialized\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a1262c466e6c69b28b8725999f2b41e6a}\label{classACG_1_1QtColorTranslator_a1262c466e6c69b28b8725999f2b41e6a}} 
G\+Lint {\bfseries red\+Bits\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a9a0c2536a892e6d2a438dea8dac63d45}\label{classACG_1_1QtColorTranslator_a9a0c2536a892e6d2a438dea8dac63d45}} 
G\+Lint {\bfseries green\+Bits\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a302c6ff2e6751cdc39747b12c3ca2475}\label{classACG_1_1QtColorTranslator_a302c6ff2e6751cdc39747b12c3ca2475}} 
G\+Lint {\bfseries blue\+Bits\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_add554cec0d06abe11ed6db9b725f155b}\label{classACG_1_1QtColorTranslator_add554cec0d06abe11ed6db9b725f155b}} 
G\+Luint {\bfseries red\+Mask\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a344fa6bef06165a34528d4c873858df0}\label{classACG_1_1QtColorTranslator_a344fa6bef06165a34528d4c873858df0}} 
G\+Luint {\bfseries green\+Mask\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a3fe3135d8e49f0e1a52f1296e4779ec1}\label{classACG_1_1QtColorTranslator_a3fe3135d8e49f0e1a52f1296e4779ec1}} 
G\+Luint {\bfseries blue\+Mask\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a37110743b85bb4166cec22d400d3e024}\label{classACG_1_1QtColorTranslator_a37110743b85bb4166cec22d400d3e024}} 
G\+Luint {\bfseries red\+Shift\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a6297fe64b2b14498d2c803c4528b33a8}\label{classACG_1_1QtColorTranslator_a6297fe64b2b14498d2c803c4528b33a8}} 
G\+Luint {\bfseries green\+Shift\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a6a3724afd121c883ccb2d40471fa9eb8}\label{classACG_1_1QtColorTranslator_a6a3724afd121c883ccb2d40471fa9eb8}} 
G\+Luint {\bfseries blue\+Shift\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a5ae73c3c14be823f613f2f3e47094953}\label{classACG_1_1QtColorTranslator_a5ae73c3c14be823f613f2f3e47094953}} 
G\+Luint {\bfseries red\+Round\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a82c2ab084288d22e5ffd12685ce7c2ef}\label{classACG_1_1QtColorTranslator_a82c2ab084288d22e5ffd12685ce7c2ef}} 
G\+Luint {\bfseries green\+Round\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1QtColorTranslator_a3101e2c8b4fffdc0bae4af401f2a6cb5}\label{classACG_1_1QtColorTranslator_a3101e2c8b4fffdc0bae4af401f2a6cb5}} 
G\+Luint {\bfseries blue\+Round\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class translates index $<$-\/$>$ R\+GB color.

The \hyperlink{classACG_1_1QtColorTranslator}{Qt\+Color\+Translator} is attached to a Q\+G\+L\+Context and translates index to color and vice versa. If the R\+GB bits of one buffer are not sufficient, both front and back buffer can be used. 

Definition at line 80 of file Qt\+Color\+Translator.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Qt\+Widgets/Qt\+Color\+Translator.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Qt\+Widgets/Qt\+Color\+Translator.\+cc\end{DoxyCompactItemize}
