Class: Gdk::Monitor

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#connectorString

The connector name.

Returns:

  • (String)

    connector

#connector=(connector) ⇒ String

The connector name.

Parameters:

  • connector (String)

Returns:

  • (String)

    connector

  • (String)

    connector

#descriptionString

A short description of the monitor, meant for display to the user.

Returns:

  • (String)

    description

#description=(description) ⇒ String

A short description of the monitor, meant for display to the user.

Parameters:

  • description (String)

Returns:

  • (String)

    description

  • (String)

    description

#displayGdk::Display

The GdkDisplay of the monitor.

Returns:

#display=(display) ⇒ Gdk::Display

The GdkDisplay of the monitor.

Parameters:

Returns:

#geometryGdk::Rectangle

The geometry of the monitor.

Returns:

  • (Gdk::Rectangle)

    geometry

#geometry=(geometry) ⇒ Gdk::Rectangle

The geometry of the monitor.

Parameters:

  • geometry (Gdk::Rectangle)

Returns:

  • (Gdk::Rectangle)

    geometry

  • (Gdk::Rectangle)

    geometry

#get_geometry(geometry) ⇒ nil

Retrieves the size and position of the monitor within the display coordinate space.

The returned geometry is in ”application pixels”, not in ”device pixels” (see [methodGdk.Monitor.get_scale]).

Parameters:

  • geometry (Gdk::Rectangle)

    a GdkRectangle to be filled with the monitor geometry

Returns:

  • (nil)

#height_mmInteger

The height of the monitor, in millimeters.

Returns:

  • (Integer)

    height-mm

#height_mm=(height_mm) ⇒ Integer

The height of the monitor, in millimeters.

Parameters:

  • height_mm (Integer)

Returns:

  • (Integer)

    height-mm

  • (Integer)

    height-mm

#is_validBoolean

Returns true if the monitor object corresponds to a physical monitor.

The monitor becomes invalid when the physical monitor is unplugged or removed.

Returns:

  • (Boolean)

    true if the object corresponds to a physical monitor

#manufacturerString

The manufacturer name.

Returns:

  • (String)

    manufacturer

#manufacturer=(manufacturer) ⇒ String

The manufacturer name.

Parameters:

  • manufacturer (String)

Returns:

  • (String)

    manufacturer

  • (String)

    manufacturer

#modelString

The model name.

Returns:

  • (String)

    model

#model=(model) ⇒ String

The model name.

Parameters:

  • model (String)

Returns:

  • (String)

    model

  • (String)

    model

#refresh_rateInteger

The refresh rate, in milli-Hertz.

Returns:

  • (Integer)

    refresh-rate

#refresh_rate=(refresh_rate) ⇒ Integer

The refresh rate, in milli-Hertz.

Parameters:

  • refresh_rate (Integer)

Returns:

  • (Integer)

    refresh-rate

  • (Integer)

    refresh-rate

#scaleFloat

The scale of the monitor.

Returns:

  • (Float)

    scale

#scale=(scale) ⇒ Float

The scale of the monitor.

Parameters:

  • scale (Float)

Returns:

  • (Float)

    scale

  • (Float)

    scale

#scale_factorInteger

The scale factor.

The scale factor is the next larger integer, compared to [propertyGdk.Surface:scale].

Returns:

  • (Integer)

    scale-factor

#scale_factor=(scale_factor) ⇒ Integer

The scale factor.

The scale factor is the next larger integer, compared to [propertyGdk.Surface:scale].

Parameters:

  • scale_factor (Integer)

Returns:

  • (Integer)

    scale-factor

  • (Integer)

    scale-factor

#subpixel_layoutGdk::SubpixelLayout

The subpixel layout.

Returns:

#subpixel_layout=(subpixel_layout) ⇒ Gdk::SubpixelLayout

The subpixel layout.

Parameters:

Returns:

#valid=(valid) ⇒ Boolean

Whether the object is still valid.

Parameters:

  • valid (Boolean)

Returns:

  • (Boolean)

    valid

  • (Boolean)

    valid

#valid?Boolean

Whether the object is still valid.

Returns:

  • (Boolean)

    valid

#width_mmInteger

The width of the monitor, in millimeters.

Returns:

  • (Integer)

    width-mm

#width_mm=(width_mm) ⇒ Integer

The width of the monitor, in millimeters.

Parameters:

  • width_mm (Integer)

Returns:

  • (Integer)

    width-mm

  • (Integer)

    width-mm