class X11::Screen

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(screen : X11::C::X::PScreen) #

Instance Method Detail

def black_pixel : UInt64 #

Returns the black pixel.


def cells : Int32 #

Returns the number of colormap cells in the default colormap.


def default_colormap : X11::C::Colormap #

Returns the default colormap ID.


def default_depth : Int32 #

Returns the depth of the root window.


def default_gc : X11::C::X::GC #

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


def default_visual : Visual #

Returns the default visual.


def display : Display #

Returns the display


def does_backing_store : Int32 #

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


def does_save_unders : Bool #

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


def event_mask : Int64 #

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


def height : Int32 #

Returns height of screen in pixels.


def height_mm : Int32 #

Returns height of screen in millimeters.


def max_cmaps : Int32 #

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


def min_cmaps : Int32 #

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


def plane : Int32 #

Returns the depth of the root window.


def resource_string : 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.


def root_window : X11::C::Window #

Returns root window


def screen_number : Int32 #

Returns the screen index number.


def to_unsafe : X11::C::X::PScreen #

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


def white_pixel : UInt64 #

Returns the white pixel.


def width : Int32 #

Returns the width of the specified screen in pixels.


def width_mm : Int32 #

Returns the width of the specified screen in millimeters.