Package apple.uikit

Class UIColor

    • Constructor Detail

      • UIColor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static UIColor alloc()
      • allocWithZone

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

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

        public static UIColor blackColor()
        0.0 white
      • blueColor

        public static UIColor blueColor()
        0.0, 0.0, 1.0 RGB
      • brownColor

        public static UIColor brownColor()
        0.6, 0.4, 0.2 RGB
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearColor

        public static UIColor clearColor()
        0.0 white, 0.0 alpha
      • colorWithCIColor

        public static UIColor colorWithCIColor​(CIColor ciColor)
      • colorWithDisplayP3RedGreenBlueAlpha

        public static UIColor colorWithDisplayP3RedGreenBlueAlpha​(double displayP3Red,
                                                                  double green,
                                                                  double blue,
                                                                  double alpha)
      • colorWithHueSaturationBrightnessAlpha

        public static UIColor colorWithHueSaturationBrightnessAlpha​(double hue,
                                                                    double saturation,
                                                                    double brightness,
                                                                    double alpha)
      • colorWithPatternImage

        public static UIColor colorWithPatternImage​(UIImage image)
      • colorWithRedGreenBlueAlpha

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

        public static UIColor colorWithWhiteAlpha​(double white,
                                                  double alpha)
        Convenience methods for creating colors
      • cyanColor

        public static UIColor cyanColor()
        0.0, 1.0, 1.0 RGB
      • darkGrayColor

        public static UIColor darkGrayColor()
        0.333 white
      • darkTextColor

        public static UIColor darkTextColor()
        for a light background
      • debugDescription_static

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

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

        public static UIColor grayColor()
        0.5 white
      • greenColor

        public static UIColor greenColor()
        0.0, 1.0, 0.0 RGB
      • groupTableViewBackgroundColor

        public static UIColor groupTableViewBackgroundColor()
        groupTableViewBackgroundColor is now the same as systemGroupedBackgroundColor.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • lightGrayColor

        public static UIColor lightGrayColor()
        0.667 white
      • lightTextColor

        public static UIColor lightTextColor()
        for a dark background
      • magentaColor

        public static UIColor magentaColor()
        1.0, 0.0, 1.0 RGB
      • new_objc

        public static java.lang.Object new_objc()
      • orangeColor

        public static UIColor orangeColor()
        1.0, 0.5, 0.0 RGB
      • purpleColor

        public static UIColor purpleColor()
        0.5, 0.0, 0.5 RGB
      • redColor

        public static UIColor redColor()
        1.0, 0.0, 0.0 RGB
      • resolveClassMethod

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

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

        @Deprecated
        public static UIColor scrollViewTexturedBackgroundColor()
        Deprecated.
      • 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()
      • underPageBackgroundColor

        @Deprecated
        public static UIColor underPageBackgroundColor()
        Deprecated.
      • version_static

        public static long version_static()
      • viewFlipsideBackgroundColor

        @Deprecated
        public static UIColor viewFlipsideBackgroundColor()
        Deprecated.
      • whiteColor

        public static UIColor whiteColor()
        1.0 white
      • yellowColor

        public static UIColor yellowColor()
        1.0, 1.0, 0.0 RGB
      • CIColor

        public CIColor CIColor()
      • colorWithAlphaComponent

        public UIColor colorWithAlphaComponent​(double alpha)
        Returns a color in the same color space as the receiver with the specified alpha component.
      • copyWithZone

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

        public boolean getHueSaturationBrightnessAlpha​(org.moe.natj.general.ptr.NFloatPtr hue,
                                                       org.moe.natj.general.ptr.NFloatPtr saturation,
                                                       org.moe.natj.general.ptr.NFloatPtr brightness,
                                                       org.moe.natj.general.ptr.NFloatPtr alpha)
      • getRedGreenBlueAlpha

        public boolean getRedGreenBlueAlpha​(org.moe.natj.general.ptr.NFloatPtr red,
                                            org.moe.natj.general.ptr.NFloatPtr green,
                                            org.moe.natj.general.ptr.NFloatPtr blue,
                                            org.moe.natj.general.ptr.NFloatPtr alpha)
      • getWhiteAlpha

        public boolean getWhiteAlpha​(org.moe.natj.general.ptr.NFloatPtr white,
                                     org.moe.natj.general.ptr.NFloatPtr alpha)
        Convenience methods for getting components. If the receiver is of a compatible color space, any non-NULL parameters are populated and 'YES' is returned. Otherwise, the parameters are left unchanged and 'NO' is returned.
      • initWithCIColor

        public UIColor initWithCIColor​(CIColor ciColor)
      • initWithDisplayP3RedGreenBlueAlpha

        public UIColor initWithDisplayP3RedGreenBlueAlpha​(double displayP3Red,
                                                          double green,
                                                          double blue,
                                                          double alpha)
      • initWithHueSaturationBrightnessAlpha

        public UIColor initWithHueSaturationBrightnessAlpha​(double hue,
                                                            double saturation,
                                                            double brightness,
                                                            double alpha)
      • initWithPatternImage

        public UIColor initWithPatternImage​(UIImage image)
      • initWithRedGreenBlueAlpha

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

        public UIColor initWithWhiteAlpha​(double white,
                                          double alpha)
        Initializers for creating colors
      • set

        public void set()
        Set the color: Sets the fill and stroke colors in the current drawing context. Should be implemented by subclassers.
      • setFill

        public void setFill()
        Set the fill or stroke colors individually. These should be implemented by subclassers.
      • setStroke

        public void setStroke()
      • _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
      • colorNamed

        public static UIColor colorNamed​(java.lang.String name)
        load from main bundle
      • colorNamedInBundleCompatibleWithTraitCollection

        public static UIColor colorNamedInBundleCompatibleWithTraitCollection​(java.lang.String name,
                                                                              NSBundle bundle,
                                                                              UITraitCollection traitCollection)
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(java.lang.String typeIdentifier)
      • itemProviderVisibilityForRepresentationWithTypeIdentifier

        public long itemProviderVisibilityForRepresentationWithTypeIdentifier​(java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        public static java.lang.Object objectWithItemProviderDataTypeIdentifierError​(NSData data,
                                                                                     java.lang.String typeIdentifier,
                                                                                     org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • writableTypeIdentifiersForItemProvider

        public NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
      • colorWithDynamicProvider

        public static UIColor colorWithDynamicProvider​(UIColor.Block_colorWithDynamicProvider dynamicProvider)
        Create a dynamic color with a provider. When methods are called on this color that need color component values, the provider is called with UITraitCollection.currentTraitCollection. The provider should use that trait collection to decide a more fundamental UIColor to return. As much as possible, use the given trait collection to make that decision, not other state.
      • labelColor

        public static UIColor labelColor()
        Foreground colors for static text and related elements.
      • linkColor

        public static UIColor linkColor()
        Foreground color for standard system links.
      • opaqueSeparatorColor

        public static UIColor opaqueSeparatorColor()
      • placeholderTextColor

        public static UIColor placeholderTextColor()
        Foreground color for placeholder text in controls or text fields or text views.
      • quaternaryLabelColor

        public static UIColor quaternaryLabelColor()
      • quaternarySystemFillColor

        public static UIColor quaternarySystemFillColor()
        quaternarySystemFillColor is appropriate for filling large areas containing complex content. Example: Expanded table cells.
      • resolvedColorWithTraitCollection

        public UIColor resolvedColorWithTraitCollection​(UITraitCollection traitCollection)
        Resolve any color to its most fundamental form (a non-dynamic color) for a specific trait collection.
      • secondaryLabelColor

        public static UIColor secondaryLabelColor()
      • secondarySystemBackgroundColor

        public static UIColor secondarySystemBackgroundColor()
      • secondarySystemFillColor

        public static UIColor secondarySystemFillColor()
        secondarySystemFillColor is appropriate for filling medium-size shapes. Example: The background of a switch.
      • secondarySystemGroupedBackgroundColor

        public static UIColor secondarySystemGroupedBackgroundColor()
      • separatorColor

        public static UIColor separatorColor()
        Foreground colors for separators (thin border or divider lines). `separatorColor` may be partially transparent, so it can go on top of any content. `opaqueSeparatorColor` is intended to look similar, but is guaranteed to be opaque, so it will completely cover anything behind it. Depending on the situation, you may need one or the other.
      • systemBackgroundColor

        public static UIColor systemBackgroundColor()
        We provide two design systems (also known as "stacks") for structuring an iOS app's backgrounds. Each stack has three "levels" of background colors. The first color is intended to be the main background, farthest back. Secondary and tertiary colors are layered on top of the main background, when appropriate. Inside of a discrete piece of UI, choose a stack, then use colors from that stack. We do not recommend mixing and matching background colors between stacks. The foreground colors above are designed to work in both stacks. 1. systemBackground Use this stack for views with standard table views, and designs which have a white primary background in light mode.
      • systemBlueColor

        public static UIColor systemBlueColor()
      • systemFillColor

        public static UIColor systemFillColor()
        Fill colors for UI elements. These are meant to be used over the background colors, since their alpha component is less than 1. systemFillColor is appropriate for filling thin and small shapes. Example: The track of a slider.
      • systemGray2Color

        public static UIColor systemGray2Color()
        The numbered variations, systemGray2 through systemGray6, are grays which increasingly trend away from systemGray and in the direction of systemBackgroundColor. In UIUserInterfaceStyleLight: systemGray1 is slightly lighter than systemGray. systemGray2 is lighter than that, and so on. In UIUserInterfaceStyleDark: systemGray1 is slightly darker than systemGray. systemGray2 is darker than that, and so on.
      • systemGray3Color

        public static UIColor systemGray3Color()
      • systemGray4Color

        public static UIColor systemGray4Color()
      • systemGray5Color

        public static UIColor systemGray5Color()
      • systemGray6Color

        public static UIColor systemGray6Color()
      • systemGrayColor

        public static UIColor systemGrayColor()
        Shades of gray. systemGray is the base gray color.
      • systemGreenColor

        public static UIColor systemGreenColor()
      • systemGroupedBackgroundColor

        public static UIColor systemGroupedBackgroundColor()
        2. systemGroupedBackground Use this stack for views with grouped content, such as grouped tables and platter-based designs. These are like grouped table views, but you may use these colors in places where a table view wouldn't make sense.
      • systemIndigoColor

        public static UIColor systemIndigoColor()
      • systemOrangeColor

        public static UIColor systemOrangeColor()
      • systemPinkColor

        public static UIColor systemPinkColor()
      • systemPurpleColor

        public static UIColor systemPurpleColor()
      • systemRedColor

        public static UIColor systemRedColor()
        Some colors that are used by system elements and applications. These return named colors whose values may vary between different contexts and releases. Do not make assumptions about the color spaces or actual colors used.
      • systemTealColor

        public static UIColor systemTealColor()
      • systemYellowColor

        public static UIColor systemYellowColor()
      • tertiaryLabelColor

        public static UIColor tertiaryLabelColor()
      • tertiarySystemBackgroundColor

        public static UIColor tertiarySystemBackgroundColor()
      • tertiarySystemFillColor

        public static UIColor tertiarySystemFillColor()
        tertiarySystemFillColor is appropriate for filling large shapes. Examples: Input fields, search bars, buttons.
      • tertiarySystemGroupedBackgroundColor

        public static UIColor tertiarySystemGroupedBackgroundColor()
      • accessibilityName

        public java.lang.String accessibilityName()
        Provides an accessible name for the UIColor for use in accessibility attribute APIs, such as when using accessibilityLabel.