Class: NSColor
- Defined in:
- ext/accessibility/highlighter/highlighter.c,
ext/accessibility/highlighter/highlighter.c
Overview
A subset of Cocoa's NSColor
class.
See Apple's Developer Reference for documentation on the methods available in this class.
Class Method Summary collapse
- .blackColor ⇒ NSColor
- .blueColor ⇒ NSColor
- .brownColor ⇒ NSColor
- .clearColor ⇒ NSColor
- .cyanColor ⇒ NSColor
- .darkGrayColor ⇒ NSColor
- .grayColor ⇒ NSColor
- .greenColor ⇒ NSColor
- .lightGrayColor ⇒ NSColor
- .magentaColor ⇒ NSColor
- .orangeColor ⇒ NSColor
- .purpleColor ⇒ NSColor
- .redColor ⇒ NSColor
- .whiteColor ⇒ NSColor
- .yellowColor ⇒ NSColor
Instance Method Summary collapse
Class Method Details
.blackColor ⇒ NSColor
145 |
# File 'ext/accessibility/highlighter/highlighter.c', line 145
static VALUE rb_color_black(VALUE self) { return wrap_color([NSColor blackColor]); }
|
.blueColor ⇒ NSColor
149 |
# File 'ext/accessibility/highlighter/highlighter.c', line 149
static VALUE rb_color_blue(VALUE self) { return wrap_color([NSColor blueColor]); }
|
.brownColor ⇒ NSColor
153 |
# File 'ext/accessibility/highlighter/highlighter.c', line 153
static VALUE rb_color_brown(VALUE self) { return wrap_color([NSColor brownColor]); }
|
.clearColor ⇒ NSColor
157 |
# File 'ext/accessibility/highlighter/highlighter.c', line 157
static VALUE rb_color_clear(VALUE self) { return wrap_color([NSColor clearColor]); }
|
.cyanColor ⇒ NSColor
161 |
# File 'ext/accessibility/highlighter/highlighter.c', line 161
static VALUE rb_color_cyan(VALUE self) { return wrap_color([NSColor cyanColor]); }
|
.darkGrayColor ⇒ NSColor
165 |
# File 'ext/accessibility/highlighter/highlighter.c', line 165
static VALUE rb_color_dark_gray(VALUE self) { return wrap_color([NSColor darkGrayColor]); }
|
.grayColor ⇒ NSColor
169 |
# File 'ext/accessibility/highlighter/highlighter.c', line 169
static VALUE rb_color_gray(VALUE self) { return wrap_color([NSColor grayColor]); }
|
.greenColor ⇒ NSColor
173 |
# File 'ext/accessibility/highlighter/highlighter.c', line 173
static VALUE rb_color_green(VALUE self) { return wrap_color([NSColor greenColor]); }
|
.lightGrayColor ⇒ NSColor
177 |
# File 'ext/accessibility/highlighter/highlighter.c', line 177
static VALUE rb_color_light_gray(VALUE self) { return wrap_color([NSColor lightGrayColor]); }
|
.magentaColor ⇒ NSColor
181 |
# File 'ext/accessibility/highlighter/highlighter.c', line 181
static VALUE rb_color_magenta(VALUE self) { return wrap_color([NSColor magentaColor]); }
|
.orangeColor ⇒ NSColor
185 |
# File 'ext/accessibility/highlighter/highlighter.c', line 185
static VALUE rb_color_orange(VALUE self) { return wrap_color([NSColor orangeColor]); }
|
.purpleColor ⇒ NSColor
189 |
# File 'ext/accessibility/highlighter/highlighter.c', line 189
static VALUE rb_color_purple(VALUE self) { return wrap_color([NSColor purpleColor]); }
|
.redColor ⇒ NSColor
193 |
# File 'ext/accessibility/highlighter/highlighter.c', line 193
static VALUE rb_color_red(VALUE self) { return wrap_color([NSColor redColor]); }
|
.whiteColor ⇒ NSColor
197 |
# File 'ext/accessibility/highlighter/highlighter.c', line 197
static VALUE rb_color_white(VALUE self) { return wrap_color([NSColor whiteColor]); }
|
.yellowColor ⇒ NSColor
201 |
# File 'ext/accessibility/highlighter/highlighter.c', line 201
static VALUE rb_color_yellow(VALUE self) { return wrap_color([NSColor yellowColor]); }
|
Instance Method Details
#==(other) ⇒ Boolean
213 214 215 216 217 218 219 220 221 222 |
# File 'ext/accessibility/highlighter/highlighter.c', line 213
static
VALUE
rb_color_equality(VALUE self, VALUE other)
{
if (CLASS_OF(other) == rb_cColor)
if ([unwrap_color(self) isEqual:unwrap_color(other)])
return Qtrue;
return Qfalse;
}
|