des ~master (2021-12-19T09:15:35.5306905)
Dub
Repo
DiRectShape
des
gui
shape
class
DiRectShape :
DiShape
{
protected
DiRect
bbox
;
protected
DiVec
min_size
;
protected
DiVec
max_size
;
DiRect
rect
[@property getter];
DiRect
rect
[@property setter];
DiVec
minSize
[@property getter];
DiVec
minSize
[@property setter];
DiVec
maxSize
[@property getter];
DiVec
maxSize
[@property setter];
bool
contains
(DiVec v);
bool
contains
(DiRect r);
bool
intersect
(DiRect r);
bool
reshape
(DiRect nr);
DiRect
calcAllowRect
(DiRect r);
}
Members
Functions
calcAllowRect
DiRect
calcAllowRect
(DiRect r)
use min_size and max_size for calc new rect
contains
bool
contains
(DiVec v)
contains
bool
contains
(DiRect r)
intersect
bool
intersect
(DiRect r)
reshape
bool
reshape
(DiRect nr)
Properties
maxSize
DiVec
maxSize
[@property getter]
maxSize
DiVec
maxSize
[@property setter]
minSize
DiVec
minSize
[@property getter]
minSize
DiVec
minSize
[@property setter]
rect
DiRect
rect
[@property getter]
rect
DiRect
rect
[@property setter]
Variables
bbox
DiRect
bbox
;
max_size
DiVec
max_size
;
Undocumented in source.
min_size
DiVec
min_size
;
Undocumented in source.
Inherited Members
From DiShape
rect
DiRect
rect
[@property getter]
bounding box of area
rect
DiRect
rect
[@property setter]
contains
bool
contains
(DiVec )
contains
bool
contains
(DiRect )
intersect
bool
intersect
(DiRect )
pos
DiVec
pos
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
DiVec
size
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
des
gui
shape
classes
DiRectShape
interfaces
DiShape