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

Initialization parameters for a CKControl. More...

#include <ckControl.h>

Public Member Functions

 CKControlInitParams (const char *t, CKRect r)
 Create a control with a text and a size & position.
 
 CKControlInitParams (CKRect r)
 Create a control with a size & position.
 
 CKControlInitParams (CKSize s)
 Create a control with a size.
 

Public Attributes

const char * title = 0
 Text to be used for window title or control text, if applicable.
 
int x = 0
 Position (X) of the control. Should be > 0.
 
int y = 0
 Position (Y) of the control. Should be > 0.
 
int width = 100
 Width of the control. Must be > 0.
 
int height = 50
 Height of the control. Must be > 0. See kCKButtonHeight, kCKCheckboxHeight, etc.
 

Detailed Description

Initialization parameters for a CKControl.

Constructor & Destructor Documentation

◆ CKControlInitParams() [1/3]

CKControlInitParams::CKControlInitParams ( const char *  t,
CKRect  r 
)
inline

Create a control with a text and a size & position.

Parameters
tThe text of the control.
rA CKRect defining the size and position of the control.

◆ CKControlInitParams() [2/3]

CKControlInitParams::CKControlInitParams ( CKRect  r)
inline

Create a control with a size & position.

Parameters
rA CKRect defining the size and position of the control.

◆ CKControlInitParams() [3/3]

CKControlInitParams::CKControlInitParams ( CKSize  s)
inline

Create a control with a size.

Parameters
rA CKSize defining the size of the control.

Member Data Documentation

◆ height

int CKControlInitParams::height = 50

Height of the control. Must be > 0. See kCKButtonHeight, kCKCheckboxHeight, etc.

◆ title

const char* CKControlInitParams::title = 0

Text to be used for window title or control text, if applicable.

◆ width

int CKControlInitParams::width = 100

Width of the control. Must be > 0.

◆ x

int CKControlInitParams::x = 0

Position (X) of the control. Should be > 0.

◆ y

int CKControlInitParams::y = 0

Position (Y) of the control. Should be > 0.


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