Class: XCB::GetKeyboardControlReply

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

Instance Method Summary collapse

Instance Method Details

#auto_repeatsObject



4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
# File 'ext/xproto.c', line 4313

static VALUE
r_XCB_GetKeyboardControlReply_get_auto_repeats(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	int __auto_repeats_len = 32;
	uint8_t *__auto_repeats = reply->auto_repeats;
	VALUE r_auto_repeats = rb_ary_new2(__auto_repeats_len);
	int i;
	for (i = 0; i < __auto_repeats_len; i += 1)
		rb_ary_store(r_auto_repeats, i, INT2FIX(__auto_repeats[i]));
	return r_auto_repeats;
}

#bell_durationObject



4306
4307
4308
4309
4310
4311
4312
# File 'ext/xproto.c', line 4306

static VALUE
r_XCB_GetKeyboardControlReply_get_bell_duration(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->bell_duration);
}

#bell_percentObject



4292
4293
4294
4295
4296
4297
4298
# File 'ext/xproto.c', line 4292

static VALUE
r_XCB_GetKeyboardControlReply_get_bell_percent(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->bell_percent);
}

#bell_pitchObject



4299
4300
4301
4302
4303
4304
4305
# File 'ext/xproto.c', line 4299

static VALUE
r_XCB_GetKeyboardControlReply_get_bell_pitch(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->bell_pitch);
}

#global_auto_repeatObject



4271
4272
4273
4274
4275
4276
4277
# File 'ext/xproto.c', line 4271

static VALUE
r_XCB_GetKeyboardControlReply_get_global_auto_repeat(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->global_auto_repeat);
}

#key_click_percentObject



4285
4286
4287
4288
4289
4290
4291
# File 'ext/xproto.c', line 4285

static VALUE
r_XCB_GetKeyboardControlReply_get_key_click_percent(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->key_click_percent);
}

#led_maskObject



4278
4279
4280
4281
4282
4283
4284
# File 'ext/xproto.c', line 4278

static VALUE
r_XCB_GetKeyboardControlReply_get_led_mask(VALUE r_self)
{
	xcb_get_keyboard_control_reply_t *reply;
	Data_Get_Struct(r_self, xcb_get_keyboard_control_reply_t, reply);
	return INT2FIX(reply->led_mask);
}