Class: XCB::SCREEN

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

Instance Method Summary collapse

Instance Method Details

#allowed_depthsObject



351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
# File 'ext/xproto.c', line 351

static VALUE
r_XCB_SCREEN_get_allowed_depths(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  xcb_depth_iterator_t iterator = xcb_screen_allowed_depths_iterator(screen);
  VALUE r_allowed_depths = rb_ary_new();
  while (iterator.rem != 0) {
    xcb_depth_t *data = malloc(sizeof(xcb_depth_t));
    if (data == NULL)
      rb_raise(rb_eNoMemError, "NoMemoryError");
    VALUE r_data = Data_Wrap_Struct(r_XCB_DEPTH, NULL, NULL, data);
    *data = *iterator.data;
    rb_ary_push(r_allowed_depths, r_data);
    xcb_depth_next(&iterator);
  }
  return r_allowed_depths;
}

#allowed_depths_lenObject



344
345
346
347
348
349
350
# File 'ext/xproto.c', line 344

static VALUE
r_XCB_SCREEN_get_allowed_depths_len(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->allowed_depths_len);
}

#backing_storesObject



323
324
325
326
327
328
329
# File 'ext/xproto.c', line 323

static VALUE
r_XCB_SCREEN_get_backing_stores(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->backing_stores);
}

#black_pixelObject



260
261
262
263
264
265
266
# File 'ext/xproto.c', line 260

static VALUE
r_XCB_SCREEN_get_black_pixel(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->black_pixel);
}

#current_input_masksObject



267
268
269
270
271
272
273
# File 'ext/xproto.c', line 267

static VALUE
r_XCB_SCREEN_get_current_input_masks(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->current_input_masks);
}

#default_colormapObject



246
247
248
249
250
251
252
# File 'ext/xproto.c', line 246

static VALUE
r_XCB_SCREEN_get_default_colormap(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->default_colormap);
}

#height_in_millimetersObject



295
296
297
298
299
300
301
# File 'ext/xproto.c', line 295

static VALUE
r_XCB_SCREEN_get_height_in_millimeters(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->height_in_millimeters);
}

#height_in_pixelsObject



281
282
283
284
285
286
287
# File 'ext/xproto.c', line 281

static VALUE
r_XCB_SCREEN_get_height_in_pixels(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->height_in_pixels);
}

#max_installed_mapsObject



309
310
311
312
313
314
315
# File 'ext/xproto.c', line 309

static VALUE
r_XCB_SCREEN_get_max_installed_maps(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->max_installed_maps);
}

#min_installed_mapsObject



302
303
304
305
306
307
308
# File 'ext/xproto.c', line 302

static VALUE
r_XCB_SCREEN_get_min_installed_maps(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->min_installed_maps);
}

#rootObject



239
240
241
242
243
244
245
# File 'ext/xproto.c', line 239

static VALUE
r_XCB_SCREEN_get_root(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->root);
}

#root_depthObject



337
338
339
340
341
342
343
# File 'ext/xproto.c', line 337

static VALUE
r_XCB_SCREEN_get_root_depth(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->root_depth);
}

#root_visualObject



316
317
318
319
320
321
322
# File 'ext/xproto.c', line 316

static VALUE
r_XCB_SCREEN_get_root_visual(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->root_visual);
}

#save_undersObject



330
331
332
333
334
335
336
# File 'ext/xproto.c', line 330

static VALUE
r_XCB_SCREEN_get_save_unders(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return screen->save_unders ? Qtrue : Qfalse;
}

#white_pixelObject



253
254
255
256
257
258
259
# File 'ext/xproto.c', line 253

static VALUE
r_XCB_SCREEN_get_white_pixel(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->white_pixel);
}

#width_in_millimetersObject



288
289
290
291
292
293
294
# File 'ext/xproto.c', line 288

static VALUE
r_XCB_SCREEN_get_width_in_millimeters(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->width_in_millimeters);
}

#width_in_pixelsObject



274
275
276
277
278
279
280
# File 'ext/xproto.c', line 274

static VALUE
r_XCB_SCREEN_get_width_in_pixels(VALUE r_self)
{
  xcb_screen_t *screen;
  Data_Get_Struct(r_self, xcb_screen_t, screen);
  return INT2FIX(screen->width_in_pixels);
}