16#ifndef AEONGUI_WINDOW_H
17#define AEONGUI_WINDOW_H
21#include "aeongui/CairoCanvas.hpp"
22#include "aeongui/dom/EventTarget.hpp"
23#include "aeongui/dom/USVString.hpp"
24#include "aeongui/dom/Location.hpp"
25#include "aeongui/dom/Document.hpp"
48 DLL
Window ( uint32_t aWidth, uint32_t aHeight );
83 Location mLocation{std::bind ( &Window::OnLocationChanged,
this, std::placeholders::_1 ) };
Cairo-backed Canvas implementation.
Definition CairoCanvas.hpp:35
Represents a DOM Document.
Definition Document.hpp:38
Base class for objects that can receive DOM events.
Definition EventTarget.hpp:58
Represents the URL of the active document.
Definition Location.hpp:33
~Window() override final
Destructor.
size_t GetWidth() const
Get the window width in pixels.
Definition Window.cpp:64
Location & location() const
Get the Location object.
Definition Window.cpp:44
void Draw()
Render the current document to the internal canvas.
Definition Window.cpp:77
size_t GetHeight() const
Get the window height in pixels.
Definition Window.cpp:68
const Document * document() const
Get the associated Document.
Definition Window.cpp:39
Window()
Default constructor. Creates an empty window.
size_t GetStride() const
Get the stride (bytes per row) of the pixel buffer.
Definition Window.cpp:72
void ResizeViewport(uint32_t aWidth, uint32_t aHeight)
Resize the rendering viewport.
Definition Window.cpp:54
const uint8_t * GetPixels() const
Get a pointer to the rendered pixel data.
Definition Window.cpp:59