opuntiaOS - an operating system targeting x86 and ARMv7
at master 939 B view raw
1/* 2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors. 3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com> 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9#pragma once 10#include "../../Components/Base/BaseWindow.h" 11#include "../../Components/MenuBar/MenuItem.h" 12#include "../../IPC/Connection.h" 13#include <libfoundation/SharedBuffer.h> 14#include <libg/PixelBitmap.h> 15#include <libg/Rect.h> 16#include <sys/types.h> 17#include <utility> 18 19namespace WinServer::Mobile { 20 21class Window : public BaseWindow { 22public: 23 Window(int connection_id, int id, CreateWindowMessage& msg); 24 Window(Window&& win); 25 26 inline void set_style(StatusBarStyle ts) { m_style = ts, on_style_change(); } 27 inline StatusBarStyle style() { return m_style; } 28 29private: 30 void on_style_change(); 31 32 StatusBarStyle m_style { StatusBarStyle::StandardLight }; 33}; 34 35} // namespace WinServer