1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
21 #define INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
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
27 //standard height of the AHIG
29 #define TAB_HEIGHT_NORMAL 20
31 #define TAB_TEXT_OFFSET 12
32 #define VCL_TAB_TEXT_OFFSET 2
34 //listboxes, comboboxes (they have the same dimensions)
35 #define COMBOBOX_HEIGHT_NORMAL 20
36 #define DROPDOWN_BUTTON_WIDTH 20
39 #define TEXT_EDIT_HEIGHT_NORMAL 22
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
48 #define INTRO_PROGRESS_HEIGHT 9
50 // for some controls, like spinbuttons + spinboxes, or listboxes
51 // we need it to adjust text position beside radio and check buttons
53 #define TEXT_SEPARATOR 3
55 // extra border for focus ring
56 #define FOCUS_RING_WIDTH 4
60 #endif // INCLUDED_VCL_INC_OSX_SALNATIVEWIDGETS_H
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */