Class: XCB::SetupFailed

Inherits:
Object
  • Object
show all
Defined in:
ext/xproto.c

Instance Method Summary collapse

Instance Method Details

#lengthObject



450
451
452
453
454
455
456
# File 'ext/xproto.c', line 450

static VALUE
r_XCB_SetupFailed_get_length(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	return INT2FIX(setup_failed->length);
}

#protocol_major_versionObject



436
437
438
439
440
441
442
# File 'ext/xproto.c', line 436

static VALUE
r_XCB_SetupFailed_get_protocol_major_version(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	return INT2FIX(setup_failed->protocol_major_version);
}

#protocol_minor_versionObject



443
444
445
446
447
448
449
# File 'ext/xproto.c', line 443

static VALUE
r_XCB_SetupFailed_get_protocol_minor_version(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	return INT2FIX(setup_failed->protocol_minor_version);
}

#reasonObject



457
458
459
460
461
462
463
464
465
# File 'ext/xproto.c', line 457

static VALUE
r_XCB_SetupFailed_get_reason(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	int __reason_len = xcb_setup_failed_reason_length(setup_failed);
	char *__reason = xcb_setup_failed_reason(setup_failed);
	return rb_str_new(__reason, __reason_len);
}

#reason_lenObject



429
430
431
432
433
434
435
# File 'ext/xproto.c', line 429

static VALUE
r_XCB_SetupFailed_get_reason_len(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	return INT2FIX(setup_failed->reason_len);
}

#statusObject



422
423
424
425
426
427
428
# File 'ext/xproto.c', line 422

static VALUE
r_XCB_SetupFailed_get_status(VALUE r_self)
{
	xcb_setup_failed_t *setup_failed;
	Data_Get_Struct(r_self, xcb_setup_failed_t, setup_failed);
	return INT2FIX(setup_failed->status);
}