Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Boxed Class

sohocoke edited this page · 2 revisions

Boxed classes wrap struct types defined in Cocoa, such as NSPoint, NSRect etc. Boxed classes also provide information about the wrapped struct.

Methods in Boxed Class

Boxed.type

Returns a structure type information.

  • type -> String
    • [RETURN]
      • Returns a structure type information.
>> framework 'Cocoa'
>> NSRect.type
=> "{CGRect={CGPoint=dd}{CGSize=dd}}"

Boxed.opaque?

Returns whether structure is opaque.

  • opaque? -> bool
    • [RETURN]
      • Returns a true if structure is opaque. Otherwise, returns a false.
>> framework 'Cocoa'
>> NSRect.opaque?
=> false
>> NSModalSession.opaque?
=> true
>> 
Something went wrong with that request. Please try again.