File indexing completed on 2024-05-12 17:05:52

0001 #ifndef oxygenwidgetexplorer_h
0002 #define oxygenwidgetexplorer_h
0003 
0004 /*
0005 * oxygenwidgetexplorer.h
0006 * printout widget information on button press, for debugging
0007 * -------------------
0008 *
0009 * SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
0010 *
0011 * Largely inspired from Qtcurve style
0012 * SPDX-FileCopyrightText: 2003-2010 Craig Drummond <craig.p.drummond@gmail.com>
0013 *
0014 * SPDX-License-Identifier: LGPL-2.0-or-later
0015 */
0016 
0017 #include "oxygenhook.h"
0018 
0019 #include <gtk/gtk.h>
0020 
0021 // constructor
0022 namespace Oxygen
0023 {
0024 
0025     class WidgetExplorer
0026     {
0027 
0028         public:
0029 
0030         //! constructor
0031         WidgetExplorer( void );
0032 
0033         //! destructor
0034         virtual ~WidgetExplorer( void );
0035 
0036         //! initialize hooks
0037         void initializeHooks( void );
0038 
0039         //! enabled state
0040         void setEnabled( bool value );
0041 
0042         protected:
0043 
0044         //! style-set hook
0045         static gboolean buttonPressHook( GSignalInvocationHint*, guint, const GValue*, gpointer );
0046 
0047         private:
0048 
0049         //! enable set
0050         bool _enabled;
0051 
0052         //! true when hooks are initialized
0053         bool _hooksInitialized;
0054 
0055         //! mouse button press event hook
0056         Hook _buttonPressHook;
0057 
0058     };
0059 
0060 }
0061 
0062 #endif