LibreOffice Module vcl (master)  1
salnativewidgets.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
21 #define INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
22 
23 // since 10.4 ... no metrics are returned, and we have to fix the values
24 #define BUTTON_WIDTH 16
25 #define BUTTON_HEIGHT 17
26 
27 //standard height of the AHIG
28 //tabs
29 #define TAB_HEIGHT_NORMAL 20
30 
31 #define TAB_TEXT_OFFSET 12
32 #define VCL_TAB_TEXT_OFFSET 2
33 
34 //listboxes, comboboxes (they have the same dimensions)
35 #define COMBOBOX_HEIGHT_NORMAL 20
36 #define DROPDOWN_BUTTON_WIDTH 20
37 
38 //text edit
39 #define TEXT_EDIT_HEIGHT_NORMAL 22
40 
41 //spin box
42 #define SPIN_BUTTON_SPACE 2
43 #define SPIN_BUTTON_WIDTH 13
44 #define SPIN_UPPER_BUTTON_HEIGHT 11
45 #define SPIN_LOWER_BUTTON_HEIGHT 10
46 
47 // progress bar
48 #define INTRO_PROGRESS_HEIGHT 9
49 
50 // for some controls, like spinbuttons + spinboxes, or listboxes
51 // we need it to adjust text position beside radio and check buttons
52 
53 #define TEXT_SEPARATOR 3
54 
55 // extra border for focus ring
56 #define FOCUS_RING_WIDTH 4
57 
58 #define CLIP_FUZZ 1
59 
60 #endif // INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
61 
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */