Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 504 Bytes
/*
* JAEdgeInsets.h
* GitHub
*
* Created by Josh Abernathy on 1/26/11.
* Copyright 2011 GitHub. All rights reserved.
*
*/
typedef struct {
CGFloat top, left, bottom, right;
} JAEdgeInsets;
static inline JAEdgeInsets JAEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) {
return (JAEdgeInsets) { .top = top, .left = left, .bottom = bottom, .right = right };
}
static const JAEdgeInsets JAEdgeInsetsZero = { .top = 0.0f, .left = 0.0f, .bottom = 0.0f, .right = 0.0f };