\hypertarget{a01073}{\section{Qt\+Graphics\+Button Class Reference}
\label{a01073}\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]{a01073}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01073_af2c5455500ce2cc533e8ca32a2543ac8}{void \hyperlink{a01073_af2c5455500ce2cc533e8ca32a2543ac8}{pressed} ()}\label{a01073_af2c5455500ce2cc533e8ca32a2543ac8}

\begin{DoxyCompactList}\small\item\em signals a button press \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01073_a8203c3642ad838f710b79084b4d63908}{Qt\+Graphics\+Button} (const Q\+Image \&\+\_\+image, Q\+Graphics\+Item $\ast$\+\_\+parent=0, int \+\_\+width=-\/1, int \+\_\+height=-\/1)
\item 
\hypertarget{a01073_adb92807e8ce12d233fae1181f07b9617}{virtual Q\+Rect\+F \hyperlink{a01073_adb92807e8ce12d233fae1181f07b9617}{bounding\+Rect} () const }\label{a01073_adb92807e8ce12d233fae1181f07b9617}

\begin{DoxyCompactList}\small\item\em returns the bounding rect \end{DoxyCompactList}\item 
\hypertarget{a01073_a89bcccba3c6148a1ff1e3db07d518f80}{virtual void \hyperlink{a01073_a89bcccba3c6148a1ff1e3db07d518f80}{paint} (Q\+Painter $\ast$\+\_\+painter, const Q\+Style\+Option\+Graphics\+Item $\ast$\+\_\+option, Q\+Widget $\ast$\+\_\+widget=0)}\label{a01073_a89bcccba3c6148a1ff1e3db07d518f80}

\begin{DoxyCompactList}\small\item\em paints the button \end{DoxyCompactList}\item 
\hypertarget{a01073_a7c4ce50a6d6a58220d29494d3ed8e7c0}{virtual void \hyperlink{a01073_a7c4ce50a6d6a58220d29494d3ed8e7c0}{hover\+Enter\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)}\label{a01073_a7c4ce50a6d6a58220d29494d3ed8e7c0}

\begin{DoxyCompactList}\small\item\em event tracking \end{DoxyCompactList}\item 
\hypertarget{a01073_a3806d69aa197a368b38d0b4f4bd9bedc}{virtual void {\bfseries hover\+Leave\+Event} (Q\+Graphics\+Scene\+Hover\+Event $\ast$\+\_\+event)}\label{a01073_a3806d69aa197a368b38d0b4f4bd9bedc}

\item 
\hypertarget{a01073_a8287bcc8aba5109850d88ab24eab7332}{virtual void {\bfseries mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)}\label{a01073_a8287bcc8aba5109850d88ab24eab7332}

\item 
\hypertarget{a01073_ab57081e33213bb8bfdf7cf70318f9c5e}{virtual void {\bfseries mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$\+\_\+event)}\label{a01073_ab57081e33213bb8bfdf7cf70318f9c5e}

\item 
\hypertarget{a01073_a61a15bfcd1257cad39125be7be302cd1}{virtual Q\+Variant {\bfseries item\+Change} (Graphics\+Item\+Change \+\_\+change, const Q\+Variant \&\+\_\+value)}\label{a01073_a61a15bfcd1257cad39125be7be302cd1}

\item 
\hypertarget{a01073_a54e9d5558a3d64eb0abd6445b8acdfa9}{void \hyperlink{a01073_a54e9d5558a3d64eb0abd6445b8acdfa9}{set\+Checkable} (bool \+\_\+value)}\label{a01073_a54e9d5558a3d64eb0abd6445b8acdfa9}

\begin{DoxyCompactList}\small\item\em makes the button checkable \end{DoxyCompactList}\item 
\hypertarget{a01073_a2f2095734e75d5c582f83e1d65e2a4d2}{void \hyperlink{a01073_a2f2095734e75d5c582f83e1d65e2a4d2}{set\+Checked} (bool \+\_\+value)}\label{a01073_a2f2095734e75d5c582f83e1d65e2a4d2}

\begin{DoxyCompactList}\small\item\em sets button checked state \end{DoxyCompactList}\item 
\hypertarget{a01073_aac839a015cc781f256c1201e6ebce520}{bool \hyperlink{a01073_aac839a015cc781f256c1201e6ebce520}{is\+Checked} () const }\label{a01073_aac839a015cc781f256c1201e6ebce520}

\begin{DoxyCompactList}\small\item\em returns button checked state \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01073_a14f70b83b19e3e77e4bfd076d89bf792}{bool \hyperlink{a01073_a14f70b83b19e3e77e4bfd076d89bf792}{checkable\+\_\+}}\label{a01073_a14f70b83b19e3e77e4bfd076d89bf792}

\begin{DoxyCompactList}\small\item\em button state \end{DoxyCompactList}\item 
\hypertarget{a01073_a0032e1fc460e34fb49d582208f2f236a}{bool {\bfseries checked\+\_\+}}\label{a01073_a0032e1fc460e34fb49d582208f2f236a}

\item 
\hypertarget{a01073_a8efecdbded7d30fc8f8685d79f992253}{bool {\bfseries pressed\+\_\+}}\label{a01073_a8efecdbded7d30fc8f8685d79f992253}

\item 
\hypertarget{a01073_aa6ab67f2a2c4a7919e0fa4bcddae41d1}{bool {\bfseries over\+\_\+}}\label{a01073_aa6ab67f2a2c4a7919e0fa4bcddae41d1}

\item 
\hypertarget{a01073_a1ac56ed7c1500a3d3cc125591f2f1b1d}{int \hyperlink{a01073_a1ac56ed7c1500a3d3cc125591f2f1b1d}{width\+\_\+}}\label{a01073_a1ac56ed7c1500a3d3cc125591f2f1b1d}

\begin{DoxyCompactList}\small\item\em button size \end{DoxyCompactList}\item 
\hypertarget{a01073_afbe4c890d328b1475ef90fad6950f673}{int {\bfseries height\+\_\+}}\label{a01073_afbe4c890d328b1475ef90fad6950f673}

\item 
\hypertarget{a01073_ad1552558a745fa2f258b6b21a4170f0c}{Q\+Pixmap \hyperlink{a01073_ad1552558a745fa2f258b6b21a4170f0c}{normal\+Pix\+\_\+}}\label{a01073_ad1552558a745fa2f258b6b21a4170f0c}

\begin{DoxyCompactList}\small\item\em pixmaps for different button states \end{DoxyCompactList}\item 
\hypertarget{a01073_ac2df1f7b5c29d8da7656021198563419}{Q\+Pixmap {\bfseries over\+Pix\+\_\+}}\label{a01073_ac2df1f7b5c29d8da7656021198563419}

\item 
\hypertarget{a01073_af8e3957bc2b6518290eeca5ed75a4844}{Q\+Pixmap {\bfseries checked\+Pix\+\_\+}}\label{a01073_af8e3957bc2b6518290eeca5ed75a4844}

\end{DoxyCompactItemize}


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

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



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01073_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[{Qt\+Graphics\+Button}]{\setlength{\rightskip}{0pt plus 5cm}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}
)}}\label{a01073_a8203c3642ad838f710b79084b4d63908}
Create a \hyperlink{a00652}{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 67 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}
