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