xref: /trunk/main/vcl/inc/aqua/salnativewidgets.h (revision 79aad27f)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SV_NATIVEWIDGETS_H
25 #define _SV_NATIVEWIDGETS_H
26 
27 // since 10.4 ... no metrics are returned, and we have to fix the values
28 #define BUTTON_WIDTH 16
29 #define BUTTON_HEIGHT 17
30 
31 //standard height of the AHIG
32 //tabs
33 #define TAB_HEIGHT_NORMAL 20
34 #define TAB_HEIGHT_SMALL  17
35 #define TAB_HEIGHT_MINI   15
36 
37 #define TAB_TEXT_OFFSET     12
38 #define VCL_TAB_TEXT_OFFSET 2
39 
40 //listboxes, comboboxes (they have the same dimensions)
41 #define COMBOBOX_HEIGHT_NORMAL 20
42 #define DROPDOWN_BUTTON_WIDTH 20
43 
44 //text edit
45 #define TEXT_EDIT_HEIGHT_NORMAL 22
46 
47 //spin box
48 #define SPIN_BUTTON_SPACE           2
49 #define SPIN_BUTTON_WIDTH           13
50 #define SPIN_UPPER_BUTTON_HEIGHT    11
51 #define SPIN_LOWER_BUTTON_HEIGHT    10
52 #define SPIN_TWO_BUTTONS_HEIGHT     21
53 
54 // progress bar
55 #define INTRO_PROGRESS_HEIGHT 9
56 
57 // for some controls, like spinbuttons + spinboxes, or listboxes
58 // we need it to adjust text position beside radio and check buttons
59 
60 #define TEXT_SEPARATOR 3
61 
62 // extra border for focus ring
63 #define FOCUS_RING_WIDTH 4
64 
65 #define CLIP_FUZZ 1
66 
67 #endif	// _SV_NATIVEWIDGETS_H
68