File indexing completed on 2024-04-28 05:32:20
0001 #ifndef oxygentaboptions_h 0002 #define oxygentaboptions_h 0003 0004 /* 0005 * this file is part of the oxygen gtk engine 0006 * SPDX-FileCopyrightText: 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0007 * 0008 * SPDX-License-Identifier: LGPL-2.0-or-later 0009 */ 0010 #include "oxygenflags.h" 0011 0012 #include <gtk/gtk.h> 0013 0014 namespace Oxygen 0015 { 0016 0017 //! internal option flags to pass arguments around 0018 enum TabOption 0019 { 0020 FirstTab = 1<<0, 0021 LastTab = 1<<1, 0022 CurrentTab = 1<<2, 0023 0024 /* 0025 these flags are used to decide how to connect 0026 tabs to the main frame 0027 */ 0028 FirstTabAligned = 1<<3, 0029 LastTabAligned = 1<<4, 0030 LeftOfSelected = 1<<5, 0031 RightOfSelected = 1<<6, 0032 0033 //! true if tab is being dragged 0034 Dragged = 1<<7, 0035 0036 //! true if tabs are drawn for Xul application 0037 Xul = 1<<8 0038 0039 }; 0040 0041 class TabOptions: public Flags<TabOption> 0042 { 0043 0044 public: 0045 0046 //! constructor 0047 TabOptions( void ) 0048 {} 0049 0050 //! constructor 0051 TabOptions( GtkWidget*, GtkStateType, GtkPositionType, int x, int y, int w, int h ); 0052 0053 //! destructor 0054 virtual ~TabOptions( void ) 0055 {} 0056 0057 }; 0058 0059 } 0060 0061 OX_DECLARE_OPERATORS_FOR_FLAGS( Oxygen::TabOptions ) 0062 0063 #endif