Disposition
Disposition is a set of functions to modify the attributes of a CGRect structure in an easier way.
Install / Use
/learn @ChocoChipset/DispositionREADME
Disposition
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.hheader 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)
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
