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



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

.screensObject



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

.wakeupObject

our custom method

Instance Method Details

#frameObject

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