Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Control::Size

Control size. More...

#include <klang.h>

Public Member Functions

 Size (int x=-1, int y=-1, int width=-1, int height=-1)
 
bool isAuto () const
 

Public Attributes

int x
 
int y
 
int width
 
int height
 

Detailed Description

Definition at line 968 of file klang.h.

Constructor & Destructor Documentation

◆ Size()

klang::Control::Size::Size ( int x = -1,
int y = -1,
int width = -1,
int height = -1 )
inline

Definition at line 970 of file klang.h.

References height, width, x, and y.

Member Function Documentation

◆ isAuto()

bool klang::Control::Size::isAuto ( ) const
inline

Definition at line 978 of file klang.h.

978{ return x == -1 && y == -1 && width == -1 && height == -1; }

References height, width, x, and y.

Member Data Documentation

◆ height

int klang::Control::Size::height

Definition at line 976 of file klang.h.

Referenced by Size(), and isAuto().

◆ width

int klang::Control::Size::width

Definition at line 975 of file klang.h.

Referenced by Size(), and isAuto().

◆ x

int klang::Control::Size::x

Definition at line 973 of file klang.h.

Referenced by Size(), and isAuto().

◆ y

int klang::Control::Size::y

Definition at line 974 of file klang.h.

Referenced by Size(), and isAuto().