EXPORT BOOL WINAPI s_getPen(HSPEXINFO *hei, int p2, int p3, int p4) { float *penx, *peny; lstrcpy(funcname, "s_getPen"); penx = (float *)hei->HspFunc_prm_getv(); peny = (float *)hei->HspFunc_prm_getv(); SWFShape_getPen(mhsp_shape, penx, peny); return 0; }
static VALUE pen(VALUE self) { SWFShape shape; double x, y; VALUE list = rb_ary_new(); Data_Get_Struct(self, struct SWFShape_s, shape); SWFShape_getPen(shape, &x, &y); rb_funcall(list, rb_intern("<<"), 1, rb_float_new(x)); rb_funcall(list, rb_intern("<<"), 1, rb_float_new(y)); return list; }