des ~master (2015-04-07T23:17:11Z)
Dub
Repo
DiRectShape
des
gui
shape
class
DiRectShape :
DiShape
{
DiRect
bbox
;
DiVec
min_size
;
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
(
in
DiVec
v
)
;
bool
contains
(
in
DiRect
r
)
;
bool
intersect
(
in
DiRect
r
)
;
bool
reshape
(
in
DiRect
nr
)
;
DiRect
calcAllowRect
(
in
DiRect
r
)
;
}
Members
Functions
calcAllowRect
DiRect
calcAllowRect
(
in
DiRect
r
)
use min_size and max_size for calc new rect
contains
bool
contains
(
in
DiVec
v
)
contains
bool
contains
(
in
DiRect
r
)
intersect
bool
intersect
(
in
DiRect
r
)
reshape
bool
reshape
(
in
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]
Inherited Members
From DiShape
rect
DiRect
rect
[@property getter]
bounding box of area
rect
DiRect
rect
[@property setter]
contains
bool
contains
(
in
DiVec
)
contains
bool
contains
(
in
DiRect
)
intersect
bool
intersect
(
in
DiRect
)
Meta
Source
See Implementation
des
gui
shape
classes
DiRectShape
interfaces
DiShape