Class: NSScreen

Inherits:
Object show all
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

Instance Method Summary collapse

Class Method Details

.mainScreenObject



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]);
}

.screensObject



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]);
}

.wakeupObject

our custom method

Instance Method Details

#frameObject

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]);
}