static VALUE rg_operator_equal(VALUE self, VALUE obj) { if (!rb_obj_is_instance_of(obj, GTYPE2CLASS(GDK_TYPE_REGION))) { return Qnil; } return CBOOL2RVAL(gdk_region_equal(_SELF(self), _SELF(obj))); }
bool wxRegion::DoIsEqual(const wxRegion& region) const { #ifdef __WXGTK3__ return cairo_region_equal( M_REGIONDATA->m_region, M_REGIONDATA_OF(region)->m_region); #else return gdk_region_equal(M_REGIONDATA->m_region, M_REGIONDATA_OF(region)->m_region) != 0; #endif }
/* Returns TRUE if the two regions are the same. */ int clip_GDK_REGIONEQUAL(ClipMachine * ClipMachineMemory) { C_object *creg = _fetch_co_arg(ClipMachineMemory); C_object *creg2 = _fetch_cobject(ClipMachineMemory, _clip_spar(ClipMachineMemory, 2)); CHECKCOBJ(creg, GDK_IS_REGION(creg->object)); CHECKARG2(2, MAP_type_of_ClipVarType, NUMERIC_type_of_ClipVarType); CHECKCOBJ(creg2, GDK_IS_REGION(creg2->object)); _clip_retl(ClipMachineMemory, gdk_region_equal(GDK_REGION(creg), GDK_REGION(creg2))); return 0; err: return 1; }
bool wxRegion::DoIsEqual(const wxRegion& region) const { return gdk_region_equal(M_REGIONDATA->m_region, M_REGIONDATA_OF(region)->m_region); }