Color data with opacity

Introduced properties

init black_color: UIColor

ios :: UIColor :: black_color

Wraps: [UIColor blackColor]
init blue_color: UIColor

ios :: UIColor :: blue_color

Wraps: [UIColor blueColor]
init brown_color: UIColor

ios :: UIColor :: brown_color

Wraps: [UIColor brownColor]
init clear_color: UIColor

ios :: UIColor :: clear_color

Wraps: [UIColor clearColor]
fun color_with_alpha_component(alpha: Float): UIColor

ios :: UIColor :: color_with_alpha_component

Wraps: [self colorWithAlphaComponent:(CGFloat)alpha]
init cyan_color: UIColor

ios :: UIColor :: cyan_color

Wraps: [UIColor cyanColor]
init dark_gray_color: UIColor

ios :: UIColor :: dark_gray_color

Wraps: [UIColor darkGrayColor]
init dark_text_color: UIColor

ios :: UIColor :: dark_text_color

Wraps: [UIColor darkTextColor]
init gray_color: UIColor

ios :: UIColor :: gray_color

Wraps: [UIColor grayColor]
init green_color: UIColor

ios :: UIColor :: green_color

Wraps: [UIColor greenColor]
init group_table_view_background_color: UIColor

ios :: UIColor :: group_table_view_background_color

Wraps: [UIColor groupTableViewBackgroundColor]
init init_with_hue_saturation_brightness_alpha(hue: Float, saturation: Float, brightness: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_hue_saturation_brightness_alpha

Wraps: [self initWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha]
init init_with_red_green_blue_alpha(red: Float, green: Float, blue: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_red_green_blue_alpha

Wraps: [self initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha]
init init_with_white_alpha(white: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_white_alpha

Wraps: [self initWithWhite:(CGFloat)white alpha:(CGFloat)alpha]
init light_gray_color: UIColor

ios :: UIColor :: light_gray_color

Wraps: [UIColor lightGrayColor]
init light_text_color: UIColor

ios :: UIColor :: light_text_color

Wraps: [UIColor lightTextColor]
init magenta_color: UIColor

ios :: UIColor :: magenta_color

Wraps: [UIColor magentaColor]
init orange_color: UIColor

ios :: UIColor :: orange_color

Wraps: [UIColor orangeColor]
init purple_color: UIColor

ios :: UIColor :: purple_color

Wraps: [UIColor purpleColor]
init red_color: UIColor

ios :: UIColor :: red_color

Wraps: [UIColor redColor]
fun set

ios :: UIColor :: set

Wraps: [self set]
fun set_fill

ios :: UIColor :: set_fill

Wraps: [self setFill]
fun set_stroke

ios :: UIColor :: set_stroke

Wraps: [self setStroke]
init white_color: UIColor

ios :: UIColor :: white_color

Wraps: [UIColor whiteColor]
init yellow_color: UIColor

ios :: UIColor :: yellow_color

Wraps: [UIColor yellowColor]

Redefined properties

redef type SELF: UIColor

ios $ UIColor :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun address_is_null: Bool

core :: Pointer :: address_is_null

Is the address behind this Object at NULL?
init black_color: UIColor

ios :: UIColor :: black_color

Wraps: [UIColor blackColor]
init blue_color: UIColor

ios :: UIColor :: blue_color

Wraps: [UIColor blueColor]
init brown_color: UIColor

ios :: UIColor :: brown_color

Wraps: [UIColor brownColor]
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
init clear_color: UIColor

ios :: UIColor :: clear_color

Wraps: [UIColor clearColor]
fun color_with_alpha_component(alpha: Float): UIColor

ios :: UIColor :: color_with_alpha_component

Wraps: [self colorWithAlphaComponent:(CGFloat)alpha]
init cyan_color: UIColor

ios :: UIColor :: cyan_color

Wraps: [UIColor cyanColor]
init dark_gray_color: UIColor

ios :: UIColor :: dark_gray_color

Wraps: [UIColor darkGrayColor]
init dark_text_color: UIColor

ios :: UIColor :: dark_text_color

Wraps: [UIColor darkTextColor]
fun free

core :: Pointer :: free

Free the memory pointed by this pointer
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
init gray_color: UIColor

ios :: UIColor :: gray_color

Wraps: [UIColor grayColor]
init green_color: UIColor

ios :: UIColor :: green_color

Wraps: [UIColor greenColor]
init group_table_view_background_color: UIColor

ios :: UIColor :: group_table_view_background_color

Wraps: [UIColor groupTableViewBackgroundColor]
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

init init_with_hue_saturation_brightness_alpha(hue: Float, saturation: Float, brightness: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_hue_saturation_brightness_alpha

Wraps: [self initWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha]
init init_with_red_green_blue_alpha(red: Float, green: Float, blue: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_red_green_blue_alpha

Wraps: [self initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha]
init init_with_white_alpha(white: Float, alpha: Float): UIColor

ios :: UIColor :: init_with_white_alpha

Wraps: [self initWithWhite:(CGFloat)white alpha:(CGFloat)alpha]
fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
init light_gray_color: UIColor

ios :: UIColor :: light_gray_color

Wraps: [UIColor lightGrayColor]
init light_text_color: UIColor

ios :: UIColor :: light_text_color

Wraps: [UIColor lightTextColor]
init magenta_color: UIColor

ios :: UIColor :: magenta_color

Wraps: [UIColor magentaColor]
init nul: Pointer

core :: Pointer :: nul

C NULL pointer
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
init orange_color: UIColor

ios :: UIColor :: orange_color

Wraps: [UIColor orangeColor]
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
init purple_color: UIColor

ios :: UIColor :: purple_color

Wraps: [UIColor purpleColor]
init red_color: UIColor

ios :: UIColor :: red_color

Wraps: [UIColor redColor]
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
fun set

ios :: UIColor :: set

Wraps: [self set]
fun set_fill

ios :: UIColor :: set_fill

Wraps: [self setFill]
fun set_stroke

ios :: UIColor :: set_stroke

Wraps: [self setStroke]
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
init white_color: UIColor

ios :: UIColor :: white_color

Wraps: [UIColor whiteColor]
init yellow_color: UIColor

ios :: UIColor :: yellow_color

Wraps: [UIColor yellowColor]
package_diagram ios::UIColor UIColor cocoa::NSObject NSObject ios::UIColor->cocoa::NSObject core::Pointer Pointer cocoa::NSObject->core::Pointer ...core::Pointer ... ...core::Pointer->core::Pointer

Ancestors

interface Object

core :: Object

The root of the class hierarchy.
extern class Pointer

core :: Pointer

Pointer classes are used to manipulate extern C structures.

Parents

extern class NSObject

cocoa :: NSObject

Base of the Foundation framework class hierarchy

Class definitions

ios $ UIColor
# Color data with opacity
extern class UIColor in "ObjC" `{ UIColor * `}
	super NSObject

	# Wraps: `[self initWithWhite:(CGFloat)white alpha:(CGFloat)alpha]`
	new init_with_white_alpha(white, alpha: Float) in "ObjC" `{
		return [[UIColor alloc] initWithWhite: white alpha: alpha];
	`}

	# Wraps: `[self initWithHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha]`
	new init_with_hue_saturation_brightness_alpha(hue, saturation, brightness, alpha: Float) in "ObjC" `{
		return [[UIColor alloc] initWithHue: hue saturation: saturation brightness: brightness alpha: alpha];
	`}

	# Wraps: `[self initWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha]`
	new init_with_red_green_blue_alpha(red, green, blue, alpha: Float) in "ObjC" `{
		return [[UIColor alloc] initWithRed: red green: green blue: blue alpha: alpha];
	`}

	# Wraps: `[self initWithCGColor:(CGColorRef)cgColor]`
	#new init_with_cg_color(cg_color: CGColorRef) in "ObjC" `{
	#	return [[UIColor alloc] initWithCGColor: cg_color];
	#`}

	# Wraps: `[self initWithPatternImage:(UIImage)image]`
	#new init_with_pattern_image(image: UIImage) in "ObjC" `{
	#	return [[UIColor alloc] initWithPatternImage: image];
	#`}

	# Wraps: `[self initWithCIColor:(CIColor)ciColor]`
	#new init_with_ci_color(ci_color: CIColor) in "ObjC" `{
	#	return [[UIColor alloc] initWithCIColor: ci_color];
	#`}

	# Wraps: `[UIColor blackColor]`
	new black_color in "ObjC" `{ return [UIColor blackColor]; `}

	# Wraps: `[UIColor darkGrayColor]`
	new dark_gray_color in "ObjC" `{ return [UIColor darkGrayColor]; `}

	# Wraps: `[UIColor lightGrayColor]`
	new light_gray_color in "ObjC" `{ return [UIColor lightGrayColor]; `}

	# Wraps: `[UIColor whiteColor]`
	new white_color in "ObjC" `{ return [UIColor whiteColor]; `}

	# Wraps: `[UIColor grayColor]`
	new gray_color in "ObjC" `{ return [UIColor grayColor]; `}

	# Wraps: `[UIColor redColor]`
	new red_color in "ObjC" `{ return [UIColor redColor]; `}

	# Wraps: `[UIColor greenColor]`
	new green_color in "ObjC" `{ return [UIColor greenColor]; `}

	# Wraps: `[UIColor blueColor]`
	new blue_color in "ObjC" `{ return [UIColor blueColor]; `}

	# Wraps: `[UIColor cyanColor]`
	new cyan_color in "ObjC" `{ return [UIColor cyanColor]; `}

	# Wraps: `[UIColor yellowColor]`
	new yellow_color in "ObjC" `{ return [UIColor yellowColor]; `}

	# Wraps: `[UIColor magentaColor]`
	new magenta_color in "ObjC" `{ return [UIColor magentaColor]; `}

	# Wraps: `[UIColor orangeColor]`
	new orange_color in "ObjC" `{ return [UIColor orangeColor]; `}

	# Wraps: `[UIColor purpleColor]`
	new purple_color in "ObjC" `{ return [UIColor purpleColor]; `}

	# Wraps: `[UIColor brownColor]`
	new brown_color in "ObjC" `{ return [UIColor brownColor]; `}

	# Wraps: `[UIColor clearColor]`
	new clear_color in "ObjC" `{ return [UIColor clearColor]; `}

	# Wraps: `UIColor.CGColor`
	#fun cg_color: CGColorRef in "ObjC" `{
	#	return [self CGColor];
	#`}

	# Wraps: `UIColor.CIColor`
	#fun ci_color: CIColor in "ObjC" `{
	#	return [self CIColor];
	#`}

	# Wraps: `[self set]`
	fun set in "ObjC" `{ [self set]; `}

	# Wraps: `[self setFill]`
	fun set_fill in "ObjC" `{ [self setFill]; `}

	# Wraps: `[self setStroke]`
	fun set_stroke in "ObjC" `{ [self setStroke]; `}

	# Wraps: `[self getWhite:(CGFloat)white alpha:(CGFloat)alpha]`
	#fun get_white_alpha(white: Float, alpha: Float): Bool in "ObjC" `{
	#	return [self getWhite: white alpha: alpha];
	#`}

	# Wraps: `[self getHue:(CGFloat)hue saturation:(CGFloat)saturation brightness:(CGFloat)brightness alpha:(CGFloat)alpha]`
	#fun get_hue_saturation_brightness_alpha(hue: Float, saturation: Float, brightness: Float, alpha: Float): Bool in "ObjC" `{
	#	return [self getHue: hue saturation: saturation brightness: brightness alpha: alpha];
	#`}

	# Wraps: `[self getRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha]`
	#fun get_red_green_blue_alpha(red: Float, green: Float, blue: Float, alpha: Float): Bool in "ObjC" `{
	#	return [self getRed: red green: green blue: blue alpha: alpha];
	#`}

	# Wraps: `[self colorWithAlphaComponent:(CGFloat)alpha]`
	fun color_with_alpha_component(alpha: Float): UIColor in "ObjC" `{
		return [self colorWithAlphaComponent: alpha];
	`}

	# Wraps: `[self CGColor]`
	#fun cg_color: CGColorRef in "ObjC" `{
	#	return [self CGColor];
	#`}

	# Wraps: `[UIColor groupTableViewBackgroundColor]`
	new group_table_view_background_color in "ObjC" `{ return [UIColor groupTableViewBackgroundColor]; `}

	# Wraps: `[UIColor lightTextColor]`
	new light_text_color in "ObjC" `{ return [UIColor lightTextColor]; `}

	# Wraps: `[UIColor darkTextColor]`
	new dark_text_color in "ObjC" `{ return [UIColor darkTextColor]; `}
end
lib/ios/ui/uikit.nit:290,1--421,3