Class CARenderer

  • All Implemented Interfaces:
    NSObject

    public class CARenderer
    extends NSObject
    API-Since: 2.0
    • Constructor Detail

      • CARenderer

        protected CARenderer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addUpdateRect

        public void addUpdateRect​(CGRect r)
        Add rectangle 'r' to the update region of the current frame.
      • allocWithZone

        public static CARenderer allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginFrameAtTimeTimeStamp

        public void beginFrameAtTimeTimeStamp​(double t,
                                              @Nullable
                                              @Nullable CVTimeStamp ts)
        Begin rendering a frame at time 't'. If 'ts' is non-null it defines the host time and update frequency of the target device.
      • bounds

        public CGRect bounds()
        The bounds rect of the render target.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • endFrame

        public void endFrame()
        Release any data associated with the current frame.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layer

        @Nullable
        public @Nullable CALayer layer()
        The root layer associated with the renderer.
      • nextFrameTime

        public double nextFrameTime()
        Returns the time at which the next update should happen. If infinite no update needs to be scheduled yet. If the current frame time, a continuous animation is running and an update should be scheduled after a "natural" delay.
      • render

        public void render()
        Render the update region of the current frame to the target context.
      • rendererWithMTLTextureOptions

        @NotNull
        public static @NotNull CARenderer rendererWithMTLTextureOptions​(@NotNull
                                                                        @NotNull MTLTexture tex,
                                                                        @Nullable
                                                                        @Nullable NSDictionary<?,​?> dict)
        Create a new renderer object. Its render target is the specified texture. 'dict' is an optional dictionary of parameters. API-Since: 11.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setBounds

        public void setBounds​(CGRect value)
        The bounds rect of the render target.
      • setDestination

        public void setDestination​(@NotNull
                                   @NotNull MTLTexture tex)
        Change the renderer's destination Metal texture.
      • setLayer

        public void setLayer​(@Nullable
                             @Nullable CALayer value)
        The root layer associated with the renderer.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • updateBounds

        public CGRect updateBounds()
        Returns the bounds of the update region - the area that contains all pixels that will be rendered by the current frame. Initially this will include all differences between the current frame and the previously rendered frame.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.