ERIS CORE

◆ onFocusLost()

void AppWren::onFocusLost ( )
inlineoverrideprotectedvirtual

class specific onFocusLost implementation

Reimplemented from AppBaseClass.

Definition at line 610 of file AppWren.h.

610  {
611  if (!enable_call_forwarding || h_onFocusLost==0){ //if no script loaded
612  return;
613  } else{
614  wrenEnsureSlots(vm, 4);
615  wrenSetSlotHandle(vm, 0, h_slot0);//App
616  if (!isWrenResultOK(wrenCall(vm,h_onFocusLost))){
618  };
619  }
620  }; //called when focus is taken
void releaseWrenHandles()
release any/all Wren embedded call handles
Definition: AppWren.cpp:1651
bool isWrenResultOK(WrenInterpretResult res)
Definition: AppWren.h:543
bool enable_call_forwarding
Definition: AppWren.h:765
WrenVM * vm
Definition: AppWren.h:780
WrenHandle * h_onFocusLost
Definition: AppWren.h:785
WrenHandle * h_slot0
Definition: AppWren.h:781

References enable_call_forwarding, h_onFocusLost, h_slot0, isWrenResultOK(), releaseWrenHandles(), and vm.

+ Here is the call graph for this function: