Class CIColor

    • Constructor Detail

      • CIColor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static CIColor alloc()
      • allocWithZone

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

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

        @NotNull
        public static @NotNull CIColor blackColor()
        Convenience constant CIColors in the sRGB colorspace. API-Since: 10.0
      • blueColor

        @NotNull
        public static @NotNull CIColor blueColor()
        API-Since: 10.0
      • 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()
      • clearColor

        @NotNull
        public static @NotNull CIColor clearColor()
        API-Since: 10.0
      • colorWithCGColor

        public static CIColor colorWithCGColor​(@NotNull
                                               @NotNull CGColorRef c)
        Create a new color object.
      • colorWithRedGreenBlue

        public static CIColor colorWithRedGreenBlue​(double r,
                                                    double g,
                                                    double b)
      • colorWithRedGreenBlueAlpha

        public static CIColor colorWithRedGreenBlueAlpha​(double r,
                                                         double g,
                                                         double b,
                                                         double a)
        Create a new color object in CI's default RGB colorspace which is kCGColorSpaceSRGB or, if running on OSX before 10.10, kCGColorSpaceGenericRGB.
      • colorWithRedGreenBlueAlphaColorSpace

        public static CIColor colorWithRedGreenBlueAlphaColorSpace​(double r,
                                                                   double g,
                                                                   double b,
                                                                   double a,
                                                                   @NotNull
                                                                   @NotNull CGColorSpaceRef colorSpace)
        Create a new color object in a given colorspace. Will return null if the colorspace is not kCGColorSpaceModelRGB. API-Since: 10.0
      • colorWithRedGreenBlueColorSpace

        public static CIColor colorWithRedGreenBlueColorSpace​(double r,
                                                              double g,
                                                              double b,
                                                              @NotNull
                                                              @NotNull CGColorSpaceRef colorSpace)
        API-Since: 10.0
      • colorWithString

        public static CIColor colorWithString​(@NotNull
                                              @NotNull java.lang.String representation)
        Create a new color object, 'representation' should be a string in one of the formats returned by the stringRepresentation method.
      • cyanColor

        @NotNull
        public static @NotNull CIColor cyanColor()
        API-Since: 10.0
      • debugDescription_static

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

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

        @NotNull
        public static @NotNull CIColor grayColor()
        API-Since: 10.0
      • greenColor

        @NotNull
        public static @NotNull CIColor greenColor()
        API-Since: 10.0
      • 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)
      • magentaColor

        @NotNull
        public static @NotNull CIColor magentaColor()
        API-Since: 10.0
      • new_objc

        public static CIColor new_objc()
      • redColor

        @NotNull
        public static @NotNull CIColor redColor()
        API-Since: 10.0
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • whiteColor

        @NotNull
        public static @NotNull CIColor whiteColor()
        API-Since: 10.0
      • yellowColor

        @NotNull
        public static @NotNull CIColor yellowColor()
        API-Since: 10.0
      • alpha

        public double alpha()
        Return the alpha value of the color.
      • blue

        public double blue()
      • colorSpace

        @NotNull
        public @NotNull CGColorSpaceRef colorSpace()
        Return the color space object associated with the color.
      • components

        @NotNull
        public @NotNull org.moe.natj.general.ptr.ConstNFloatPtr components()
        Return the color components (including alpha).
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • green

        public double green()
      • initWithCGColor

        public CIColor initWithCGColor​(@NotNull
                                       @NotNull CGColorRef c)
        Initialize a new color object.
      • initWithColor

        public CIColor initWithColor​(@NotNull
                                     @NotNull UIColor color)
        API-Since: 5.0
      • initWithRedGreenBlue

        public CIColor initWithRedGreenBlue​(double r,
                                            double g,
                                            double b)
        API-Since: 9.0
      • initWithRedGreenBlueAlpha

        public CIColor initWithRedGreenBlueAlpha​(double r,
                                                 double g,
                                                 double b,
                                                 double a)
        Initialize a new color object in CI's default RGB colorspace which is kCGColorSpaceSRGB or, if running on OSX before 10.10, kCGColorSpaceGenericRGB.
      • initWithRedGreenBlueAlphaColorSpace

        public CIColor initWithRedGreenBlueAlphaColorSpace​(double r,
                                                           double g,
                                                           double b,
                                                           double a,
                                                           @NotNull
                                                           @NotNull CGColorSpaceRef colorSpace)
        Initialize a new color object in a given colorspace. Will return null if the colorspace is not kCGColorSpaceModelRGB. API-Since: 10.0
      • initWithRedGreenBlueColorSpace

        public CIColor initWithRedGreenBlueColorSpace​(double r,
                                                      double g,
                                                      double b,
                                                      @NotNull
                                                      @NotNull CGColorSpaceRef colorSpace)
        API-Since: 10.0
      • numberOfComponents

        public long numberOfComponents()
        Return the number of color components (including alpha).
      • red

        public double red()
        Return the (unpremultiplied) red, green or blue components of the color.
      • stringRepresentation

        @NotNull
        public @NotNull java.lang.String stringRepresentation()
        Returns a formatted string with the components of the color. The string is suitable for passing to [CIColor colorWithString:]. This property is not KVO-safe because it returns a new NSString each time. The value of the NSString will be the same each time it is called.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.