feat(gui): add toolbar widget
This commit is contained in:
parent
afc063b2ab
commit
b42bf74472
51 changed files with 2191 additions and 1461 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "pxl8_bytes.h"
|
||||
#include "pxl8_types.h"
|
||||
|
|
@ -10,11 +9,20 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef bool (*pxl8_io_dir_callback)(void* userdata, const char* dir_path, const char* name);
|
||||
|
||||
pxl8_result pxl8_io_create_directory(const char* path);
|
||||
bool pxl8_io_enumerate_directory(const char* path, pxl8_io_dir_callback callback, void* userdata);
|
||||
bool pxl8_io_file_exists(const char* path);
|
||||
void pxl8_io_free_binary_data(u8* data);
|
||||
void pxl8_io_free_file_content(char* content);
|
||||
char* pxl8_io_get_cwd(void);
|
||||
f64 pxl8_io_get_file_modified_time(const char* path);
|
||||
usize pxl8_io_get_file_size(const char* path);
|
||||
char* pxl8_io_get_pref_path(const char* org, const char* app);
|
||||
char* pxl8_io_get_real_path(const char* path);
|
||||
bool pxl8_io_is_directory(const char* path);
|
||||
bool pxl8_io_set_cwd(const char* path);
|
||||
void pxl8_io_set_executable(const char* path);
|
||||
pxl8_result pxl8_io_read_binary_file(const char* path, u8** data, usize* size);
|
||||
pxl8_result pxl8_io_read_file(const char* path, char** content, usize* size);
|
||||
pxl8_result pxl8_io_write_binary_file(const char* path, const u8* data, usize size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue