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
422 423 424 425 426 427 |
# File 'ext/accessibility/extras/extras.c', line 422
static
VALUE
rb_screen_main(VALUE self)
{
return wrap_screen([NSScreen mainScreen]);
}
|
.screens ⇒ Object
429 430 431 432 433 434 |
# File 'ext/accessibility/extras/extras.c', line 429
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
436 437 438 439 440 441 |
# File 'ext/accessibility/extras/extras.c', line 436
static
VALUE
rb_screen_frame(VALUE self)
{
return wrap_rect([unwrap_screen(self) frame]);
}
|