MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / OnFileButtonPress

Function OnFileButtonPress

LibLemon/src/gui/fileview.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 };
133
134 void OnFileButtonPress(Button* b){
135 FileView* fv = ((FileView*)b->GetParent());
136 fv->currentPath = "/";
137 fv->currentPath.append(((FileButton*)b)->file);
138
139 fv->Refresh();
140 }
141
142 FileView::FileView(rect_t bounds, const char* path, void(*_OnFileOpened)(const char*, FileView*)) : Container(bounds) {
143 OnFileOpened = _OnFileOpened;

Callers

nothing calls this directly

Calls 2

GetParentMethod · 0.80
RefreshMethod · 0.80

Tested by

no test coverage detected