Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
sk_app::Application Class Referenceabstract

#include <Application.h>

Inheritance diagram for sk_app::Application:
Viewer

Public Member Functions

virtual ~Application ()
 
virtual void onIdle ()=0
 

Static Public Member Functions

static ApplicationCreate (int argc, char **argv, void *platformData)
 

Detailed Description

Definition at line 13 of file Application.h.

Constructor & Destructor Documentation

◆ ~Application()

virtual sk_app::Application::~Application ( )
inlinevirtual

Definition at line 17 of file Application.h.

17{}

Member Function Documentation

◆ Create()

Application * Application::Create ( int  argc,
char **  argv,
void *  platformData 
)
static

Definition at line 447 of file editor_application.cpp.

447 {
448 std::unique_ptr<sk_app::Window> win(sk_app::Window::CreateNativeWindow(dat));
449 if (!win) {
450 SK_ABORT("CreateNativeWindow failed.");
451 }
452 std::unique_ptr<EditorApplication> app(new EditorApplication(std::move(win)));
453 (void)app->init(argc > 1 ? argv[1] : nullptr);
454 return app.release();
455}
#define SK_ABORT(message,...)
Definition: SkAssert.h:70
static Window * CreateNativeWindow(void *platformData)
char ** argv
Definition: library.h:9

◆ onIdle()

virtual void sk_app::Application::onIdle ( )
pure virtual

Implemented in Viewer.


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