Class: Gdk::Monitor
- Inherits:
-
Object
- Object
- Gdk::Monitor
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#display ⇒ Gdk::Display
Display.
- #display=(display) ⇒ Gdk::Display
-
#geometry ⇒ Gdk::Rectangle
Geometry.
- #geometry=(geometry) ⇒ Gdk::Rectangle
-
#get_geometry(geometry) ⇒ nil
Retrieves the size and position of an individual monitor within the display coordinate space.
-
#get_workarea(workarea) ⇒ nil
Retrieves the size and position of the “work area” on a monitor within the display coordinate space.
-
#height_mm ⇒ Integer
Height-mm.
- #height_mm=(height_mm) ⇒ Integer
-
#is_primary ⇒ TrueClass
Gets whether this monitor should be considered primary (see gdk_display_get_primary_monitor()).
-
#manufacturer ⇒ String
Manufacturer.
- #manufacturer=(manufacturer) ⇒ String
-
#model ⇒ String
Model.
- #model=(model) ⇒ String
-
#refresh_rate ⇒ Integer
Refresh-rate.
- #refresh_rate=(refresh_rate) ⇒ Integer
-
#scale_factor ⇒ Integer
Scale-factor.
- #scale_factor=(scale_factor) ⇒ Integer
-
#subpixel_layout ⇒ Gdk::SubpixelLayout
Subpixel-layout.
- #subpixel_layout=(subpixel_layout) ⇒ Gdk::SubpixelLayout
-
#width_mm ⇒ Integer
Width-mm.
- #width_mm=(width_mm) ⇒ Integer
-
#workarea ⇒ Gdk::Rectangle
Workarea.
- #workarea=(workarea) ⇒ Gdk::Rectangle
Instance Method Details
#display ⇒ Gdk::Display
Returns display.
#display=(display) ⇒ Gdk::Display
#geometry ⇒ Gdk::Rectangle
Returns geometry.
#geometry=(geometry) ⇒ Gdk::Rectangle
#get_geometry(geometry) ⇒ nil
Retrieves the size and position of an individual monitor within the display coordinate space. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_monitor_get_scale_factor()).
#get_workarea(workarea) ⇒ nil
Retrieves the size and position of the “work area” on a monitor within the display coordinate space. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_monitor_get_scale_factor()).
The work area should be considered when positioning menus and similar popups, to avoid placing them below panels, docks or other desktop components.
Note that not all backends may have a concept of workarea. This function will return the monitor geometry if a workarea is not available, or does not apply.
#height_mm ⇒ Integer
Returns height-mm.
#height_mm=(height_mm) ⇒ Integer
#is_primary ⇒ TrueClass
Gets whether this monitor should be considered primary (see gdk_display_get_primary_monitor()).
#manufacturer ⇒ String
Returns manufacturer.
#manufacturer=(manufacturer) ⇒ String
#model ⇒ String
Returns model.
#model=(model) ⇒ String
#refresh_rate ⇒ Integer
Returns refresh-rate.
#refresh_rate=(refresh_rate) ⇒ Integer
#scale_factor ⇒ Integer
Returns scale-factor.
#scale_factor=(scale_factor) ⇒ Integer
#subpixel_layout ⇒ Gdk::SubpixelLayout
Returns subpixel-layout.
#subpixel_layout=(subpixel_layout) ⇒ Gdk::SubpixelLayout
#width_mm ⇒ Integer
Returns width-mm.
#width_mm=(width_mm) ⇒ Integer
#workarea ⇒ Gdk::Rectangle
Returns workarea.