Menu

[b84aab]: / src / platform / tizen / runtime.h  Maximize  Restore  History

Download this file

49 lines (38 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// This file is part of SmallBASIC
//
// Copyright(C) 2001-2013 Chris Warren-Smith.
//
// This program is distributed under the terms of the GPL v2.0 or later
// Download the GNU Public License (GPL) from www.gnu.org
//
#ifndef RUNTIME_H
#define RUNTIME_H
#include <FBase.h>
#include "platform/common/maapi.h"
#include "platform/common/interface.h"
#include "platform/common/ansiwidget.h"
#include "platform/common/system.h"
using namespace Tizen::App;
using namespace Tizen::Base::Collection;
using namespace Tizen::Base::Runtime;
using namespace Tizen::Ui;
struct RuntimeThread :
public System,
public Thread {
RuntimeThread();
~RuntimeThread();
result Construct(String &resourcePath, int w, int h);
void handleKey(MAEvent &event);
bool hasEvent();
MAEvent popEvent();
void pushEvent(MAEvent event);
MAEvent processEvents(int waitFlag);
void setExit(bool quit);
private:
Object *Run();
MAEvent getNextEvent();
String _appRootPath;
Mutex *_eventQueueLock;
Queue *_eventQueue;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.