AppView  0.8.1
C++ AppView API
AppView2D Class Reference

App View. Starts and renders a 3rd party application. More...

#include <app_view_2d.hpp>

Inherits AppViewConceptImpl< Node2D, AppView2D >.

Public Types

using ConceptClass = AppViewConceptImpl< Node2D, AppView2D >
 

Public Member Functions

void onFinishApp (FinishAppMessageArguments &messageArguments)
 
void onNavigateBack (const NavigateBackMessageArguments &messageArguments)
 
void onStartApp (const StartAppMessageArguments &messageArguments)
 
void onUpdateVirtualDisplay (const UpdateVirtualDisplayMessageArguments &messageArguments)
 

Static Public Member Functions

static AppView2DSharedPtr create (Domain *domain, string_view name)
 
- Static Public Member Functions inherited from AppViewConceptImpl< Node2D, AppView2D >
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from AppViewConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Protected Member Functions

 AppView2D (Domain *domain, string_view name)
 
bool calculateHitUV (const TouchPoint &touchPoint, Vector2 &outHitUV) override
 
Vector2 measureOverride (Vector2) override
 
void onAppViewTextureChanged () override
 AppView::onAppViewTextureChanged() implementation. More...
 
void onAttached () override
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged() implementation. More...
 
void setupMaterialOverride () override
 
void updateRenderOverride () override
 
- Protected Member Functions inherited from AppViewConceptImpl< Node2D, AppView2D >
 AppViewConceptImpl (Domain *domain, string_view name)
 
MaterialSharedPtr getAppViewMaterial ()
 
TextureSharedPtr getAppViewTexture ()
 
void handleFinishAppMessage (FinishAppMessageArguments &messageArguments)
 
void handleNavigateBackMessage (const NavigateBackMessageArguments &messageArguments)
 
void handleStartAppMessage (const StartAppMessageArguments &messageArguments)
 
void handleUpdateVirtualDisplayMessage (const UpdateVirtualDisplayMessageArguments &messageArguments)
 
void initialize ()
 
void onAttached () override
 
void onDetached () override
 
void onFrameAvailable ()
 Kanzi calls this function from the main UI thread when a new frame is available. More...
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation. More...
 

Static Protected Member Functions

static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Additional Inherited Members

- Static Public Attributes inherited from AppViewConcept
static PropertyType< string > AppNameProperty
 
static PropertyType< string > VirtualDisplayNameProperty
 
static PropertyType< int > VirtualDisplayWidthProperty
 
static PropertyType< int > VirtualDisplayHeightProperty
 
static PropertyType< int > VirtualDisplayDensityProperty
 
static PropertyType< bool > CanExitAppProperty
 
static PropertyType< ResourceSharedPtr > OverrideMaterialProperty
 
static PropertyType< string > MessageArgumentAppNameProperty
 
static PropertyType< bool > MessageArgumentCanExitAppProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayWidthProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayHeightProperty
 
static PropertyType< int > MessageArgumentVirtualDisplayDensityProperty
 
static MessageType< StartAppMessageArgumentsStartAppMessage
 
static MessageType< FinishAppMessageArgumentsFinishAppMessage
 
static MessageType< NavigateBackMessageArgumentsNavigateBackMessage
 
static MessageType< UpdateVirtualDisplayMessageArgumentsUpdateVirtualDisplayMessage
 
static MessageType< MessageArguments > PauseAppMessage
 
static MessageType< MessageArguments > ResumeAppMessage
 

Detailed Description

App View. Starts and renders a 3rd party application.

Member Typedef Documentation

Constructor & Destructor Documentation

AppView2D ( Domain *  domain,
string_view  name 
)
explicitprotected

Member Function Documentation

bool calculateHitUV ( const TouchPoint &  touchPoint,
Vector2 &  outHitUV 
)
overrideprotectedvirtual
static AppView2DSharedPtr create ( Domain *  domain,
string_view  name 
)
static
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ( )
staticprotected
Vector2 measureOverride ( Vector2  )
overrideprotected
void onAppViewTextureChanged ( )
overrideprotectedvirtual

AppView::onAppViewTextureChanged() implementation.

Implements AppViewConceptImpl< Node2D, AppView2D >.

void onAttached ( )
overrideprotected
void onFinishApp ( FinishAppMessageArguments messageArguments)
void onNavigateBack ( const NavigateBackMessageArguments messageArguments)
void onNodePropertyChanged ( AbstractPropertyType  propertyType,
PropertyNotificationReason  reason 
)
overrideprotected

Node::onNodePropertyChanged() implementation.

void onStartApp ( const StartAppMessageArguments messageArguments)
void onUpdateVirtualDisplay ( const UpdateVirtualDisplayMessageArguments messageArguments)
void setupMaterialOverride ( )
overrideprotectedvirtual
void updateRenderOverride ( )
overrideprotected