class

X11::Screen

Inherits Reference / Object

Constructors

new(screen : X11::C::X::PScreen)
Source

Instance methods

black_pixel

Returns the black pixel.

Source
cells

Returns the number of colormap cells in the default colormap.

Source
default_colormap

Returns the default colormap ID.

Source
default_depth

Returns the depth of the root window.

Source
default_gc

Returns the default graphics context (GC), which has the same depth as the root window of the screen.

Source
default_visual

Returns the default visual.

Source
display

Returns the display

Source
does_backing_store

Returns a value indicating whether the screen supports backing stores. The value returned can be one of WhenMapped, NotUseful, or Always

Source
does_save_unders

Returns a Bool value indicating whether the screen supports save unders. If true, the screen supports save unders. If false, the screen does not support save unders

Source
event_mask

Returns the event mask of the root window at connection setup time.

Source
height

Returns height of screen in pixels.

Source
height_mm

Returns height of screen in millimeters.

Source
max_cmaps

Returns the maximum number of installed colormaps supported by the specified screen.

Source
min_cmaps

Returns the minimum number of installed colormaps supported by the specified screen.

Source
plane

Returns the depth of the root window.

Source
resource_string

Returns the SCREEN_RESOURCES property from the root window.

###Description The resource_string function returns the SCREEN_RESOURCES property from the root window of the actual screen. The property is converted from type STRING to the current locale. The conversion is identical to that produced by Display::mb_text_property_to_text_list for a single element STRING property. The property value must be in a format that is acceptable to X11::rm_get_string_database. If no property exists, empty string is returned.

###See also Display::resource_manager_string.

Source
root_window

Returns root window

Source
screen_number

Returns the screen index number.

Source
to_unsafe

Returns the underlieing X11::C::X::PScreen pointer

Source
white_pixel

Returns the white pixel.

Source
width

Returns the width of the specified screen in pixels.

Source
width_mm

Returns the width of the specified screen in millimeters.

Source