github / archimedes Goto Github PK
View Code? Open in Web Editor NEWGeometry functions for Cocoa and Cocoa Touch
License: Other
Geometry functions for Cocoa and Cocoa Touch
License: Other
Some of the existing MEDPoint…
methods could be augmented by ones that use CGVector
Using these instructions.
CGRectDivideWithPadding
and friends need namespacing.
Getting a couple compile-preventing parse errors from these lines:
line 84 in CGGeometry+MEDConvenienceAdditions.h
:
void CGRectDivideWithPadding(CGRect rect, CGRect *slice, CGRect *remainder, CGFloat sliceAmount, CGFloat padding, CGRectEdge edge);
lines 92 and 98 in CGGeometry+MEDConvenienceAdditions.h
#define CGRectDivideWithPadding(RECT, SLICE, REMAINDER, AMOUNT, PADDING, EDGE) \
do { \
CGRect _slice, _remainder; \
CGRectDivideWithPadding((RECT), &_slice, &_remainder, (AMOUNT), (PADDING), (EDGE)); \
\
_MEDAssignToRectByReference(SLICE, _slice); \
_MEDAssignToRectByReference(REMAINDER, _remainder); \
} while (0)
MEDBox
can handle boxing these in NSValue
already, but there's no geometry type for it. I would need to implement the NS
equivalent of UIEdgeInsetsInsetRect
as well, so I was wondering if I should put that in a separate header? And also, should the implementation of NSEdgeInsetsInsetRect
respect the flipped state of the view?
EDIT: Sorry, the flipped state thing is confusing. I was mixing up the thoughts I had for integrating this into RCL operators with the geometry type itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.