- Setup wayland display and window. Window surface is created and appears in hotbar. Window is not visible.

This commit is contained in:
2025-12-14 15:47:11 -05:00
parent a1bdc077b1
commit 5dcb58f53c
25 changed files with 985 additions and 40 deletions

View File

@@ -19,7 +19,6 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <bits/posix2_lim.h>
#include <fennec/filesystem/file.h>
#include <fennec/filesystem/path.h>
@@ -32,6 +31,7 @@
#else
#include <sys/file.h>
#include <bits/posix2_lim.h>
#endif
@@ -120,7 +120,9 @@ file::file()
}
file::~file() {
close();
if (is_open()) {
close();
}
}
file::file(file&& file) noexcept
@@ -1030,6 +1032,23 @@ wstring file::getwline() {
return wstring(L"");
}
void file::print(const cstring& str) {
write(str.data(), str.length());
}
void file::print(const string& str) {
write(str.data(), str.length());
}
void file::println(const cstring& str) {
write(str.data(), str.length());
putc('\n');
}
void file::println(const string& str) {
write(str.data(), str.length());
}
bool file::putc(char c) {
assert(_error == nullptr, "Attempted an Operation on a File in an Errored State");
assert(not(_mode & fmode_wide), "Attempted Wide Operation on Byte File");