Loading...
Searching...
No Matches

Rectangle on the device screen, in screen pixels (same units as ScreenPoint). More...

#include <com/navigine/idl/objc/NCScreenRect.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithTopLeft:bottomRight:
 Default constructor for class NCScreenRect.
 

Class Methods

(nonnull instancetype) + screenRectWithTopLeft:bottomRight:
 Factory method for class NCScreenRect.
 

Properties

CGPoint topLeft
 Top-left corner ScreenPoint.
 
CGPoint bottomRight
 Bottom-right corner ScreenPoint.
 

Detailed Description

Rectangle on the device screen, in screen pixels (same units as ScreenPoint).

Used as LocationWindow.focusRect and with getEnclosingCameraWithFocus so chrome (floor selector, follow-me, POI card) does not cover the fitted geometry. Null / unset means the full viewport.

Origin is the top-left of the map view; +x right, +y down.

Definition at line 23 of file NCScreenRect.h.

Method Documentation

◆ initWithTopLeft:bottomRight:

- (nonnull instancetype) initWithTopLeft: (CGPoint) topLeft
bottomRight: (CGPoint) bottomRight 

Default constructor for class NCScreenRect.

◆ screenRectWithTopLeft:bottomRight:

+ (nonnull instancetype) screenRectWithTopLeft: (CGPoint) topLeft
bottomRight: (CGPoint) bottomRight 

Factory method for class NCScreenRect.

Property Documentation

◆ bottomRight

- (CGPoint) bottomRight
readnonatomicassign

Bottom-right corner ScreenPoint.

Definition at line 45 of file NCScreenRect.h.

◆ topLeft

- (CGPoint) topLeft
readnonatomicassign

Top-left corner ScreenPoint.

Definition at line 40 of file NCScreenRect.h.


The documentation for this class was generated from the following file: