Overte C++ Documentation
UIUtil.h
1 //
2 // UIUtil.h
3 // interface/src
4 //
5 // Created by Ryan Huffman on 09/02/2014.
6 // Copyright 2014 High Fidelity, Inc.
7 //
8 // Distributed under the Apache License, Version 2.0.
9 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10 //
11 
12 
13 #ifndef hifi_UIUtil_h
14 #define hifi_UIUtil_h
15 
16 #include <QWidget>
17 
18 class UIUtil {
19 public:
20  static int getWindowTitleBarHeight(const QWidget* window);
21  static void scaleWidgetFontSizes(QWidget* widget);
22 
23 private:
24  static void internalScaleWidgetFontSizes(QWidget* widget, float scale);
25 };
26 
27 #endif // hifi_UIUtil_h