\hypertarget{classCursorPainter}{}\section{Cursor\+Painter Class Reference}
\label{classCursorPainter}\index{Cursor\+Painter@{Cursor\+Painter}}


{\ttfamily \#include $<$Open\+Flipper/widgets/gl\+Widget/\+Cursor\+Painter.\+hh$>$}

Inheritance diagram for Cursor\+Painter\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classCursorPainter}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classCursorPainter_a05863050d0c62cf69036b9a05dc148c9}\label{classCursorPainter_a05863050d0c62cf69036b9a05dc148c9}} 
\hyperlink{classCursorPainter_a05863050d0c62cf69036b9a05dc148c9}{Cursor\+Painter} (Q\+Object $\ast$\+\_\+parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a93bdf9d9073f7f4408a2b7403beeb1e0}\label{classCursorPainter_a93bdf9d9073f7f4408a2b7403beeb1e0}} 
\hyperlink{classCursorPainter_a93bdf9d9073f7f4408a2b7403beeb1e0}{$\sim$\+Cursor\+Painter} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_ad869fae263077e9177868d74777f81a3}\label{classCursorPainter_ad869fae263077e9177868d74777f81a3}} 
void \hyperlink{classCursorPainter_ad869fae263077e9177868d74777f81a3}{set\+Cursor} (const Q\+Cursor \&\+\_\+cursor)
\begin{DoxyCompactList}\small\item\em Sets the current used cursor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a0e69e0bbfe4acb79d81efd49a99dbe44}\label{classCursorPainter_a0e69e0bbfe4acb79d81efd49a99dbe44}} 
void \hyperlink{classCursorPainter_a0e69e0bbfe4acb79d81efd49a99dbe44}{initialize\+GL} ()
\begin{DoxyCompactList}\small\item\em Needs to be called after the gl context has been set up to initialize internal values. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_aedb818bbfe76da8918f5a0a06f63c732}\label{classCursorPainter_aedb818bbfe76da8918f5a0a06f63c732}} 
void \hyperlink{classCursorPainter_aedb818bbfe76da8918f5a0a06f63c732}{register\+Viewer} (\hyperlink{classglViewer}{gl\+Viewer} $\ast$\+\_\+viewer)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{classglViewer}{gl\+Viewer} that will use this \hyperlink{classCursorPainter}{Cursor\+Painter}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}\label{classCursorPainter_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}} 
void \hyperlink{classCursorPainter_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}{paint\+Cursor} (\hyperlink{classACG_1_1GLState}{A\+C\+G\+::\+G\+L\+State} $\ast$\+\_\+state)
\begin{DoxyCompactList}\small\item\em Cursor painting function. The \+\_\+state has to be setup that 0,0,0 is at the cursor position. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a21e811f9cf8bba005c9a132822d56fb0}\label{classCursorPainter_a21e811f9cf8bba005c9a132822d56fb0}} 
void \hyperlink{classCursorPainter_a21e811f9cf8bba005c9a132822d56fb0}{update\+Cursor\+Position} (Q\+PointF \+\_\+scene\+Pos)
\begin{DoxyCompactList}\small\item\em Sets the current cursor position. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a96e835140e315bfcdddb4a4a40f2472e}\label{classCursorPainter_a96e835140e315bfcdddb4a4a40f2472e}} 
Q\+PointF \hyperlink{classCursorPainter_a96e835140e315bfcdddb4a4a40f2472e}{cursor\+Position} ()
\begin{DoxyCompactList}\small\item\em Return the current cursor position. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_aab1260e6c12914ec784d8908cf05779d}\label{classCursorPainter_aab1260e6c12914ec784d8908cf05779d}} 
void \hyperlink{classCursorPainter_aab1260e6c12914ec784d8908cf05779d}{set\+Enabled} (bool \+\_\+enabled)
\begin{DoxyCompactList}\small\item\em Enabled/\+Disables gl cursor painting. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_ad9635d2f2202f15382bda3fdf2283dc0}\label{classCursorPainter_ad9635d2f2202f15382bda3fdf2283dc0}} 
void \hyperlink{classCursorPainter_ad9635d2f2202f15382bda3fdf2283dc0}{set\+Force\+Native} (bool \+\_\+enabled)
\begin{DoxyCompactList}\small\item\em Enabled/\+Disables native cursors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a6bff469fe5716a0ad3a920852a36f0b0}\label{classCursorPainter_a6bff469fe5716a0ad3a920852a36f0b0}} 
bool \hyperlink{classCursorPainter_a6bff469fe5716a0ad3a920852a36f0b0}{enabled} ()
\begin{DoxyCompactList}\small\item\em Returns true if cursor painting is enabled and compatible cursor is set. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a87862c87bd32f3bd350a1e604f16ce71}\label{classCursorPainter_a87862c87bd32f3bd350a1e604f16ce71}} 
void \hyperlink{classCursorPainter_a87862c87bd32f3bd350a1e604f16ce71}{set\+Mouse\+In} (bool \+\_\+in)
\begin{DoxyCompactList}\small\item\em Inform the cursor painter about mouse enter / leave. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classCursorPainter_a2550f8918c56dce4f3058a8625d0a92e}\label{classCursorPainter_a2550f8918c56dce4f3058a8625d0a92e}} 
Q\+RectF \hyperlink{classCursorPainter_a2550f8918c56dce4f3058a8625d0a92e}{cursor\+Bounding\+Box} ()
\begin{DoxyCompactList}\small\item\em Bounding box of the cursor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classCursorPainter_a0190e2f711b8a18c9f077dd0d7e6e4d0}{cursor\+To\+Texture} ()
\item 
\mbox{\Hypertarget{classCursorPainter_a48a11f4444c61ff8c962cea0bf49f728}\label{classCursorPainter_a48a11f4444c61ff8c962cea0bf49f728}} 
void {\bfseries cursor\+To\+Cursor} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classCursorPainter_a560ba8177e8dbc331b0c258732b8672f}\label{classCursorPainter_a560ba8177e8dbc331b0c258732b8672f}} 
Q\+Cursor {\bfseries cursor\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a4257d2a5a394e61d0a7d38c98247722c}\label{classCursorPainter_a4257d2a5a394e61d0a7d38c98247722c}} 
Q\+Cursor {\bfseries native\+Cursor\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a2d2a1325e4eb79dd6edbb9da9ea7d72c}\label{classCursorPainter_a2d2a1325e4eb79dd6edbb9da9ea7d72c}} 
Q\+PointF {\bfseries cursor\+Pos\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a031a05bb28baa6fd162e3abf8f491acf}\label{classCursorPainter_a031a05bb28baa6fd162e3abf8f491acf}} 
bool {\bfseries initialized\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a40af432fae000f8a4f9a5ea9279c8d3d}\label{classCursorPainter_a40af432fae000f8a4f9a5ea9279c8d3d}} 
Q\+Vector$<$ \hyperlink{classglViewer}{gl\+Viewer} $\ast$ $>$ {\bfseries views\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_aee4797c73891c1e8529ec8dffa72af1a}\label{classCursorPainter_aee4797c73891c1e8529ec8dffa72af1a}} 
bool {\bfseries enabled\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a3c69f6adce77cd044e526e647bf9873c}\label{classCursorPainter_a3c69f6adce77cd044e526e647bf9873c}} 
bool {\bfseries mouse\+In\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_af0536b49c6706b2e21c472724af0234e}\label{classCursorPainter_af0536b49c6706b2e21c472724af0234e}} 
bool {\bfseries force\+Native\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_ac7d31fb11f5aee8d6ddcc3819951ff92}\label{classCursorPainter_ac7d31fb11f5aee8d6ddcc3819951ff92}} 
int {\bfseries x\+Off\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_aa395e7d0b4c2f99c29717305fa0bfce5}\label{classCursorPainter_aa395e7d0b4c2f99c29717305fa0bfce5}} 
int {\bfseries y\+Off\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_a3d523811391f3a8092aeba52ce355a6c}\label{classCursorPainter_a3d523811391f3a8092aeba52ce355a6c}} 
G\+Luint {\bfseries texture\+\_\+}
\item 
\mbox{\Hypertarget{classCursorPainter_aeecbdde3ff4b93c8d1cba73e4cfaee5c}\label{classCursorPainter_aeecbdde3ff4b93c8d1cba73e4cfaee5c}} 
bool {\bfseries has\+Cursor\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class that paints the cursor using gl calls 

Definition at line 68 of file Cursor\+Painter.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classCursorPainter_a0190e2f711b8a18c9f077dd0d7e6e4d0}\label{classCursorPainter_a0190e2f711b8a18c9f077dd0d7e6e4d0}} 
\index{Cursor\+Painter@{Cursor\+Painter}!cursor\+To\+Texture@{cursor\+To\+Texture}}
\index{cursor\+To\+Texture@{cursor\+To\+Texture}!Cursor\+Painter@{Cursor\+Painter}}
\subsubsection{\texorpdfstring{cursor\+To\+Texture()}{cursorToTexture()}}
{\footnotesize\ttfamily void Cursor\+Painter\+::cursor\+To\+Texture (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}

\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{todo__todo000035}{Todo}]Possibly switch all cursors to bitmap cursors and check there Hotspots!! \end{DoxyRefDesc}


Definition at line 247 of file Cursor\+Painter.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/widgets/gl\+Widget/Cursor\+Painter.\+hh\item 
Open\+Flipper/widgets/gl\+Widget/Cursor\+Painter.\+cc\end{DoxyCompactItemize}
