Class UIColor

    • Constructor Detail

      • UIColor

        public UIColor()
      • UIColor

        public UIColor​(double red,
                       double green,
                       double blue,
                       double alpha)
      • UIColor

        public UIColor​(CGColor cgColor)
      • UIColor

        public UIColor​(CIColor ciColor)
        Since:
        Available in iOS 5.0 and later.
      • UIColor

        public UIColor​(NSCoder decoder)
    • Method Detail

      • black

        public static UIColor black()
      • darkGray

        public static UIColor darkGray()
      • lightGray

        public static UIColor lightGray()
      • white

        public static UIColor white()
      • gray

        public static UIColor gray()
      • red

        public static UIColor red()
      • green

        public static UIColor green()
      • blue

        public static UIColor blue()
      • cyan

        public static UIColor cyan()
      • yellow

        public static UIColor yellow()
      • magenta

        public static UIColor magenta()
      • orange

        public static UIColor orange()
      • purple

        public static UIColor purple()
      • brown

        public static UIColor brown()
      • clear

        public static UIColor clear()
      • getCGColor

        public CGColor getCGColor()
      • getCIColor

        public CIColor getCIColor()
        Since:
        Available in iOS 5.0 and later.
      • lightText

        public static UIColor lightText()
      • darkText

        public static UIColor darkText()
      • groupTableViewBackground

        public static UIColor groupTableViewBackground()
      • viewFlipsideBackground

        @Deprecated
        public static UIColor viewFlipsideBackground()
        Deprecated.
        Deprecated in iOS 7.0.
        Since:
        Available in iOS 2.0 and later.
      • scrollViewTexturedBackground

        @Deprecated
        public static UIColor scrollViewTexturedBackground()
        Deprecated.
        Deprecated in iOS 7.0.
        Since:
        Available in iOS 3.2 and later.
      • underPageBackground

        @Deprecated
        public static UIColor underPageBackground()
        Deprecated.
        Deprecated in iOS 7.0.
        Since:
        Available in iOS 5.0 and later.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • getReadableTypeIdentifiersForItemProvider

        public static NSArray<NSString> getReadableTypeIdentifiersForItemProvider()
      • getWritableTypeIdentifiersForItemProvider0

        public static NSArray<NSString> getWritableTypeIdentifiersForItemProvider0()
      • getWhiteAlpha

        public double[] getWhiteAlpha()
      • getHSBA

        public double[] getHSBA()
      • getRGBA

        public double[] getRGBA()
      • init

        protected long init​(double red,
                            double green,
                            double blue,
                            double alpha)
      • init

        protected long init​(CGColor cgColor)
      • init

        protected long init​(CIColor ciColor)
        Since:
        Available in iOS 5.0 and later.
      • setFillAndStroke

        public void setFillAndStroke()
      • setFill

        public void setFill()
      • setStroke

        public void setStroke()
      • getWhiteAlpha

        protected boolean getWhiteAlpha​(org.robovm.rt.bro.ptr.MachineSizedFloatPtr white,
                                        org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
        Since:
        Available in iOS 5.0 and later.
      • getHSBA

        protected boolean getHSBA​(org.robovm.rt.bro.ptr.MachineSizedFloatPtr hue,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr saturation,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr brightness,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
        Since:
        Available in iOS 5.0 and later.
      • getRGBA

        protected boolean getRGBA​(org.robovm.rt.bro.ptr.MachineSizedFloatPtr red,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr green,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr blue,
                                  org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
        Since:
        Available in iOS 5.0 and later.
      • addAlpha

        public UIColor addAlpha​(double alpha)
      • fromWhiteAlpha

        public static UIColor fromWhiteAlpha​(double white,
                                             double alpha)
      • fromHSBA

        public static UIColor fromHSBA​(double hue,
                                       double saturation,
                                       double brightness,
                                       double alpha)
      • fromRGBA

        public static UIColor fromRGBA​(double red,
                                       double green,
                                       double blue,
                                       double alpha)
      • fromDisplayP3

        public static UIColor fromDisplayP3​(double displayP3Red,
                                            double green,
                                            double blue,
                                            double alpha)
        Since:
        Available in iOS 10.0 and later.
      • fromCGColor

        public static UIColor fromCGColor​(CGColor cgColor)
      • fromPatternImage

        public static UIColor fromPatternImage​(UIImage image)
      • fromCIColor

        public static UIColor fromCIColor​(CIColor ciColor)
        Since:
        Available in iOS 5.0 and later.
      • colorNamed

        public static UIColor colorNamed​(java.lang.String name)
        Since:
        Available in iOS 11.0 and later.
      • fromResourceBundle

        public static UIColor fromResourceBundle​(java.lang.String name,
                                                 NSBundle bundle,
                                                 UITraitCollection traitCollection)
        Since:
        Available in iOS 11.0 and later.
      • init

        protected long init​(NSCoder decoder)