Latest | 1.0 |
---|---|
Homepage | https://github.com/Hecktorzr/Disposition |
License | MIT |
Platforms | ios 3.0, requires ARC |
Authors |
Disposition is a set of functions handful when manipulating and setting the components of CGRect structures.
It’s current reach is short, but tested and expected to grow over time.
Installation
- Copy the
Source/CGRect+Disposition.h
header file to your project. - Show those CGRect structures who is the boss.
Use
- The following function headers self-explain the reach of the library.
Note that the CGRect structure to modify should be passed by reference.
void CGRectSetSize(CGRect *rect, CGSize size);
void CGRectSetWidth(CGRect *rect, CGFloat width);
void CGRectSetHeight(CGRect *rect, CGFloat height);
void CGRectSetOrigin(CGRect *rect, CGPoint originPoint);
void CGRectSetX(CGRect *rect, CGFloat x);
void CGRectSetY(CGRect *rect, CGFloat y);
Contribution
Contribution is always welcomed. Create a pull request or raise an issue if you develop a new feature or enhancement or want to start discussing a topic concerning the library.
License
Released under the MIT License.
Refer to the LICENSE file for more.
Author
Hector Zarate (@hecktorzr)
Latest podspec
{ "name": "Disposition", "version": "1.0", "summary": "A set of functions to modify the attributes of a CGRect structure in an easier way", "homepage": "https://github.com/Hecktorzr/Disposition", "license": "MIT", "authors": { "Hector Zarate": "[email protected]" }, "source": { "git": "https://github.com/Hecktorzr/Disposition.git", "tag": "1.0" }, "source_files": "Source/*.{h,m}", "platforms": { "ios": "3.0" }, "requires_arc": true }
Sat, 27 Feb 2016 20:07:03 +0000