UIView.cs 386 B

123456789101112131415
  1. using System;
  2. using static Veldrid.MetalBindings.ObjectiveCRuntime;
  3. namespace Veldrid.MetalBindings
  4. {
  5. public struct UIView
  6. {
  7. public readonly IntPtr NativePtr;
  8. public UIView(IntPtr ptr) => NativePtr = ptr;
  9. public CALayer layer => objc_msgSend<CALayer>(NativePtr, "layer");
  10. public CGRect frame => CGRect_objc_msgSend(NativePtr, "frame");
  11. }
  12. }