C4 Engine
C4 Engine API Documentation

class Page

Defined in:  C4Widgets.h
A Page object represents a tool page.
Definition

class Page : public RootWidget, public ListElement<Page>

Constructor

Page(const char *panelName);

Page(const Vector2D& size, const char *title = nullptruint32 flags = kWindowCloseBox | kWindowBackground);

Parameters
panelName The name of the panel resource to load.
size The size of the page, in pixels.
title The page's displayed title.
flags The window flags.
Description
The flags parameter accepts the same values as the flags parameter for the Window constructor, but only the values kWindowCloseBox and kWindowBackground are recognized by pages.
Base Classes
RootWidget A page serves as a root widget container.
ListElement<Page> Used internally by the Interface Manager.