Skip to content

Commit

Permalink
core-graphics.types: use constructors for <CGRect>
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jul 14, 2024
1 parent 55ea46a commit 9094110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/core-graphics/types/types.factor
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ STRUCT: CGRect
: set-CGRect-h ( h CGRect -- ) size>> h<< ; inline

: <CGRect> ( x y w h -- rect )
[ CGPoint <struct-boa> ] [ CGSize <struct-boa> ] 2bi* CGRect <struct-boa> ;
[ <CGPoint> ] [ <CGSize> ] 2bi* CGRect boa ;

: CGRect-x-y ( alien -- origin-x origin-y )
[ CGRect-x ] [ CGRect-y ] bi ;
Expand Down

0 comments on commit 9094110

Please sign in to comment.