\hypertarget{a09900}{}\section{Qt\+Graphics\+Button Class Reference}
\label{a09900}\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]{a09900}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09900_af2c5455500ce2cc533e8ca32a2543ac8}\label{a09900_af2c5455500ce2cc533e8ca32a2543ac8}} 
void \hyperlink{a09900_af2c5455500ce2cc533e8ca32a2543ac8}{pressed} ()
\begin{DoxyCompactList}\small\item\em signals a button press \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a09900_a8203c3642ad838f710b79084b4d63908}{Qt\+Graphics\+Button} (const Q\+Image \&\+\_\+image, Q\+Graphics\+Item $\ast$\+\_\+parent=0, int \+\_\+width=-\/1, int \+\_\+height=-\/1)
\item 
\mbox{\Hypertarget{a09900_a8d85a6fd466342be260143050b3d5fba}\label{a09900_a8d85a6fd466342be260143050b3d5fba}} 
virtual Q\+RectF \hyperlink{a09900_a8d85a6fd466342be260143050b3d5fba}{bounding\+Rect} () const
\begin{DoxyCompactList}\small\item\em returns the bounding rect \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_a89bcccba3c6148a1ff1e3db07d518f80}\label{a09900_a89bcccba3c6148a1ff1e3db07d518f80}} 
virtual void \hyperlink{a09900_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{a09900_a7c4ce50a6d6a58220d29494d3ed8e7c0}\label{a09900_a7c4ce50a6d6a58220d29494d3ed8e7c0}} 
virtual void \hyperlink{a09900_a7c4ce50a6d6a58220d29494d3ed8e7c0}{hover\+Enter\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)
\begin{DoxyCompactList}\small\item\em event tracking \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_a3806d69aa197a368b38d0b4f4bd9bedc}\label{a09900_a3806d69aa197a368b38d0b4f4bd9bedc}} 
virtual void {\bfseries hover\+Leave\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a09900_a8287bcc8aba5109850d88ab24eab7332}\label{a09900_a8287bcc8aba5109850d88ab24eab7332}} 
virtual void {\bfseries mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a09900_ab57081e33213bb8bfdf7cf70318f9c5e}\label{a09900_ab57081e33213bb8bfdf7cf70318f9c5e}} 
virtual void {\bfseries mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)
\item 
\mbox{\Hypertarget{a09900_a61a15bfcd1257cad39125be7be302cd1}\label{a09900_a61a15bfcd1257cad39125be7be302cd1}} 
virtual Q\+Variant {\bfseries item\+Change} (Graphics\+Item\+Change \+\_\+change, const Q\+Variant \&\+\_\+value)
\item 
\mbox{\Hypertarget{a09900_a54e9d5558a3d64eb0abd6445b8acdfa9}\label{a09900_a54e9d5558a3d64eb0abd6445b8acdfa9}} 
void \hyperlink{a09900_a54e9d5558a3d64eb0abd6445b8acdfa9}{set\+Checkable} (bool \+\_\+value)
\begin{DoxyCompactList}\small\item\em makes the button checkable \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_a2f2095734e75d5c582f83e1d65e2a4d2}\label{a09900_a2f2095734e75d5c582f83e1d65e2a4d2}} 
void \hyperlink{a09900_a2f2095734e75d5c582f83e1d65e2a4d2}{set\+Checked} (bool \+\_\+value)
\begin{DoxyCompactList}\small\item\em sets button checked state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_a96668597ebfc98a287808404e95110fb}\label{a09900_a96668597ebfc98a287808404e95110fb}} 
bool \hyperlink{a09900_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{a09900_a14f70b83b19e3e77e4bfd076d89bf792}\label{a09900_a14f70b83b19e3e77e4bfd076d89bf792}} 
bool \hyperlink{a09900_a14f70b83b19e3e77e4bfd076d89bf792}{checkable\+\_\+}
\begin{DoxyCompactList}\small\item\em button state \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_a0032e1fc460e34fb49d582208f2f236a}\label{a09900_a0032e1fc460e34fb49d582208f2f236a}} 
bool {\bfseries checked\+\_\+}
\item 
\mbox{\Hypertarget{a09900_a8efecdbded7d30fc8f8685d79f992253}\label{a09900_a8efecdbded7d30fc8f8685d79f992253}} 
bool {\bfseries pressed\+\_\+}
\item 
\mbox{\Hypertarget{a09900_aa6ab67f2a2c4a7919e0fa4bcddae41d1}\label{a09900_aa6ab67f2a2c4a7919e0fa4bcddae41d1}} 
bool {\bfseries over\+\_\+}
\item 
\mbox{\Hypertarget{a09900_a1ac56ed7c1500a3d3cc125591f2f1b1d}\label{a09900_a1ac56ed7c1500a3d3cc125591f2f1b1d}} 
int \hyperlink{a09900_a1ac56ed7c1500a3d3cc125591f2f1b1d}{width\+\_\+}
\begin{DoxyCompactList}\small\item\em button size \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_afbe4c890d328b1475ef90fad6950f673}\label{a09900_afbe4c890d328b1475ef90fad6950f673}} 
int {\bfseries height\+\_\+}
\item 
\mbox{\Hypertarget{a09900_ad1552558a745fa2f258b6b21a4170f0c}\label{a09900_ad1552558a745fa2f258b6b21a4170f0c}} 
Q\+Pixmap \hyperlink{a09900_ad1552558a745fa2f258b6b21a4170f0c}{normal\+Pix\+\_\+}
\begin{DoxyCompactList}\small\item\em pixmaps for different button states \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09900_ac2df1f7b5c29d8da7656021198563419}\label{a09900_ac2df1f7b5c29d8da7656021198563419}} 
Q\+Pixmap {\bfseries over\+Pix\+\_\+}
\item 
\mbox{\Hypertarget{a09900_af8e3957bc2b6518290eeca5ed75a4844}\label{a09900_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{a09900_a8203c3642ad838f710b79084b4d63908}\label{a09900_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{a09884}{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}
