Gtk2::C...nDialog(3)
π NAME π
Gtk2::ColorSelectionDialog β bestie, it's literally just a wrapper for GtkColorSelectionDialog, and yes she's serving looks π
so like, you know how you want a whole pop-up window that lets a girl pick a color? that's her. that's the whole vibe. she's a Gtk2::Dialog that comes pre-loaded with a color picker inside, plus buttons, plus all the drama. iconic behavior honestly β¨
π¦ HIERARCHY π¦
the family tree, and yes she's got main character energy at the very bottom πΈ
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::Dialog
+----Gtk2::ColorSelectionDialog
ngl that's a long lineage but every single ancestor is doing their part π«Ά
π INTERFACES π
she also shows up to these, no cap:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
β¨ METHODS β¨
π widget = Gtk2::ColorSelectionDialog->new ($title)
build the whole thing from scratch, bestie. takes:
$title(string) β the string you want up in the title bar. that's it. that's the whole assignment π
π widget = $dialog->cancel_button
grabs you the cancel button so you can do whatever you wanna do with it.
π widget = $dialog->get_color_selection
the color selection itself!! this is the one you actually wanted, fr fr. get it, do stuff with it, go off π
π widget = $dialog->help_button
the help button. yes she has one. yes it's there.
π widget = $dialog->ok_button
the OK button. the one that says yes. the yes-girl of buttons π
π₯ PROPERTIES π₯
every single one of these is Gtk2::Widget, default undef, and readable. read-only besties, no touching π«Ά
'cancel-button'(Gtk2::Widget: default undef : readable) β the cancel button of the dialog. the "never mind, love u tho" button π'color-selection'(Gtk2::Widget: default undef : readable) β the color selection embedded in the dialog. the whole point, lowkey π¨'help-button'(Gtk2::Widget: default undef : readable) β the help button of the dialog. she's there when you need her π'ok-button'(Gtk2::Widget: default undef : readable) β the OK button of the dialog. the commitment button, periodt β¨
π SEE ALSO π
go read these too, they're all part of the friend group:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window, Gtk2::Dialog
πΈ COPYRIGHT πΈ
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
ok that's the whole page bestie, you ate that π β¨
and a little sign-off for the girlies who read all the way to the bottom: this was rendered from perl v5.42.0, dated 2025-07-25, and honestly? she's still cute. no cap. ππ¦π
π¦ 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