---
name: "Gtk2::Gdk::Display"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::Gdk::Display"
---

# Gtk2::Gdk::Display(3pm)

wrapper for GdkDisplay

## NAME

Gtk2::Gdk::Display - wrapper for GdkDisplay

## HIERARCHY

```
  Glib::Object
  +----Gtk2::Gdk::Display
```

## METHODS

### $display-\>beep

### $display-\>close

### device = $display-\>get\_core\_pointer

### $display-\>set\_cursor\_theme ($theme, $size)

- •

  `$theme` (string)

- •

  `$size` (integer)

Since: gtk+ 2.8

### integer = $display-\>get\_default\_cursor\_size

Since: gtk+ 2.4

### display or undef = Gtk2::Gdk::Display-\>get\_default

### window = $display-\>get\_default\_group

Since: gtk+ 2.4

### screen = $display-\>get\_default\_screen

### $display-\>set\_double\_click\_distance ($distance)

- •

  `$distance` (integer)

Since: gtk+ 2.4

### $display-\>set\_double\_click\_time ($msec)

- •

  `$msec` (integer)

### event = $display-\>get\_event

### $display-\>flush

Since: gtk+ 2.4

### $display-\>grab

### boolean = $display-\>is\_closed

Since: gtk+ 2.22

### $display-\>keyboard\_ungrab ($time\_)

- •

  `$time_` (unsigned)

### list = $display-\>list\_devices

Returns a list of Gtk2::Gdk::Devices

### (width, height) = $display-\>get\_maximal\_cursor\_size

Since: gtk+ 2.4

### integer = $display-\>get\_n\_screens

### string = $display-\>get\_name

### display or undef = Gtk2::Gdk::Display-\>open ($display\_name)

- •

  `$display_name` (string or undef)

### event = $display-\>peek\_event

### list = $display-\>get\_pointer

### boolean = $display-\>pointer\_is\_grabbed

### $display-\>pointer\_ungrab ($time\_)

- •

  `$time_` (unsigned)

### $display-\>put\_event ($event)

- •

  `$event` (Gtk2::Gdk::Event)

### $display-\>register\_standard\_event\_type ($event\_base, $n\_events)

- •

  `$event_base` (integer)

- •

  `$n_events` (integer)

Since: gtk+ 2.4

### boolean = $display-\>request\_selection\_notification ($selection)

- •

  `$selection` (Gtk2::Gdk::Atom)

Since: gtk+ 2.6

### screen = $display-\>get\_screen ($screen\_num)

- •

  `$screen_num` (integer)

### string = $display-\>get\_startup\_notification\_id

Since: gtk+ 2.12

### $display-\>store\_clipboard ($clipboard\_window, $time\_, ...)

- •

  `$clipboard_window` (Gtk2::Gdk::Window)

- •

  `$time_` (unsigned)

- •

  ... (list) of Gtk2::Gdk::Atom's

Since: gtk+ 2.6

### boolean = $display-\>supports\_clipboard\_persistence

Since: gtk+ 2.6

### boolean = $display-\>supports\_composite

Since: gtk+ 2.12

### boolean = $display-\>supports\_cursor\_alpha

Since: gtk+ 2.4

### boolean = $display-\>supports\_cursor\_color

Since: gtk+ 2.4

### boolean = $display-\>supports\_input\_shapes

Since: gtk+ 2.10

### boolean = $display-\>supports\_selection\_notification

Since: gtk+ 2.6

### boolean = $display-\>supports\_shapes

Since: gtk+ 2.10

### $display-\>sync

### $display-\>ungrab

### unsigned = $display-\>get\_user\_time

Since: gtk+ 2.8

### $display-\>warp\_pointer ($screen, $x, $y)

- •

  `$screen` (Gtk2::Gdk::Screen)

- •

  `$x` (integer)

- •

  `$y` (integer)

Since: gtk+ 2.8

### (window, win\_x, win\_y) = $display-\>get\_window\_at\_pointer ($display)

## SIGNALS

- **closed** (Gtk2::Gdk::Display, boolean)

  ## SEE ALSO

Gtk2, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
