Skip to content

Commit

Permalink
hiro: Expose clipsToBounds for macOS SDKs below 14 (#1413)
Browse files Browse the repository at this point in the history
Fixes CI failing to build after #1412.

`clipsToBounds` is available as far back as 10.9 but not exposed until
14.0, so we have to expose it manually if we're building on an earlier
SDK.

In future, ares should of course be built with the current SDK, but
should support building with earlier SDKs.

Co-authored-by: jcm <butt@butts.com>
  • Loading branch information
jcm93 and jcm committed Mar 3, 2024
1 parent 6526409 commit 0111abc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions hiro/cocoa/widget/canvas.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@public
hiro::mCanvas* canvas;
}
@property BOOL clipsToBounds;
-(id) initWith:(hiro::mCanvas&)canvas;
-(void) resetCursorRects;
-(NSDragOperation) draggingEntered:(id<NSDraggingInfo>)sender;
Expand Down
1 change: 1 addition & 0 deletions hiro/cocoa/widget/label.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@public
hiro::mLabel* label;
}
@property BOOL clipsToBounds;
-(id) initWith:(hiro::mLabel&)label;
-(void) resetCursorRects;
-(void) drawRect:(NSRect)dirtyRect;
Expand Down
1 change: 1 addition & 0 deletions hiro/cocoa/widget/viewport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@public
hiro::mViewport* viewport;
}
@property BOOL clipsToBounds;
-(id) initWith:(hiro::mViewport&)viewport;
-(void) resetCursorRects;
-(void) drawRect:(NSRect)rect;
Expand Down

0 comments on commit 0111abc

Please sign in to comment.