class X11::Screen
- X11::Screen
- Reference
- Object
Defined in:
x11/screen.crConstructors
Instance Method Summary
-
#black_pixel : UInt64
Returns the black pixel.
-
#cells : Int32
Returns the number of colormap cells in the default colormap.
-
#default_colormap : X11::C::Colormap
Returns the default colormap ID.
-
#default_depth : Int32
Returns the depth of the root window.
-
#default_gc : X11::C::X::GC
Returns the default graphics context (GC), which has the same depth as the root window of the screen.
-
#default_visual : Visual
Returns the default visual.
-
#display : Display
Returns the display
-
#does_backing_store : Int32
Returns a value indicating whether the screen supports backing stores.
-
#does_save_unders : Bool
Returns a
Bool
value indicating whether the screen supports save unders. -
#event_mask : Int64
Returns the event mask of the root window at connection setup time.
-
#height : Int32
Returns height of screen in pixels.
-
#height_mm : Int32
Returns height of screen in millimeters.
-
#max_cmaps : Int32
Returns the maximum number of installed colormaps supported by the specified screen.
-
#min_cmaps : Int32
Returns the minimum number of installed colormaps supported by the specified screen.
-
#plane : Int32
Returns the depth of the root window.
-
#resource_string : String
Returns the SCREEN_RESOURCES property from the root window.
-
#root_window : X11::C::Window
Returns root window
-
#screen_number : Int32
Returns the screen index number.
-
#to_unsafe : X11::C::X::PScreen
Returns the underlieing
X11::C::X::PScreen
pointer -
#white_pixel : UInt64
Returns the white pixel.
-
#width : Int32
Returns the width of the specified screen in pixels.
-
#width_mm : Int32
Returns the width of the specified screen in millimeters.
Constructor Detail
Instance Method Detail
Returns the default graphics context (GC), which has the same depth as the root window of the screen.
Returns a value indicating whether the screen supports backing stores. The value returned can be one of WhenMapped, NotUseful, or Always
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
Returns the maximum number of installed colormaps supported by the specified screen.
Returns the minimum number of installed colormaps supported by the specified screen.
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
.