Gtk2::Gdk::Display(3)
β¨ Gtk2::Gdk::Display β bestie edition β¨
okay so. Gtk2::Gdk::Display is literally just a lil wrapper for GdkDisplay π«Ά like the Perl-side bestie for the C-side thing. That's the whole NAME situation, no cap.
πΈ HIERARCHY πΈ
she has ancestors, she has a bloodline, she's royalty:
Glib::Object
+----Gtk2::Gdk::Display
π METHODS π
okay this is the main character section. every single one of them, in order, because we don't skip.
$display->beepβ makes the display go beep. that's it. that's the method. iconic honestly π$display->closeβ closes the display. shutting her down, closing the tab, logging off π¦device = $display->get_core_pointerβ hands you back the core pointer as a device.$display->set_cursor_theme ($theme, $size)β sets the cursor theme and its size.$theme(string) β the theme name, as a string.$size(integer) β the size, as an integer.- Since: gtk+ 2.8 β¨
integer = $display->get_default_cursor_sizeβ gives you back the default cursor size, as an integer.- Since: gtk+ 2.4 β¨
display or undef = Gtk2::Gdk::Display->get_defaultβ class method! returns the default display, orundefif there isn't one. so you either get a display or you get nothing, very demure πwindow = $display->get_default_groupβ returns the default group window.- Since: gtk+ 2.4 β¨
screen = $display->get_default_screenβ returns the default screen. defaults on defaults, we love to see it.$display->set_double_click_distance ($distance)β sets how far apart two clicks can be and still count as a double click.$distance(integer)- Since: gtk+ 2.4 β¨
$display->set_double_click_time ($msec)β sets how fast two clicks have to be to count as a double click.$msec(integer) β in milliseconds, bestie.
event = $display->get_eventβ pulls an event off the display.$display->flushβ flushes the display. get that stuff out there π¨- Since: gtk+ 2.4 β¨
$display->grabβ grabs the display.boolean = $display->is_closedβ tells you if the display is closed, as a boolean. true = she's gone, false = she's still here π- Since: gtk+ 2.22 β¨
$display->keyboard_ungrab ($time_)β releases the keyboard grab.$time_(unsigned)
list = $display->list_devicesβ returns a list ofGtk2::Gdk::Devices. a whole roster. the lineup π(width, height) = $display->get_maximal_cursor_sizeβ returns the biggest cursor size as a(width, height)pair, list context bestie.- Since: gtk+ 2.4 β¨
integer = $display->get_n_screensβ how many screens does this display have? an integer, that's how many.string = $display->get_nameβ the display's name, as a string.display or undef = Gtk2::Gdk::Display->open ($display_name)β class method! opens a display by name, and you get a display back orundef.$display_name(string or undef) β string, orundef, no judgement π
event = $display->peek_eventβ peeks at an event. peek, not take. looking respectfully πlist = $display->get_pointerβ returns the pointer as a list.boolean = $display->pointer_is_grabbedβ is the pointer grabbed? boolean says yes or no.$display->pointer_ungrab ($time_)β releases the pointer grab.$time_(unsigned)
$display->put_event ($event)β shoves an event into the display.$event(Gtk2::Gdk::Event)
$display->register_standard_event_type ($event_base, $n_events)β registers a standard event type.$event_base(integer)$n_events(integer)- Since: gtk+ 2.4 β¨
boolean = $display->request_selection_notification ($selection)β asks for selection notifications. returns a boolean.$selection(Gtk2::Gdk::Atom)- Since: gtk+ 2.6 β¨
screen = $display->get_screen ($screen_num)β grabs you a screen by number.$screen_num(integer)
string = $display->get_startup_notification_idβ the startup notification id, as a string.- Since: gtk+ 2.12 β¨
$display->store_clipboard ($clipboard_window, $time_, ...)β stores the clipboard. yes there's a...in there, she takes a whole list of atoms.$clipboard_window(Gtk2::Gdk::Window)$time_(unsigned)...(list) ofGtk2::Gdk::Atom's- Since: gtk+ 2.6 β¨
boolean = $display->supports_clipboard_persistenceβ does this display support clipboard persistence? boolean, fr fr.- Since: gtk+ 2.6 β¨
boolean = $display->supports_compositeβ does it support composite? boolean.- Since: gtk+ 2.12 β¨
boolean = $display->supports_cursor_alphaβ cursor alpha support? boolean.- Since: gtk+ 2.4 β¨
boolean = $display->supports_cursor_colorβ cursor color support? boolean.- Since: gtk+ 2.4 β¨
boolean = $display->supports_input_shapesβ input shapes support? boolean.- Since: gtk+ 2.10 β¨
boolean = $display->supports_selection_notificationβ selection notification support? boolean.- Since: gtk+ 2.6 β¨
boolean = $display->supports_shapesβ shapes support? boolean.- Since: gtk+ 2.10 β¨
$display->syncβ syncs the display. get in sync, get in formation π$display->ungrabβ ungrabs the display.unsigned = $display->get_user_timeβ the user time, as an unsigned. returns unsigned.- Since: gtk+ 2.8 β¨
$display->warp_pointer ($screen, $x, $y)β warps the pointer to a spot on a screen. teleportation arc π₯$screen(Gtk2::Gdk::Screen)$x(integer)$y(integer)- Since: gtk+ 2.8 β¨
(window, win_x, win_y) = $display->get_window_at_pointer ($display)β tells you which window the pointer is over, pluswin_xandwin_y, all as a list.- takes
$displayas its arg.
- takes
π SIGNALS π
closedβ signature is(Gtk2::Gdk::Display, boolean). fires when the display closes. the she's gone moment π
π SEE ALSO π
Gtk2Glib::Object
go read those too, iykyk π
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
and that's the whole page bestie, no notes π this was Gtk2::Gdk::Display(3) from perl v5.42.0, dated 2025-07-25 β mwah, slay, go write some Perl π
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms