Class: XCB::SCREEN
- Inherits:
-
Object
- Object
- XCB::SCREEN
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
- #allowed_depths ⇒ Object
- #allowed_depths_len ⇒ Object
- #backing_stores ⇒ Object
- #black_pixel ⇒ Object
- #current_input_masks ⇒ Object
- #default_colormap ⇒ Object
- #height_in_millimeters ⇒ Object
- #height_in_pixels ⇒ Object
- #max_installed_maps ⇒ Object
- #min_installed_maps ⇒ Object
- #root ⇒ Object
- #root_depth ⇒ Object
- #root_visual ⇒ Object
- #save_unders ⇒ Object
- #white_pixel ⇒ Object
- #width_in_millimeters ⇒ Object
- #width_in_pixels ⇒ Object
Instance Method Details
#allowed_depths ⇒ Object
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_len ⇒ Object
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_stores ⇒ Object
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_pixel ⇒ Object
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_masks ⇒ Object
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_colormap ⇒ Object
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_millimeters ⇒ Object
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_pixels ⇒ Object
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_maps ⇒ Object
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_maps ⇒ Object
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);
}
|
#root ⇒ Object
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_depth ⇒ Object
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_visual ⇒ Object
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_unders ⇒ Object
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_pixel ⇒ Object
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_millimeters ⇒ Object
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_pixels ⇒ Object
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);
}
|