Skip to content

Commit

Permalink
Re-generate CoreAnimation bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed Nov 14, 2024
1 parent c144634 commit 613a448
Show file tree
Hide file tree
Showing 179 changed files with 261 additions and 220 deletions.
5 changes: 3 additions & 2 deletions CoreAnimation/CAAnimation.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down Expand Up @@ -31,14 +31,15 @@ let fillMode self = msg_send ~self ~cmd:(selector "fillMode") ~typ:(returning id
let frameInterval self = msg_send ~self ~cmd:(selector "frameInterval") ~typ:(returning double)
let highFrameRateReason self = msg_send ~self ~cmd:(selector "highFrameRateReason") ~typ:(returning uint)
let initWithCoder x self = msg_send ~self ~cmd:(selector "initWithCoder:") ~typ:(id @-> returning id) x
let isCompleteForTime x self = msg_send ~self ~cmd:(selector "isCompleteForTime:") ~typ:(double @-> returning bool) x
let isEnabled self = msg_send ~self ~cmd:(selector "isEnabled") ~typ:(returning bool)
let isRemovedOnCompletion self = msg_send ~self ~cmd:(selector "isRemovedOnCompletion") ~typ:(returning bool)
let mutableCopyWithZone x self = msg_send ~self ~cmd:(selector "mutableCopyWithZone:") ~typ:((ptr void) @-> returning id) x
let preferredFrameRateRange self = msg_send_stret ~self ~cmd:(selector "preferredFrameRateRange") ~typ:(returning CAFrameRateRange.t) ~return_type:CAFrameRateRange.t
let preferredFrameRateRangeMaximum self = msg_send ~self ~cmd:(selector "preferredFrameRateRangeMaximum") ~typ:(returning float)
let preferredFrameRateRangeMinimum self = msg_send ~self ~cmd:(selector "preferredFrameRateRangeMinimum") ~typ:(returning float)
let preferredFrameRateRangePreferred self = msg_send ~self ~cmd:(selector "preferredFrameRateRangePreferred") ~typ:(returning float)
let preferredFramesPerSecond self = msg_send ~self ~cmd:(selector "preferredFramesPerSecond") ~typ:(returning llong)
let preferredFramesPerSecond self = msg_send ~self ~cmd:(selector "preferredFramesPerSecond") ~typ:(returning llong) |> LLong.to_int
let removedOnCompletion self = msg_send ~self ~cmd:(selector "removedOnCompletion") ~typ:(returning bool)
let repeatCount self = msg_send ~self ~cmd:(selector "repeatCount") ~typ:(returning float)
let repeatDuration self = msg_send ~self ~cmd:(selector "repeatDuration") ~typ:(returning double)
Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAAnimationClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAAnimationGroup.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CABasicAnimation.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAConstraint.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAConstraintClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAConstraintLayoutManager.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAConstraintLayoutManagerClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
15 changes: 7 additions & 8 deletions CoreAnimation/CADisplayLink.ml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

(** Apple docs: {{:https://developer.apple.com/documentation/coreanimation/cadisplaylink?language=objc}CADisplayLink} *)

let self = get_class "CADisplayLink"

let actualFramesPerSecond self = msg_send ~self ~cmd:(selector "actualFramesPerSecond") ~typ:(returning llong)
let active self = msg_send ~self ~cmd:(selector "active") ~typ:(returning bool)
let actualFramesPerSecond self = msg_send ~self ~cmd:(selector "actualFramesPerSecond") ~typ:(returning llong) |> LLong.to_int
let addToRunLoop x ~forMode self = msg_send ~self ~cmd:(selector "addToRunLoop:forMode:") ~typ:(id @-> id @-> returning void) x forMode
let dealloc self = msg_send ~self ~cmd:(selector "dealloc") ~typ:(returning void)
let display self = msg_send ~self ~cmd:(selector "display") ~typ:(returning id)
let duration self = msg_send ~self ~cmd:(selector "duration") ~typ:(returning double)
let frameInterval self = msg_send ~self ~cmd:(selector "frameInterval") ~typ:(returning llong)
let frameInterval self = msg_send ~self ~cmd:(selector "frameInterval") ~typ:(returning llong) |> LLong.to_int
let heartbeatRate self = msg_send ~self ~cmd:(selector "heartbeatRate") ~typ:(returning double)
let highFrameRateReason self = msg_send ~self ~cmd:(selector "highFrameRateReason") ~typ:(returning uint)
let invalidate self = msg_send ~self ~cmd:(selector "invalidate") ~typ:(returning void)
let isPaused self = msg_send ~self ~cmd:(selector "isPaused") ~typ:(returning bool)
let maximumRefreshRate self = msg_send ~self ~cmd:(selector "maximumRefreshRate") ~typ:(returning double)
let minimumFrameDuration self = msg_send ~self ~cmd:(selector "minimumFrameDuration") ~typ:(returning llong)
let minimumFrameDuration self = msg_send ~self ~cmd:(selector "minimumFrameDuration") ~typ:(returning llong) |> LLong.to_int
let preferredFrameRateRange self = msg_send_stret ~self ~cmd:(selector "preferredFrameRateRange") ~typ:(returning CAFrameRateRange.t) ~return_type:CAFrameRateRange.t
let preferredFramesPerSecond self = msg_send ~self ~cmd:(selector "preferredFramesPerSecond") ~typ:(returning llong)
let priority self = msg_send ~self ~cmd:(selector "priority") ~typ:(returning llong)
let preferredFramesPerSecond self = msg_send ~self ~cmd:(selector "preferredFramesPerSecond") ~typ:(returning llong) |> LLong.to_int
let priority self = msg_send ~self ~cmd:(selector "priority") ~typ:(returning llong) |> LLong.to_int
let removeFromRunLoop x ~forMode self = msg_send ~self ~cmd:(selector "removeFromRunLoop:forMode:") ~typ:(id @-> id @-> returning void) x forMode
let setFrameInterval x self = msg_send ~self ~cmd:(selector "setFrameInterval:") ~typ:(llong @-> returning void) (LLong.of_int x)
let setHighFrameRateReason x self = msg_send ~self ~cmd:(selector "setHighFrameRateReason:") ~typ:(uint @-> returning void) x
Expand All @@ -34,9 +35,7 @@ let setPaused x self = msg_send ~self ~cmd:(selector "setPaused:") ~typ:(bool @-
let setPreferredFrameRateRange x self = msg_send ~self ~cmd:(selector "setPreferredFrameRateRange:") ~typ:(CAFrameRateRange.t @-> returning void) x
let setPreferredFramesPerSecond x self = msg_send ~self ~cmd:(selector "setPreferredFramesPerSecond:") ~typ:(llong @-> returning void) (LLong.of_int x)
let setPriority x self = msg_send ~self ~cmd:(selector "setPriority:") ~typ:(llong @-> returning void) (LLong.of_int x)
let setTimingOffset x self = msg_send ~self ~cmd:(selector "setTimingOffset:") ~typ:(double @-> returning void) x
let setUserInfo x self = msg_send ~self ~cmd:(selector "setUserInfo:") ~typ:(id @-> returning void) x
let targetTimestamp self = msg_send ~self ~cmd:(selector "targetTimestamp") ~typ:(returning double)
let timestamp self = msg_send ~self ~cmd:(selector "timestamp") ~typ:(returning double)
let timingOffset self = msg_send ~self ~cmd:(selector "timingOffset") ~typ:(returning double)
let userInfo self = msg_send ~self ~cmd:(selector "userInfo") ~typ:(returning id)
7 changes: 5 additions & 2 deletions CoreAnimation/CADisplayLinkClass.ml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

(** Apple docs: {{:https://developer.apple.com/documentation/coreanimation/cadisplaylink?language=objc}CADisplayLink} *)

let dispatchDeferredDisplayLink x self = msg_send ~self ~cmd:(selector "dispatchDeferredDisplayLink:") ~typ:(ullong @-> returning void) (ULLong.of_int x)
let dispatchDeferredDisplayLinks self = msg_send ~self ~cmd:(selector "dispatchDeferredDisplayLinks") ~typ:(returning void)
let dispatchDeferredDisplayLinksWithDisplayId x self = msg_send ~self ~cmd:(selector "dispatchDeferredDisplayLinksWithDisplayId:") ~typ:(uint @-> returning void) x
let displayLinkWithDisplay x ~target ~selector_ self = msg_send ~self ~cmd:(selector "displayLinkWithDisplay:target:selector:") ~typ:(id @-> id @-> _SEL @-> returning id) x target selector_
let displayLinkWithTarget x ~selector_ self = msg_send ~self ~cmd:(selector "displayLinkWithTarget:selector:") ~typ:(id @-> _SEL @-> returning id) x selector_
let expectedWakeupBeforeCommitDeadline x self = msg_send ~self ~cmd:(selector "expectedWakeupBeforeCommitDeadline:") ~typ:(double @-> returning double) x
let notifyDisplayChange x self = msg_send ~self ~cmd:(selector "notifyDisplayChange:") ~typ:(ullong @-> returning void) (ULLong.of_int x)
let setWillFireHandler x self = msg_send ~self ~cmd:(selector "setWillFireHandler:") ~typ:((ptr void) @-> returning void) x
let supportsExpectedWakeupBeforeCommitDeadline self = msg_send ~self ~cmd:(selector "supportsExpectedWakeupBeforeCommitDeadline") ~typ:(returning bool)
let willFireInfoVersion self = msg_send ~self ~cmd:(selector "willFireInfoVersion") ~typ:(returning llong)
let willFireInfoVersion self = msg_send ~self ~cmd:(selector "willFireInfoVersion") ~typ:(returning llong) |> LLong.to_int
9 changes: 7 additions & 2 deletions CoreAnimation/CAEDRMetadata.ml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

(** Apple docs: {{:https://developer.apple.com/documentation/coreanimation/caedrmetadata?language=objc}CAEDRMetadata} *)

let self = get_class "CAEDRMetadata"

let copyWithZone x self = msg_send ~self ~cmd:(selector "copyWithZone:") ~typ:((ptr void) @-> returning id) x
let dealloc self = msg_send ~self ~cmd:(selector "dealloc") ~typ:(returning void)
let description self = msg_send ~self ~cmd:(selector "description") ~typ:(returning id)
let encodeWithCoder x self = msg_send ~self ~cmd:(selector "encodeWithCoder:") ~typ:(id @-> returning void) x
let initWithBT2100HLG self = msg_send ~self ~cmd:(selector "initWithBT2100HLG") ~typ:(returning id)
let initWithCoder x self = msg_send ~self ~cmd:(selector "initWithCoder:") ~typ:(id @-> returning id) x
let initWithMasteringDisplayMinNits x ~maxNits ~opticalOutputScale self = msg_send ~self ~cmd:(selector "initWithMasteringDisplayMinNits:maxNits:opticalOutputScale:") ~typ:(float @-> float @-> float @-> returning id) x maxNits opticalOutputScale
let initWithSEIAmbientViewingEnvironment x self = msg_send ~self ~cmd:(selector "initWithSEIAmbientViewingEnvironment:") ~typ:(id @-> returning id) x
let initWithSEIMasteringDisplayData x ~contentLightLevelData self = msg_send ~self ~cmd:(selector "initWithSEIMasteringDisplayData:contentLightLevelData:") ~typ:(id @-> id @-> returning id) x contentLightLevelData
let initWithSEIMasteringDisplayData' x ~contentLightLevelData ~opticalOutputScale self = msg_send ~self ~cmd:(selector "initWithSEIMasteringDisplayData:contentLightLevelData:opticalOutputScale:") ~typ:(id @-> id @-> float @-> returning id) x contentLightLevelData opticalOutputScale
let initWithSEIMasteringDisplayData' x ~contentLightLevelData ~opticalOutputScale self = msg_send ~self ~cmd:(selector "initWithSEIMasteringDisplayData:contentLightLevelData:opticalOutputScale:") ~typ:(id @-> id @-> float @-> returning id) x contentLightLevelData opticalOutputScale
let isEqual x self = msg_send ~self ~cmd:(selector "isEqual:") ~typ:(id @-> returning bool) x
7 changes: 5 additions & 2 deletions CoreAnimation/CAEDRMetadataClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand All @@ -12,4 +12,7 @@ open CoreGraphics
let _HDR10MetadataWithDisplayInfo x ~contentInfo ~opticalOutputScale self = msg_send ~self ~cmd:(selector "HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:") ~typ:(id @-> id @-> float @-> returning id) x contentInfo opticalOutputScale
let _HDR10MetadataWithMinLuminance x ~maxLuminance ~opticalOutputScale self = msg_send ~self ~cmd:(selector "HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:") ~typ:(float @-> float @-> float @-> returning id) x maxLuminance opticalOutputScale
let _HLGMetadata self = msg_send ~self ~cmd:(selector "HLGMetadata") ~typ:(returning id)
let setMetadata x ~onSurface self = msg_send ~self ~cmd:(selector "setMetadata:onSurface:") ~typ:(id @-> (ptr IOSurface.t) @-> returning void) x onSurface
let _HLGMetadataWithAmbientViewingEnvironment x self = msg_send ~self ~cmd:(selector "HLGMetadataWithAmbientViewingEnvironment:") ~typ:(id @-> returning id) x
let isAvailable self = msg_send ~self ~cmd:(selector "isAvailable") ~typ:(returning bool)
let setMetadata x ~onSurface self = msg_send ~self ~cmd:(selector "setMetadata:onSurface:") ~typ:(id @-> (ptr IOSurface.t) @-> returning void) x onSurface
let supportsSecureCoding self = msg_send ~self ~cmd:(selector "supportsSecureCoding") ~typ:(returning bool)
2 changes: 1 addition & 1 deletion CoreAnimation/CAEmitterCell.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAEmitterCellClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAEmitterLayer.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAEmitterLayerClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
3 changes: 3 additions & 0 deletions CoreAnimation/CAFrameRateRange.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

open CoreGraphics

let t : [`CAFrameRateRange] structure typ = structure "CAFrameRateRange"
(** Apple docs: {{:https://developer.apple.com/documentation/coreanimation/caframeraterange?language=objc}CAFrameRateRange} *)

Expand Down
8 changes: 7 additions & 1 deletion CoreAnimation/CAGradientLayer.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand All @@ -12,17 +12,23 @@ open CoreGraphics
let self = get_class "CAGradientLayer"

let colorMap self = msg_send ~self ~cmd:(selector "colorMap") ~typ:(returning id)
let colorSpace self = msg_send ~self ~cmd:(selector "colorSpace") ~typ:(returning (ptr CGColorSpace.t))
let colors self = msg_send ~self ~cmd:(selector "colors") ~typ:(returning id)
let didChangeValueForKey x self = msg_send ~self ~cmd:(selector "didChangeValueForKey:") ~typ:(id @-> returning void) x
let endPoint self = msg_send_stret ~self ~cmd:(selector "endPoint") ~typ:(returning CGPoint.t) ~return_type:CGPoint.t
let implicitAnimationForKeyPath x self = msg_send ~self ~cmd:(selector "implicitAnimationForKeyPath:") ~typ:(id @-> returning id) x
let interpolations self = msg_send ~self ~cmd:(selector "interpolations") ~typ:(returning id)
let locations self = msg_send ~self ~cmd:(selector "locations") ~typ:(returning id)
let noiseScale self = msg_send ~self ~cmd:(selector "noiseScale") ~typ:(returning double)
let premultiplied self = msg_send ~self ~cmd:(selector "premultiplied") ~typ:(returning bool)
let setColorMap x self = msg_send ~self ~cmd:(selector "setColorMap:") ~typ:(id @-> returning void) x
let setColorSpace x self = msg_send ~self ~cmd:(selector "setColorSpace:") ~typ:((ptr CGColorSpace.t) @-> returning void) x
let setColors x self = msg_send ~self ~cmd:(selector "setColors:") ~typ:(id @-> returning void) x
let setEndPoint x self = msg_send ~self ~cmd:(selector "setEndPoint:") ~typ:(CGPoint.t @-> returning void) x
let setInterpolations x self = msg_send ~self ~cmd:(selector "setInterpolations:") ~typ:(id @-> returning void) x
let setLocations x self = msg_send ~self ~cmd:(selector "setLocations:") ~typ:(id @-> returning void) x
let setNoiseScale x self = msg_send ~self ~cmd:(selector "setNoiseScale:") ~typ:(double @-> returning void) x
let setPremultiplied x self = msg_send ~self ~cmd:(selector "setPremultiplied:") ~typ:(bool @-> returning void) x
let setStartPoint x self = msg_send ~self ~cmd:(selector "setStartPoint:") ~typ:(CGPoint.t @-> returning void) x
let setType x self = msg_send ~self ~cmd:(selector "setType:") ~typ:(id @-> returning void) x
let startPoint self = msg_send_stret ~self ~cmd:(selector "startPoint") ~typ:(returning CGPoint.t) ~return_type:CGPoint.t
Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAGradientLayerClass.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
2 changes: 1 addition & 1 deletion CoreAnimation/CAKeyframeAnimation.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(* auto-generated, do not modify *)

[@@@ocaml.warning "-33"]
open Runtime
open Objc

[@@@ocaml.warning "-33"]
open CoreFoundation
open CoreGraphics

Expand Down
Loading

0 comments on commit 613a448

Please sign in to comment.