mirror of
https://github.com/evilneuro/eudora-mac.git
synced 2024-09-27 09:54:25 +00:00
1 line
20 KiB
C
1 line
20 KiB
C
|
/* Copyright (c) 2017, Computer History Museum
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to
the limitations in the disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Computer History Museum nor the names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE
COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. */
#ifndef TABGEOMETRY_H
#define TABGEOMETRY_H
#define kTabTypeWildCard '****'
#define kNoTabObjectFocus (-1)
// Focus constants for tab controls
typedef enum {
focusTabControlDirect,
focusTabControlAdvance,
focusTabControlReverse
} TabFocusType;
//
// This is cool stuff. Cooler once I have time to explain how it works.
//
enum {
kUndefinedTabObject = -1,
kTabObject = -1,
kUseOneLineHeight = -1,
kUseTwoLineHeight = -2,
kUseThreeLineHeight = -3,
kUseFourLineHeight = -4,
kUndefinedCoordinate = -1
};
typedef enum {
fieldObject = 1,
controlObject,
controlResourceObject,
pictureObject,
invalidObect = 0xFFFF // Exists only to force the size to a short
} TabObjectType;
typedef enum {
objectFlagNone = 0x00000000,
objectFlagAcceptsFocus = 0x00000001,
objectFlagExportable = 0x00000002,
objectFlagAll = 0xFFFFFFFF
} ObjectFlagsType;
typedef enum {
left = 1,
top,
right,
bottom,
height,
width,
horizontal,
vertical
} CoordinateType;
//
// RelativeToType
//
// Values between 0 - 100 represent a percentage of width or height
typedef enum {
relToNothing = 0xFFFF, // We don't really care -- forces sizeof to be a short
relToLeft = 1, // Position relative to the left edge of another object
relToTop = 2, // Position relative to the right edge of another object
relToRight = 3, // Position relative to the top of another object
relToBottom = 4, // Position relative to the bottom of another object
relToHorzCenter = 5, // Position relative to the horizontal center of another object
relToVertCenter = 6, // Position relative to the vertical center of another object
relToWidth = 7, // Position relative to the width of another object (Delta contains relative percentage)
relToHeight = 8 // Position relative to the height of another object (Delta contains relative percentage)
} RelativeToType;
typedef enum {
rfNone = 0x00000000,
rfDefaultMargin = 0x00000001, // Use the default margin as the delta
rfNegativeMargin = 0x00000002, // The default margin is in the negative direction
rfPETEPart = 0x00000004, // Relative to the PETE part of a label field
rfLabelPart = 0x00000008, // Relative to the label part of a label field
rAllRelativeFlags = 0xFFFFFFFF // Forces sizeof to a long
} RelativeFlagsType;
typedef enum {
alignNothing = 0xFFFF, // We don't really care
|