Gtk2::S...::Style(3)

πŸ“¦
version 0.12 Β· 2 versions
, in fedora 43

okay so real talk β€” this lil page is Gtk2::S...::Style(3) from the User Contributed Perl Documentation corner of the internet, and it's short, it's sweet, and it's literally all about styling your source view. grab a strawberry πŸ“ and let's go.


🌸 NAME 🌸

Gtk2::SourceView2::Style β€” that's the whole name, bestie. that's the vibe. one class, no notes πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree is giving very short lineage, no cap:

Glib::Object
+----Gtk2::SourceView2::Style

so yeah β€” Gtk2::SourceView2::Style is a Glib::Object, and that's the entire ancestry. iconic minimalism ✨


πŸŽ€ METHODS πŸŽ€

style = $style->copy

this is the one and only method this page lists, and the signature goes exactly like that: style = $style->copy. the page doesn't spell out a description beyond the name itself, so that's all we've got β€” no extra lore, sorry babe πŸ™ˆ


πŸ’– PROPERTIES πŸ’–

every single one of these is readable / writable / construct-only β€” meaning yes you can read it, yes you can write it, and yes it has to be set at construction time, periodt. here's the full roster, no skips:

  • 'background' (string : default undef : readable / writable / construct-only) β€” Background color
  • 'background-set' (boolean : default false : readable / writable / construct-only) β€” Whether background color is set
  • 'bold' (boolean : default false : readable / writable / construct-only) β€” Bold
  • 'bold-set' (boolean : default false : readable / writable / construct-only) β€” Whether bold attribute is set
  • 'foreground' (string : default undef : readable / writable / construct-only) β€” Foreground color
  • 'foreground-set' (boolean : default false : readable / writable / construct-only) β€” Whether foreground color is set
  • 'italic' (boolean : default false : readable / writable / construct-only) β€” Italic
  • 'italic-set' (boolean : default false : readable / writable / construct-only) β€” Whether italic attribute is set
  • 'line-background' (string : default undef : readable / writable / construct-only) β€” Line background color
  • 'line-background-set' (boolean : default false : readable / writable / construct-only) β€” Whether line background color is set
  • 'strikethrough' (boolean : default false : readable / writable / construct-only) β€” Strikethrough
  • 'strikethrough-set' (boolean : default false : readable / writable / construct-only) β€” Whether strikethrough attribute is set
  • 'underline' (boolean : default false : readable / writable / construct-only) β€” Underline
  • 'underline-set' (boolean : default false : readable / writable / construct-only) β€” Whether underline attribute is set
notice the pattern, bestie πŸ‘‘ β€” every visual attribute ships with its own little -set twin that tells you whether that attribute has actually been set. colors default to undef, booleans default to false. so clean, so organized, we love a consistent queen 🌈

πŸ‘€ SEE ALSO πŸ‘€

go read these next, fr fr:

  • Gtk2::SourceView2
  • Glib::Object

Copyright (C) 2009 by Emmanuel Rodriguez


and that's the whole page, babe 🫢 this was rendered by perl v5.42.0 on 2025-07-25 β€” shoutout to the toolchain for timestamping us so cutely, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from