mirror of
https://github.com/bzotto/ClassicMacTypography.git
synced 2024-11-15 03:05:31 +00:00
22 lines
555 B
Mathematica
22 lines
555 B
Mathematica
|
//
|
||
|
// UIntTypes.m
|
||
|
// Copyright © 2018 Ben Zotto. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "UIntTypes.h"
|
||
|
|
||
|
UIntPoint UIntPointMake(NSUInteger x, NSUInteger y)
|
||
|
{
|
||
|
UIntPoint point; point.x = x; point.y = y; return point;
|
||
|
}
|
||
|
|
||
|
UIntSize UIntSizeMake(NSUInteger width, NSUInteger height)
|
||
|
{
|
||
|
UIntSize size; size.width = width; size.height = height; return size;
|
||
|
}
|
||
|
|
||
|
UIntRect UIntRectMake(NSUInteger x, NSUInteger y, NSUInteger width, NSUInteger height)
|
||
|
{
|
||
|
UIntRect rect; rect.origin = UIntPointMake(x, y); rect.size = UIntSizeMake(width, height); return rect;
|
||
|
}
|