123456789101112131415 |
- using System;
- using static Veldrid.MetalBindings.ObjectiveCRuntime;
- namespace Veldrid.MetalBindings
- {
- public struct UIView
- {
- public readonly IntPtr NativePtr;
- public UIView(IntPtr ptr) => NativePtr = ptr;
- public CALayer layer => objc_msgSend<CALayer>(NativePtr, "layer");
- public CGRect frame => CGRect_objc_msgSend(NativePtr, "frame");
- }
- }
|