Handbook
Glossary
cpShape
Vocabulary
chipmunk
.
ffi
Definition
USING:
alien.c-types
classes.struct
;
IN:
chipmunk.ffi
STRUCT:
cpShape
{
klass cpShapeClass*
}
{
body cpBody*
}
{
bb
cpBB
initial:
S{
cpBB
{
l 0.0
}
{
b 0.0
}
{
r 0.0
}
{
t 0.0
}
}
}
{
sensor
int
initial:
0
}
{
e
cpFloat
initial:
0.0
}
{
u
cpFloat
initial:
0.0
}
{
surface_v
cpVect
initial:
S{
cpVect
{
x 0.0
}
{
y 0.0
}
}
}
{
data
cpDataPointer
}
{
collision_type
cpCollisionType
initial:
0
}
{
group
cpGroup
initial:
0
}
{
layers
cpLayers
initial:
0
}
{
hashid
cpHashValue
initial:
0
}
;
Methods
USING:
chipmunk.ffi
classes.struct
classes.struct.private
kernel
;
M:
cpShape
clone
clone-underlying
\
cpShape
memory>struct
;
inline
USING:
accessors
chipmunk.ffi
classes.struct
combinators.smart
;
M:
cpShape
struct-slot-values
{
[
klass>>
]
[
body>>
]
[
bb>>
]
[
sensor>>
]
[
e>>
]
[
u>>
]
[
surface_v>>
]
[
data>>
]
[
collision_type>>
]
[
group>>
]
[
layers>>
]
[
hashid>>
]
}
cleave>array
;
inline