File indexing completed on 2024-04-28 05:32:21

0001 #ifndef oxygenwindecooptions_h
0002 #define oxygenwindecooptions_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 
0011 #include "oxygenwindecobutton.h"
0012 
0013 namespace Oxygen
0014 {
0015 
0016     //! window decoration options
0017     namespace WinDeco
0018     {
0019 
0020         //! window decoration options
0021         enum Option
0022         {
0023             Maximized=1<<0,
0024             Shaded=1<<2,
0025             Resizable=1<<3,
0026             Active=1<<4,
0027             Alpha=1<<5,
0028             DrawAlphaChannel=1<<6,
0029         };
0030 
0031         //! window decoration options
0032         typedef unsigned long Options;
0033 
0034         enum Metric
0035         {
0036             BorderLeft=0,
0037             BorderRight,
0038             BorderBottom,
0039             // BorderTop includes title and resize handle heights
0040             BorderTop,
0041             ButtonSpacing,
0042             ButtonMarginTop,
0043             ButtonMarginBottom,
0044             ShadowLeft,
0045             ShadowTop,
0046             ShadowRight,
0047             ShadowBottom,
0048             MetricsCount
0049         };
0050 
0051         //! get frame dimensions
0052         int getMetric(Metric wm);
0053 
0054         //! get button size
0055         // all buttons are of the same size in oxygen, so no argument in internal function
0056         int getButtonSize();
0057 
0058     }
0059 
0060 }
0061 
0062 #endif