mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Start working on a GUI kernel API.
This commit is contained in:
parent
becc2c7fa5
commit
8f8c8d1ca3
17 changed files with 150 additions and 11 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "i386.h"
|
||||
#include "TTY.h"
|
||||
#include "Syscall.h"
|
||||
#include "GUITypes.h"
|
||||
#include <VirtualFileSystem/VirtualFileSystem.h>
|
||||
#include <VirtualFileSystem/UnixTypes.h>
|
||||
#include <AK/InlineLinkedList.h>
|
||||
|
@ -16,6 +17,7 @@ class PageDirectory;
|
|||
class Region;
|
||||
class VMObject;
|
||||
class Zone;
|
||||
class Window;
|
||||
|
||||
#define COOL_GLOBALS
|
||||
#ifdef COOL_GLOBALS
|
||||
|
@ -185,9 +187,13 @@ public:
|
|||
Unix::clock_t sys$times(Unix::tms*);
|
||||
int sys$utime(const char* pathname, const struct Unix::utimbuf*);
|
||||
|
||||
int gui$create_window(const GUI_CreateWindowParameters*);
|
||||
int gui$destroy_window(int window_id);
|
||||
|
||||
DisplayInfo get_display_info();
|
||||
|
||||
static void initialize();
|
||||
static void initialize_gui_statics();
|
||||
|
||||
void crash() NORETURN;
|
||||
static int reap(Process&) WARN_UNUSED_RESULT;
|
||||
|
@ -331,6 +337,8 @@ private:
|
|||
Region* m_signal_stack_kernel_region { nullptr };
|
||||
|
||||
RetainPtr<Region> m_display_framebuffer_region;
|
||||
|
||||
Vector<Window*> m_windows;
|
||||
};
|
||||
|
||||
extern Process* current;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue