Class: LibX11::XErrorEvent

Inherits:
Data
  • Object
show all
Defined in:
ext/libx11_ruby/xerror_event.c

Constant Summary collapse

SUCCESS =

error codes

INT2FIX(Success)
BAD_REQUEST =
INT2FIX(BadRequest)
BAD_VALUE =
INT2FIX(BadValue)
BAD_WINDOW =
INT2FIX(BadWindow)
BAD_PIXMAP =
INT2FIX(BadPixmap)
BAD_ATOM =
INT2FIX(BadAtom)
BAD_CURSOR =
INT2FIX(BadCursor)
BAD_FONT =
INT2FIX(BadFont)
BAD_MATCH =
INT2FIX(BadMatch)
BAD_DRAWABLE =
INT2FIX(BadDrawable)
BAD_ACCESS =
INT2FIX(BadAccess)
BAD_ALLOC =
INT2FIX(BadAlloc)
BAD_COLOR =
INT2FIX(BadColor)
BAD_GC =
INT2FIX(BadGC)
BAD_ID_CHOICE =
INT2FIX(BadIDChoice)
BAD_NAME =
INT2FIX(BadName)
BAD_LENGTH =
INT2FIX(BadLength)
BAD_IMPLEMENTATION =
INT2FIX(BadImplementation)
FIRST_EXTENSION_ERROR =
INT2FIX(FirstExtensionError)
LAST_EXTENSION_ERROR =
INT2FIX(LastExtensionError)

Instance Method Summary collapse

Instance Method Details

#error_codeObject



58
59
60
61
62
63
64
# File 'ext/libx11_ruby/xerror_event.c', line 58

static VALUE
rb_xerror_event_error_code(VALUE self)
{
  XErrorEvent *event;
  TypedData_Get_Struct(self, XErrorEvent, &xerror_event_type, event);
  return INT2FIX(event->error_code);
}

#typeObject



66
67
68
69
70
71
72
# File 'ext/libx11_ruby/xerror_event.c', line 66

static VALUE
rb_xerror_event_type(VALUE self)
{
  XErrorEvent *event;
  TypedData_Get_Struct(self, XErrorEvent, &xerror_event_type, event);
  return INT2FIX(event->type);
}