\hypertarget{classQtGraphicsButton}{}\section{Qt\+Graphics\+Button Class Reference}
\label{classQtGraphicsButton}\index{Qt\+Graphics\+Button@{Qt\+Graphics\+Button}}


{\ttfamily \#include $<$Open\+Flipper/widgets/gl\+Widget/\+Qt\+Graphics\+Button.\+hh$>$}

Inheritance diagram for Qt\+Graphics\+Button\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classQtGraphicsButton}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_af2c5455500ce2cc533e8ca32a2543ac8}\label{classQtGraphicsButton_af2c5455500ce2cc533e8ca32a2543ac8}} 
void \hyperlink{classQtGraphicsButton_af2c5455500ce2cc533e8ca32a2543ac8}{pressed} ()
\begin{DoxyCompactList}\small\item\em signals a button press \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classQtGraphicsButton_a8203c3642ad838f710b79084b4d63908}{Qt\+Graphics\+Button} (const Q\+Image \&\+\_\+image, Q\+Graphics\+Item $\ast$\+\_\+parent=0, int \+\_\+width=-\/1, int \+\_\+height=-\/1)
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a8d85a6fd466342be260143050b3d5fba}\label{classQtGraphicsButton_a8d85a6fd466342be260143050b3d5fba}} 
virtual Q\+RectF \hyperlink{classQtGraphicsButton_a8d85a6fd466342be260143050b3d5fba}{bounding\+Rect} () const
\begin{DoxyCompactList}\small\item\em returns the bounding rect \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a89bcccba3c6148a1ff1e3db07d518f80}\label{classQtGraphicsButton_a89bcccba3c6148a1ff1e3db07d518f80}} 
virtual void \hyperlink{classQtGraphicsButton_a89bcccba3c6148a1ff1e3db07d518f80}{paint} (Q\+Painter $\ast$\+\_\+painter, const Q\+Style\+Option\+Graphics\+Item $\ast$\+\_\+option, Q\+Widget $\ast$\+\_\+widget=0)
\begin{DoxyCompactList}\small\item\em paints the button \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a7c4ce50a6d6a58220d29494d3ed8e7c0}\label{classQtGraphicsButton_a7c4ce50a6d6a58220d29494d3ed8e7c0}} 
virtual void \hyperlink{classQtGraphicsButton_a7c4ce50a6d6a58220d29494d3ed8e7c0}{hover\+Enter\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)
\begin{DoxyCompactList}\small\item\em event tracking \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a3806d69aa197a368b38d0b4f4bd9bedc}\label{classQtGraphicsButton_a3806d69aa197a368b38d0b4f4bd9bedc}} 
virtual void {\bfseries hover\+Leave\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a8287bcc8aba5109850d88ab24eab7332}\label{classQtGraphicsButton_a8287bcc8aba5109850d88ab24eab7332}} 
virtual void {\bfseries mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{classQtGraphicsButton_ab57081e33213bb8bfdf7cf70318f9c5e}\label{classQtGraphicsButton_ab57081e33213bb8bfdf7cf70318f9c5e}} 
virtual void {\bfseries mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a61a15bfcd1257cad39125be7be302cd1}\label{classQtGraphicsButton_a61a15bfcd1257cad39125be7be302cd1}} 
virtual Q\+Variant {\bfseries item\+Change} (Graphics\+Item\+Change \+\_\+change, const Q\+Variant \&\+\_\+value)
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a54e9d5558a3d64eb0abd6445b8acdfa9}\label{classQtGraphicsButton_a54e9d5558a3d64eb0abd6445b8acdfa9}} 
void \hyperlink{classQtGraphicsButton_a54e9d5558a3d64eb0abd6445b8acdfa9}{set\+Checkable} (bool \+\_\+value)
\begin{DoxyCompactList}\small\item\em makes the button checkable \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a2f2095734e75d5c582f83e1d65e2a4d2}\label{classQtGraphicsButton_a2f2095734e75d5c582f83e1d65e2a4d2}} 
void \hyperlink{classQtGraphicsButton_a2f2095734e75d5c582f83e1d65e2a4d2}{set\+Checked} (bool \+\_\+value)
\begin{DoxyCompactList}\small\item\em sets button checked state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a96668597ebfc98a287808404e95110fb}\label{classQtGraphicsButton_a96668597ebfc98a287808404e95110fb}} 
bool \hyperlink{classQtGraphicsButton_a96668597ebfc98a287808404e95110fb}{is\+Checked} () const
\begin{DoxyCompactList}\small\item\em returns button checked state \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a14f70b83b19e3e77e4bfd076d89bf792}\label{classQtGraphicsButton_a14f70b83b19e3e77e4bfd076d89bf792}} 
bool \hyperlink{classQtGraphicsButton_a14f70b83b19e3e77e4bfd076d89bf792}{checkable\+\_\+}
\begin{DoxyCompactList}\small\item\em button state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_a0032e1fc460e34fb49d582208f2f236a}\label{classQtGraphicsButton_a0032e1fc460e34fb49d582208f2f236a}} 
bool {\bfseries checked\+\_\+}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a8efecdbded7d30fc8f8685d79f992253}\label{classQtGraphicsButton_a8efecdbded7d30fc8f8685d79f992253}} 
bool {\bfseries pressed\+\_\+}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_aa6ab67f2a2c4a7919e0fa4bcddae41d1}\label{classQtGraphicsButton_aa6ab67f2a2c4a7919e0fa4bcddae41d1}} 
bool {\bfseries over\+\_\+}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_a1ac56ed7c1500a3d3cc125591f2f1b1d}\label{classQtGraphicsButton_a1ac56ed7c1500a3d3cc125591f2f1b1d}} 
int \hyperlink{classQtGraphicsButton_a1ac56ed7c1500a3d3cc125591f2f1b1d}{width\+\_\+}
\begin{DoxyCompactList}\small\item\em button size \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_afbe4c890d328b1475ef90fad6950f673}\label{classQtGraphicsButton_afbe4c890d328b1475ef90fad6950f673}} 
int {\bfseries height\+\_\+}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_ad1552558a745fa2f258b6b21a4170f0c}\label{classQtGraphicsButton_ad1552558a745fa2f258b6b21a4170f0c}} 
Q\+Pixmap \hyperlink{classQtGraphicsButton_ad1552558a745fa2f258b6b21a4170f0c}{normal\+Pix\+\_\+}
\begin{DoxyCompactList}\small\item\em pixmaps for different button states \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classQtGraphicsButton_ac2df1f7b5c29d8da7656021198563419}\label{classQtGraphicsButton_ac2df1f7b5c29d8da7656021198563419}} 
Q\+Pixmap {\bfseries over\+Pix\+\_\+}
\item 
\mbox{\Hypertarget{classQtGraphicsButton_af8e3957bc2b6518290eeca5ed75a4844}\label{classQtGraphicsButton_af8e3957bc2b6518290eeca5ed75a4844}} 
Q\+Pixmap {\bfseries checked\+Pix\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Simple Button implementation for Q\+Graphics\+Scene 

Definition at line 65 of file Qt\+Graphics\+Button.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classQtGraphicsButton_a8203c3642ad838f710b79084b4d63908}\label{classQtGraphicsButton_a8203c3642ad838f710b79084b4d63908}} 
\index{Qt\+Graphics\+Button@{Qt\+Graphics\+Button}!Qt\+Graphics\+Button@{Qt\+Graphics\+Button}}
\index{Qt\+Graphics\+Button@{Qt\+Graphics\+Button}!Qt\+Graphics\+Button@{Qt\+Graphics\+Button}}
\subsubsection{\texorpdfstring{Qt\+Graphics\+Button()}{QtGraphicsButton()}}
{\footnotesize\ttfamily Qt\+Graphics\+Button\+::\+Qt\+Graphics\+Button (\begin{DoxyParamCaption}\item[{const Q\+Image \&}]{\+\_\+image,  }\item[{Q\+Graphics\+Item $\ast$}]{\+\_\+parent = {\ttfamily 0},  }\item[{int}]{\+\_\+width = {\ttfamily -\/1},  }\item[{int}]{\+\_\+height = {\ttfamily -\/1} }\end{DoxyParamCaption})}

Create a \hyperlink{classglViewer}{gl\+Viewer}. 
\begin{DoxyParams}{Parameters}
{\em \+\_\+image} & button imahe \\
\hline
{\em \+\_\+parent} & parent graphics scene item \\
\hline
{\em \+\_\+width} & button width \\
\hline
{\em \+\_\+height} & button height \\
\hline
\end{DoxyParams}


Definition at line 61 of file Qt\+Graphics\+Button.\+cc.



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