ERIS CORE

◆ AppWren()

AppWren::AppWren ( )
inline

Definition at line 37 of file AppWren.h.

37  :AppBaseClass(){
38  strcpy(name,"AppWren");
39  strcpy(img_filename,"");
40  strcpy(img_path,"");
41  strcpy(wren_module_name,"");
42  update_priority = 5;
43  surface_mempool = NULL;
44  image_loaded = false;
45  h_slot0 = 0;
46  useNativeFS = true;
47  vm = 0;
48  h_render = 0;
49  h_update = 0;
50  h_onFocus = 0;
51  h_onFocusLost = 0;
52  h_onTouch = 0;
53  h_onTouchDrag = 0;
54  h_onTouchRelease = 0;
55  h_onAnalog1 = 0;
56  h_onAnalog2 = 0;
57  h_onAnalog3 = 0;
58  h_onAnalog4 = 0;
59  h_messageHandler = 0;
60  compile_only = false;
61  save_module = false;
62  reboot_request = false;
63  enable_call_forwarding = false;
64  is_pressed = false;
65  show_active = false;
66  using_image = true;
67  time_active = 0;
68  surface_cache = NULL;
69  module_load_buffer = NULL;
70 
71  vmConstructor(g_wrenScript);
72  widget_width = 64;
73  widget_height = 64;
74  widget_origin_x = 0;
75  widget_origin_y = 0;
76  width = SCREEN_WIDTH;
77  height = SCREEN_HEIGHT;
78  origin_x = 0;
79  origin_y = 0;
80  //init the ram drive first (fixed size)
81  wren_file_system.begin(WREN_VM_FILE_SYSTEM_SIZE);//init the shared ext_ram drive
82  wren_file_system.quickFormat();
83  wren_file_system.mkdir("system");//add a system folder
84  wren_file = 0;
85  //surface_mempool = (uint16_t*)malloc(sizeof(uint16_t)*128*128);
86  //subscribe to MIDI messages
87  am->sendMessage(this,"MIDI","SUB");
88 
89  };
AppManager * am
Definition: AppBaseClass.h:38
int16_t widget_origin_y
Definition: AppBaseClass.h:70
int16_t widget_height
Definition: AppBaseClass.h:72
int16_t height
Definition: AppBaseClass.h:68
int16_t width
Definition: AppBaseClass.h:67
int16_t origin_y
Definition: AppBaseClass.h:66
char name[MAX_NAME_LENGTH]
Definition: AppBaseClass.h:74
int16_t widget_origin_x
Definition: AppBaseClass.h:69
uint16_t update_priority
Definition: AppBaseClass.h:52
int16_t origin_x
Definition: AppBaseClass.h:65
int16_t widget_width
Definition: AppBaseClass.h:71
bool sendMessage(AppBaseClass *sender, const char *to_app, const char *message)
provides an interface for apps to send messages to other apps
Definition: AppManager.cpp:469
char img_path[MAX_TEXT_LENGTH]
Definition: AppWren.h:767
char wren_module_name[MAX_TEXT_LENGTH]
Definition: AppWren.h:768
WrenHandle * h_onFocus
Definition: AppWren.h:784
WrenHandle * h_onAnalog4
Definition: AppWren.h:792
bool using_image
Definition: AppWren.h:773
Surface * surface_cache
Definition: AppWren.h:770
WrenHandle * h_update
Definition: AppWren.h:783
bool image_loaded
Definition: AppWren.h:774
WrenHandle * h_messageHandler
Definition: AppWren.h:793
bool compile_only
Definition: AppWren.h:759
bool show_active
Definition: AppWren.h:776
bool reboot_request
Definition: AppWren.h:764
WrenHandle * h_onTouchRelease
Definition: AppWren.h:788
bool save_module
Definition: AppWren.h:763
bool is_pressed
Definition: AppWren.h:772
bool enable_call_forwarding
Definition: AppWren.h:765
File wren_file
Definition: AppWren.h:34
char * module_load_buffer
Definition: AppWren.h:769
WrenHandle * h_render
Definition: AppWren.h:782
WrenHandle * h_onTouchDrag
Definition: AppWren.h:787
bool useNativeFS
Definition: AppWren.h:35
WrenVM * vm
Definition: AppWren.h:780
elapsedMillis time_active
Definition: AppWren.h:775
WrenHandle * h_onFocusLost
Definition: AppWren.h:785
WrenHandle * h_onAnalog1
Definition: AppWren.h:789
WrenHandle * h_slot0
Definition: AppWren.h:781
uint16_t * surface_mempool
Definition: AppWren.h:771
WrenHandle * h_onTouch
Definition: AppWren.h:786
WrenHandle * h_onAnalog3
Definition: AppWren.h:791
LittleFS_RAM wren_file_system
Definition: AppWren.h:33
WrenHandle * h_onAnalog2
Definition: AppWren.h:790
char img_filename[MAX_TEXT_LENGTH]
Definition: AppWren.h:766
void vmConstructor(const char *initial_script)
start, load and configure the handles of the VM
Definition: AppWren.cpp:1435

References AppBaseClass::am, compile_only, enable_call_forwarding, h_messageHandler, h_onAnalog1, h_onAnalog2, h_onAnalog3, h_onAnalog4, h_onFocus, h_onFocusLost, h_onTouch, h_onTouchDrag, h_onTouchRelease, h_render, h_slot0, h_update, AppBaseClass::height, image_loaded, img_filename, img_path, is_pressed, module_load_buffer, AppBaseClass::name, AppBaseClass::origin_x, AppBaseClass::origin_y, reboot_request, save_module, AppManager::sendMessage(), show_active, surface_cache, surface_mempool, time_active, AppBaseClass::update_priority, useNativeFS, using_image, vm, vmConstructor(), AppBaseClass::widget_height, AppBaseClass::widget_origin_x, AppBaseClass::widget_origin_y, AppBaseClass::widget_width, AppBaseClass::width, wren_file, wren_file_system, and wren_module_name.

+ Here is the call graph for this function: