Clapkit
Loading...
Searching...
No Matches
CKWindowInitParams Struct Reference

Initialization parameters for a CKWindow. More...

#include <ckWindow.h>

Public Member Functions

 CKWindowInitParams (CKSize size)
 Initialization parameters for a CKWindow. You must set a size larger than 0x0. Title/type can be set later on.
 
CKWindowInitParamsSetTitle (const char *title)
 
CKWindowInitParamsSetType (CKWindowType type)
 
CKWindowInitParamsSetOrigin (CKPoint point)
 
CKWindowInitParamsUnsetOrigin ()
 

Public Attributes

CKSize size = CKSize(0, 0)
 
std::optional< CKPointorigin
 
CKWindowType type = CKWindowType::Standard
 
char * title = nullptr
 

Detailed Description

Initialization parameters for a CKWindow.

CKWindow* window = app->CKNewWindow(CKWindowInitParams(CKSize(300, 100)));
window->SetTitle("My Window!");
Defines a window. Window type (modal, document) is determined by CKWindowInitParams and CKWindowType.
Definition ckWindow.h:89
void SetTitle(const char *title)
Definition ckWindow.cpp:125
Defines a rectangular area.
Definition ckTypes.h:179
Initialization parameters for a CKWindow.
Definition ckWindow.h:44

Constructor & Destructor Documentation

◆ CKWindowInitParams()

CKWindowInitParams::CKWindowInitParams ( CKSize  size)
inline

Initialization parameters for a CKWindow. You must set a size larger than 0x0. Title/type can be set later on.

CKWindow* window = app->CKNewWindow(CKWindowInitParams(CKSize(300, 100)));
window->SetTitle("My Window!");

Member Function Documentation

◆ SetOrigin()

CKWindowInitParams & CKWindowInitParams::SetOrigin ( CKPoint  point)
inline

◆ SetTitle()

CKWindowInitParams & CKWindowInitParams::SetTitle ( const char *  title)
inline

◆ SetType()

CKWindowInitParams & CKWindowInitParams::SetType ( CKWindowType  type)
inline

◆ UnsetOrigin()

CKWindowInitParams & CKWindowInitParams::UnsetOrigin ( )
inline

Member Data Documentation

◆ origin

std::optional<CKPoint> CKWindowInitParams::origin

◆ size

CKSize CKWindowInitParams::size = CKSize(0, 0)

◆ title

char* CKWindowInitParams::title = nullptr

◆ type

CKWindowType CKWindowInitParams::type = CKWindowType::Standard

The documentation for this struct was generated from the following file: