\hypertarget{a00469}{\section{Cursor\+Painter Class Reference}
\label{a00469}\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]{a00469}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00469_a05863050d0c62cf69036b9a05dc148c9}{\hyperlink{a00469_a05863050d0c62cf69036b9a05dc148c9}{Cursor\+Painter} (Q\+Object $\ast$\+\_\+parent=0)}\label{a00469_a05863050d0c62cf69036b9a05dc148c9}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a00469_a93bdf9d9073f7f4408a2b7403beeb1e0}{\hyperlink{a00469_a93bdf9d9073f7f4408a2b7403beeb1e0}{$\sim$\+Cursor\+Painter} ()}\label{a00469_a93bdf9d9073f7f4408a2b7403beeb1e0}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00469_ad869fae263077e9177868d74777f81a3}{void \hyperlink{a00469_ad869fae263077e9177868d74777f81a3}{set\+Cursor} (const Q\+Cursor \&\+\_\+cursor)}\label{a00469_ad869fae263077e9177868d74777f81a3}

\begin{DoxyCompactList}\small\item\em Sets the current used cursor. \end{DoxyCompactList}\item 
\hypertarget{a00469_a0e69e0bbfe4acb79d81efd49a99dbe44}{void \hyperlink{a00469_a0e69e0bbfe4acb79d81efd49a99dbe44}{initialize\+G\+L} ()}\label{a00469_a0e69e0bbfe4acb79d81efd49a99dbe44}

\begin{DoxyCompactList}\small\item\em Needs to be called after the gl context has been set up to initialize internal values. \end{DoxyCompactList}\item 
\hypertarget{a00469_aedb818bbfe76da8918f5a0a06f63c732}{void \hyperlink{a00469_aedb818bbfe76da8918f5a0a06f63c732}{register\+Viewer} (\hyperlink{a00652}{gl\+Viewer} $\ast$\+\_\+viewer)}\label{a00469_aedb818bbfe76da8918f5a0a06f63c732}

\begin{DoxyCompactList}\small\item\em Add a \hyperlink{a00652}{gl\+Viewer} that will use this \hyperlink{a00469}{Cursor\+Painter}. \end{DoxyCompactList}\item 
\hypertarget{a00469_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}{void \hyperlink{a00469_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}{paint\+Cursor} (\hyperlink{a00643}{A\+C\+G\+::\+G\+L\+State} $\ast$\+\_\+state)}\label{a00469_a7be2fa3ca70ce4ad0d4d320bf9cd2e7e}

\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 
\hypertarget{a00469_a21e811f9cf8bba005c9a132822d56fb0}{void \hyperlink{a00469_a21e811f9cf8bba005c9a132822d56fb0}{update\+Cursor\+Position} (Q\+Point\+F \+\_\+scene\+Pos)}\label{a00469_a21e811f9cf8bba005c9a132822d56fb0}

\begin{DoxyCompactList}\small\item\em Sets the current cursor position. \end{DoxyCompactList}\item 
\hypertarget{a00469_a96e835140e315bfcdddb4a4a40f2472e}{Q\+Point\+F \hyperlink{a00469_a96e835140e315bfcdddb4a4a40f2472e}{cursor\+Position} ()}\label{a00469_a96e835140e315bfcdddb4a4a40f2472e}

\begin{DoxyCompactList}\small\item\em Return the current cursor position. \end{DoxyCompactList}\item 
\hypertarget{a00469_aab1260e6c12914ec784d8908cf05779d}{void \hyperlink{a00469_aab1260e6c12914ec784d8908cf05779d}{set\+Enabled} (bool \+\_\+enabled)}\label{a00469_aab1260e6c12914ec784d8908cf05779d}

\begin{DoxyCompactList}\small\item\em Enabled/\+Disables gl cursor painting. \end{DoxyCompactList}\item 
\hypertarget{a00469_ad9635d2f2202f15382bda3fdf2283dc0}{void \hyperlink{a00469_ad9635d2f2202f15382bda3fdf2283dc0}{set\+Force\+Native} (bool \+\_\+enabled)}\label{a00469_ad9635d2f2202f15382bda3fdf2283dc0}

\begin{DoxyCompactList}\small\item\em Enabled/\+Disables native cursors. \end{DoxyCompactList}\item 
\hypertarget{a00469_a6bff469fe5716a0ad3a920852a36f0b0}{bool \hyperlink{a00469_a6bff469fe5716a0ad3a920852a36f0b0}{enabled} ()}\label{a00469_a6bff469fe5716a0ad3a920852a36f0b0}

\begin{DoxyCompactList}\small\item\em Returns true if cursor painting is enabled and compatible cursor is set. \end{DoxyCompactList}\item 
\hypertarget{a00469_a87862c87bd32f3bd350a1e604f16ce71}{void \hyperlink{a00469_a87862c87bd32f3bd350a1e604f16ce71}{set\+Mouse\+In} (bool \+\_\+in)}\label{a00469_a87862c87bd32f3bd350a1e604f16ce71}

\begin{DoxyCompactList}\small\item\em Inform the cursor painter about mouse enter / leave. \end{DoxyCompactList}\item 
\hypertarget{a00469_a2550f8918c56dce4f3058a8625d0a92e}{Q\+Rect\+F \hyperlink{a00469_a2550f8918c56dce4f3058a8625d0a92e}{cursor\+Bounding\+Box} ()}\label{a00469_a2550f8918c56dce4f3058a8625d0a92e}

\begin{DoxyCompactList}\small\item\em Bounding box of the cursor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00469_a0190e2f711b8a18c9f077dd0d7e6e4d0}{cursor\+To\+Texture} ()
\item 
\hypertarget{a00469_a48a11f4444c61ff8c962cea0bf49f728}{void {\bfseries cursor\+To\+Cursor} ()}\label{a00469_a48a11f4444c61ff8c962cea0bf49f728}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00469_a560ba8177e8dbc331b0c258732b8672f}{Q\+Cursor {\bfseries cursor\+\_\+}}\label{a00469_a560ba8177e8dbc331b0c258732b8672f}

\item 
\hypertarget{a00469_a4257d2a5a394e61d0a7d38c98247722c}{Q\+Cursor {\bfseries native\+Cursor\+\_\+}}\label{a00469_a4257d2a5a394e61d0a7d38c98247722c}

\item 
\hypertarget{a00469_a2d2a1325e4eb79dd6edbb9da9ea7d72c}{Q\+Point\+F {\bfseries cursor\+Pos\+\_\+}}\label{a00469_a2d2a1325e4eb79dd6edbb9da9ea7d72c}

\item 
\hypertarget{a00469_a031a05bb28baa6fd162e3abf8f491acf}{bool {\bfseries initialized\+\_\+}}\label{a00469_a031a05bb28baa6fd162e3abf8f491acf}

\item 
\hypertarget{a00469_a40af432fae000f8a4f9a5ea9279c8d3d}{Q\+Vector$<$ \hyperlink{a00652}{gl\+Viewer} $\ast$ $>$ {\bfseries views\+\_\+}}\label{a00469_a40af432fae000f8a4f9a5ea9279c8d3d}

\item 
\hypertarget{a00469_aee4797c73891c1e8529ec8dffa72af1a}{bool {\bfseries enabled\+\_\+}}\label{a00469_aee4797c73891c1e8529ec8dffa72af1a}

\item 
\hypertarget{a00469_a3c69f6adce77cd044e526e647bf9873c}{bool {\bfseries mouse\+In\+\_\+}}\label{a00469_a3c69f6adce77cd044e526e647bf9873c}

\item 
\hypertarget{a00469_af0536b49c6706b2e21c472724af0234e}{bool {\bfseries force\+Native\+\_\+}}\label{a00469_af0536b49c6706b2e21c472724af0234e}

\item 
\hypertarget{a00469_ac7d31fb11f5aee8d6ddcc3819951ff92}{int {\bfseries x\+Off\+\_\+}}\label{a00469_ac7d31fb11f5aee8d6ddcc3819951ff92}

\item 
\hypertarget{a00469_aa395e7d0b4c2f99c29717305fa0bfce5}{int {\bfseries y\+Off\+\_\+}}\label{a00469_aa395e7d0b4c2f99c29717305fa0bfce5}

\item 
\hypertarget{a00469_a3d523811391f3a8092aeba52ce355a6c}{G\+Luint {\bfseries texture\+\_\+}}\label{a00469_a3d523811391f3a8092aeba52ce355a6c}

\item 
\hypertarget{a00469_aeecbdde3ff4b93c8d1cba73e4cfaee5c}{bool {\bfseries has\+Cursor\+\_\+}}\label{a00469_aeecbdde3ff4b93c8d1cba73e4cfaee5c}

\end{DoxyCompactItemize}


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

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



\subsection{Member Function Documentation}
\hypertarget{a00469_a0190e2f711b8a18c9f077dd0d7e6e4d0}{\index{Cursor\+Painter@{Cursor\+Painter}!cursor\+To\+Texture@{cursor\+To\+Texture}}
\index{cursor\+To\+Texture@{cursor\+To\+Texture}!Cursor\+Painter@{Cursor\+Painter}}
\subsubsection[{cursor\+To\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}void Cursor\+Painter\+::cursor\+To\+Texture (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a00469_a0190e2f711b8a18c9f077dd0d7e6e4d0}
\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{a03409__todo000069}{Todo}]Possibly switch all cursors to bitmap cursors and check there Hotspots!! \end{DoxyRefDesc}


Definition at line 250 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}
