Class: NSScreen
- Defined in:
- ext/accessibility/extras/extras.c,
ext/accessibility/extras/extras.c
Overview
A small subset of Cocoa's NSScreen
class. Methods that might be
useful to have have been bridged.
See Apple's Developer Reference for documentation on the methods available in this class.
Class Method Summary collapse
- .mainScreen ⇒ Object
- .screens ⇒ Object
-
.wakeup ⇒ Object
our custom method.
Instance Method Summary collapse
-
#frame ⇒ Object
our custom method.
Class Method Details
.mainScreen ⇒ Object
474 475 476 477 478 479 |
# File 'ext/accessibility/extras/extras.c', line 474
static
VALUE
rb_screen_main(VALUE self)
{
return wrap_screen([NSScreen mainScreen]);
}
|
.screens ⇒ Object
481 482 483 484 485 486 |
# File 'ext/accessibility/extras/extras.c', line 481
static
VALUE
rb_screen_screens(VALUE self)
{
return wrap_array_screens((CFArrayRef)[NSScreen screens]);
}
|
.wakeup ⇒ Object
our custom method
Instance Method Details
#frame ⇒ Object
our custom method
488 489 490 491 492 493 |
# File 'ext/accessibility/extras/extras.c', line 488
static
VALUE
rb_screen_frame(VALUE self)
{
return wrap_rect([unwrap_screen(self) frame]);
}
|