mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 12:59:15 +00:00
Implemented simple GUI
This commit is contained in:
@ -14,27 +14,26 @@ namespace GraphicalUserInterface
|
||||
|
||||
#define TASKBAR_HEIGHT 25
|
||||
|
||||
|
||||
// if (!Maximized)
|
||||
// {
|
||||
// this->LastPosition.Left = this->Position.Left;
|
||||
// this->LastPosition.Top = this->Position.Top;
|
||||
// this->LastPosition.Width = this->Position.Width;
|
||||
// this->LastPosition.Height = this->Position.Height;
|
||||
// this->Position.Left = 0;
|
||||
// this->Position.Top = 0;
|
||||
// this->Position.Width = Display->GetBuffer(200)->Width;
|
||||
// this->Position.Height = Display->GetBuffer(200)->Height - 20 - TASKBAR_HEIGHT;
|
||||
// Maximized = true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this->Position.Left = this->LastPosition.Left;
|
||||
// this->Position.Top = this->LastPosition.Top;
|
||||
// this->Position.Width = this->LastPosition.Width;
|
||||
// this->Position.Height = this->LastPosition.Height;
|
||||
// Maximized = false;
|
||||
// }
|
||||
// if (!Maximized)
|
||||
// {
|
||||
// this->LastPosition.Left = this->Position.Left;
|
||||
// this->LastPosition.Top = this->Position.Top;
|
||||
// this->LastPosition.Width = this->Position.Width;
|
||||
// this->LastPosition.Height = this->Position.Height;
|
||||
// this->Position.Left = 0;
|
||||
// this->Position.Top = 0;
|
||||
// this->Position.Width = Display->GetBuffer(200)->Width;
|
||||
// this->Position.Height = Display->GetBuffer(200)->Height - 20 - TASKBAR_HEIGHT;
|
||||
// Maximized = true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this->Position.Left = this->LastPosition.Left;
|
||||
// this->Position.Top = this->LastPosition.Top;
|
||||
// this->Position.Width = this->LastPosition.Width;
|
||||
// this->Position.Height = this->LastPosition.Height;
|
||||
// Maximized = false;
|
||||
// }
|
||||
|
||||
void Window::AddWidget(WidgetCollection *widget)
|
||||
{
|
||||
@ -50,7 +49,7 @@ namespace GraphicalUserInterface
|
||||
this->Buffer->BitsPerPixel = Display->GetBitsPerPixel();
|
||||
this->Buffer->Pitch = Display->GetPitch();
|
||||
this->Buffer->Size = this->Buffer->Pitch * rect.Height;
|
||||
this->Buffer->Data = (uint8_t*)this->mem->RequestPages(TO_PAGES(this->Buffer->Size));
|
||||
this->Buffer->Data = (uint8_t *)this->mem->RequestPages(TO_PAGES(this->Buffer->Size));
|
||||
memset(this->Buffer->Data, 0, this->Buffer->Size);
|
||||
this->ParentGUI = ParentGUI;
|
||||
this->Position = rect;
|
||||
|
Reference in New Issue
Block a user