NTCustomPopup
@interface NTCustomPopup : NTPopup
A popup with user defined handler. The handler is responsible for drawing the bitmap for the popup and can also respond to touch event.
-
Constructs a CustomPopup object with the specified style and attaches it to a billboard element.
Declaration
Objective-C
- (id)initWithBaseBillboard:(NTBillboard *)baseBillboard style:(NTPopupStyle *)style popupHandler:(NTCustomPopupHandler *)popupHandler;Parameters
baseBillboardThe billboard this popup will be attached to.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Constructs a CustomPopup object from a geometry object and a style.
Declaration
Objective-C
- (id)initWithGeometry:(NTGeometry *)geometry style:(NTPopupStyle *)style popupHandler:(NTCustomPopupHandler *)popupHandler;Parameters
geometryThe geometry object that defines the location of this popup.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Constructs a CustomPopup object from a map position and a style.
Declaration
Objective-C
- (id)initWithPos:(NTMapPos *)pos style:(NTPopupStyle *)style popupHandler:(NTCustomPopupHandler *)popupHandler;Parameters
posThe map position that defines the location of this popup.
styleThe style that defines what this popup looks like.
popupHandlerThe handler to use for the popup.
-
Returns the handler used for the popup.
Declaration
Objective-C
- (NTCustomPopupHandler *)getPopupHandler;Return Value
The popup handler responsible for drawing the popup and handling click events.
-
Undocumented
Declaration
Objective-C
- (BOOL)processClick:(enum NTClickType)clickType clickPos:(NTMapPos *)clickPos elementClickPos:(NTScreenPos *)elementClickPos; -
Undocumented
Declaration
Objective-C
- (NTBitmap *)drawBitmap:(NTScreenPos *)anchorScreenPos screenWidth:(float)screenWidth screenHeight:(float)screenHeight dpToPX:(float)dpToPX; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTCustomPopup Class Reference