// cairo_public cairo_bool_t // cairo_ps_surface_get_eps (cairo_surface_t *surface); static int l_cairo_ps_surface_get_eps(lua_State* L) { cairo_surface_t *surface = get_cairo_surface_t (L, 1); cairo_bool_t v = cairo_ps_surface_get_eps (surface); lua_pushboolean(L, v); return 1; }
static int surface_get_eps (lua_State *L) { cairo_surface_t **obj = luaL_checkudata(L, 1, OOCAIRO_MT_NAME_SURFACE); if (cairo_surface_get_type(*obj) != CAIRO_SURFACE_TYPE_PS) return luaL_error(L, "method 'get_eps' only works on PostScript" " surfaces"); lua_pushboolean(L, cairo_ps_surface_get_eps(*obj)); return 1; }
static cairo_test_status_t test_cairo_ps_surface_get_eps (cairo_surface_t *surface) { cairo_bool_t eps = cairo_ps_surface_get_eps (surface); return eps ? CAIRO_TEST_ERROR : CAIRO_TEST_SUCCESS; }
static VALUE cr_ps_surface_get_eps (VALUE self) { return cairo_ps_surface_get_eps (_SELF) ? Qtrue : Qfalse; }