build/api-examples/TreeRow.cpp¶
Complete program from the TreeRow API reference. Save it at the path shown above and use the build command in the reference page.
Source files · Download TreeRow.cpp
#include "file_explorer.hpp"
#include <cstdio>
#include <cstring>
int main()
{
gaspardos::desktop::TreeRow row;
row.depth = 0;
row.expanded = false;
row.entry.name = "AHCIDISK0";
row.entry.directory = true;
return row.depth == 0 && row.entry.directory ? 0 : 1;
}