class X11::Screen

Defined in:

x11/screen.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def black_pixel : UInt64 #

Returns the black pixel.


[View source]
def cells : Int32 #

Returns the number of colormap cells in the default colormap.


[View source]
def default_colormap : X11::C::Colormap #

Returns the default colormap ID.


[View source]
def default_depth : Int32 #

Returns the depth of the root window.


[View source]
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.


[View source]
def default_visual : Visual #

Returns the default visual.


[View source]
def display : Display #

Returns the display


[View source]
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


[View source]
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


[View source]
def event_mask : Int64 #

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


[View source]
def height : Int32 #

Returns height of screen in pixels.


[View source]
def height_mm : Int32 #

Returns height of screen in millimeters.


[View source]
def max_cmaps : Int32 #

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


[View source]
def min_cmaps : Int32 #

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


[View source]
def plane : Int32 #

Returns the depth of the root window.


[View source]
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.


[View source]
def root_window : X11::C::Window #

Returns root window


[View source]
def screen_number : Int32 #

Returns the screen index number.


[View source]
def to_unsafe : X11::C::X::PScreen #

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


[View source]
def white_pixel : UInt64 #

Returns the white pixel.


[View source]
def width : Int32 #

Returns the width of the specified screen in pixels.


[View source]
def width_mm : Int32 #

Returns the width of the specified screen in millimeters.


[View source]