\hypertarget{a09876}{}\section{Cursor\+Painter Class Reference}
\label{a09876}\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]{a09876}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09876_a05863050d0c62cf69036b9a05dc148c9}\label{a09876_a05863050d0c62cf69036b9a05dc148c9}} 
\hyperlink{a09876_a05863050d0c62cf69036b9a05dc148c9}{Cursor\+Painter} (Q\+Object $\ast$\+\_\+parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a93bdf9d9073f7f4408a2b7403beeb1e0}\label{a09876_a93bdf9d9073f7f4408a2b7403beeb1e0}} 
\hyperlink{a09876_a93bdf9d9073f7f4408a2b7403beeb1e0}{$\sim$\+Cursor\+Painter} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_ad869fae263077e9177868d74777f81a3}\label{a09876_ad869fae263077e9177868d74777f81a3}} 
void \hyperlink{a09876_ad869fae263077e9177868d74777f81a3}{set\+Cursor} (const Q\+Cursor \&\+\_\+cursor)
\begin{DoxyCompactList}\small\item\em Sets the current used cursor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a0e69e0bbfe4acb79d81efd49a99dbe44}\label{a09876_a0e69e0bbfe4acb79d81efd49a99dbe44}} 
void \hyperlink{a09876_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{a09876_aedb818bbfe76da8918f5a0a06f63c732}\label{a09876_aedb818bbfe76da8918f5a0a06f63c732}} 
void \hyperlink{a09876_aedb818bbfe76da8918f5a0a06f63c732}{register\+Viewer} (\hyperlink{a09884}{gl\+Viewer} $\ast$\+\_\+viewer)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{a09884}{gl\+Viewer} that will use this \hyperlink{a09876}{Cursor\+Painter}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}\label{a09876_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}} 
void \hyperlink{a09876_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}{paint\+Cursor} (\hyperlink{a07452}{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{a09876_a21e811f9cf8bba005c9a132822d56fb0}\label{a09876_a21e811f9cf8bba005c9a132822d56fb0}} 
void \hyperlink{a09876_a21e811f9cf8bba005c9a132822d56fb0}{update\+Cursor\+Position} (Q\+PointF \+\_\+scene\+Pos)
\begin{DoxyCompactList}\small\item\em Sets the current cursor position. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a96e835140e315bfcdddb4a4a40f2472e}\label{a09876_a96e835140e315bfcdddb4a4a40f2472e}} 
Q\+PointF \hyperlink{a09876_a96e835140e315bfcdddb4a4a40f2472e}{cursor\+Position} ()
\begin{DoxyCompactList}\small\item\em Return the current cursor position. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_aab1260e6c12914ec784d8908cf05779d}\label{a09876_aab1260e6c12914ec784d8908cf05779d}} 
void \hyperlink{a09876_aab1260e6c12914ec784d8908cf05779d}{set\+Enabled} (bool \+\_\+enabled)
\begin{DoxyCompactList}\small\item\em Enabled/\+Disables gl cursor painting. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_ad9635d2f2202f15382bda3fdf2283dc0}\label{a09876_ad9635d2f2202f15382bda3fdf2283dc0}} 
void \hyperlink{a09876_ad9635d2f2202f15382bda3fdf2283dc0}{set\+Force\+Native} (bool \+\_\+enabled)
\begin{DoxyCompactList}\small\item\em Enabled/\+Disables native cursors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a6bff469fe5716a0ad3a920852a36f0b0}\label{a09876_a6bff469fe5716a0ad3a920852a36f0b0}} 
bool \hyperlink{a09876_a6bff469fe5716a0ad3a920852a36f0b0}{enabled} ()
\begin{DoxyCompactList}\small\item\em Returns true if cursor painting is enabled and compatible cursor is set. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a87862c87bd32f3bd350a1e604f16ce71}\label{a09876_a87862c87bd32f3bd350a1e604f16ce71}} 
void \hyperlink{a09876_a87862c87bd32f3bd350a1e604f16ce71}{set\+Mouse\+In} (bool \+\_\+in)
\begin{DoxyCompactList}\small\item\em Inform the cursor painter about mouse enter / leave. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09876_a2550f8918c56dce4f3058a8625d0a92e}\label{a09876_a2550f8918c56dce4f3058a8625d0a92e}} 
Q\+RectF \hyperlink{a09876_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{a09876_a0190e2f711b8a18c9f077dd0d7e6e4d0}{cursor\+To\+Texture} ()
\item 
\mbox{\Hypertarget{a09876_a48a11f4444c61ff8c962cea0bf49f728}\label{a09876_a48a11f4444c61ff8c962cea0bf49f728}} 
void {\bfseries cursor\+To\+Cursor} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09876_a560ba8177e8dbc331b0c258732b8672f}\label{a09876_a560ba8177e8dbc331b0c258732b8672f}} 
Q\+Cursor {\bfseries cursor\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a4257d2a5a394e61d0a7d38c98247722c}\label{a09876_a4257d2a5a394e61d0a7d38c98247722c}} 
Q\+Cursor {\bfseries native\+Cursor\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a2d2a1325e4eb79dd6edbb9da9ea7d72c}\label{a09876_a2d2a1325e4eb79dd6edbb9da9ea7d72c}} 
Q\+PointF {\bfseries cursor\+Pos\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a031a05bb28baa6fd162e3abf8f491acf}\label{a09876_a031a05bb28baa6fd162e3abf8f491acf}} 
bool {\bfseries initialized\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a40af432fae000f8a4f9a5ea9279c8d3d}\label{a09876_a40af432fae000f8a4f9a5ea9279c8d3d}} 
Q\+Vector$<$ \hyperlink{a09884}{gl\+Viewer} $\ast$ $>$ {\bfseries views\+\_\+}
\item 
\mbox{\Hypertarget{a09876_aee4797c73891c1e8529ec8dffa72af1a}\label{a09876_aee4797c73891c1e8529ec8dffa72af1a}} 
bool {\bfseries enabled\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a3c69f6adce77cd044e526e647bf9873c}\label{a09876_a3c69f6adce77cd044e526e647bf9873c}} 
bool {\bfseries mouse\+In\+\_\+}
\item 
\mbox{\Hypertarget{a09876_af0536b49c6706b2e21c472724af0234e}\label{a09876_af0536b49c6706b2e21c472724af0234e}} 
bool {\bfseries force\+Native\+\_\+}
\item 
\mbox{\Hypertarget{a09876_ac7d31fb11f5aee8d6ddcc3819951ff92}\label{a09876_ac7d31fb11f5aee8d6ddcc3819951ff92}} 
int {\bfseries x\+Off\+\_\+}
\item 
\mbox{\Hypertarget{a09876_aa395e7d0b4c2f99c29717305fa0bfce5}\label{a09876_aa395e7d0b4c2f99c29717305fa0bfce5}} 
int {\bfseries y\+Off\+\_\+}
\item 
\mbox{\Hypertarget{a09876_a3d523811391f3a8092aeba52ce355a6c}\label{a09876_a3d523811391f3a8092aeba52ce355a6c}} 
G\+Luint {\bfseries texture\+\_\+}
\item 
\mbox{\Hypertarget{a09876_aeecbdde3ff4b93c8d1cba73e4cfaee5c}\label{a09876_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{a09876_a0190e2f711b8a18c9f077dd0d7e6e4d0}\label{a09876_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{a06164__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}
