Goo::Ca...emSimple(3)

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

πŸ’– Goo::Canvas::ItemSimple β€” the manual, but make it cute πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation page for Goo::Canvas::ItemSimple ✨ this is the whole thing, every flag, every enum, every lil' default, nothing skipped, periodt.


🌸 NAME 🌸

Goo::Canvas::ItemSimple β€” it's a wrapper for GooCanvasItemSimple. that's it, that's the vibe. it wraps the thing so you don't have to touch the thing directly 🫢


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and it's giving nepo baby:

Glib::Object
+----Goo::Canvas::ItemSimple

πŸŽ€ INTERFACES πŸŽ€

it also does this interface, so it's got range:

Goo::Canvas::Item

✨ METHODS ✨

here's every method, no gatekeeping πŸ’…

  • $item->goo_canvas_item_simple_changed ($recompute_bounds) β€” tells the item "hey, something changed, pls update". takes:
    • $recompute_bounds β€” a boolean. yes or no, true or false, iconic or not.
  • boolean = $item->goo_canvas_item_simple_check_in_path ($x, $y, $cr, $pointer_events) β€” checks whether a point is inside the path. returns a boolean. args:
    • $x β€” a double
    • $y β€” a double
    • $cr β€” a cairo_t
    • $pointer_events β€” a Goo::Canvas::PointerEvents
  • $item->goo_canvas_item_simple_check_style β€” checks the style. no args, no notes, just vibes.
  • GooCanvasBounds = $item->goo_canvas_item_simple_get_path_bounds ($cr) β€” hands you the path bounds back as a GooCanvasBounds. args:
    • $cr β€” a cairo_t
  • $item->goo_canvas_item_simple_paint_path ($cr) β€” paints the path. args:
    • $cr β€” a cairo_t
  • $item->goo_canvas_item_simple_set_model ($model) β€” sets the model. args:
    • $model β€” a Goo::Canvas::ItemModel
  • GooCanvasBounds = $item->goo_canvas_item_simple_user_bounds_to_device ($cr) β€” converts user bounds β†’ device bounds, returns GooCanvasBounds. args:
    • $cr β€” a cairo_t
  • GooCanvasBounds = $item->goo_canvas_item_simple_user_bounds_to_parent ($cr) β€” converts user bounds β†’ parent bounds, returns GooCanvasBounds. args:
    • $cr β€” a cairo_t

πŸ’œ PROPERTIES πŸ’œ

the full lineup, all 21 of them, no skips. format is 'name' (type : default : readable / writable) and then what it actually does πŸ“

  • 'antialias' (Goo::Cairo::Antialias : default "gray" : readable / writable) β€” the antialiasing mode to use.
  • 'clip-fill-rule' (Goo::Cairo::FillRule : default "winding" : readable / writable) β€” the fill rule that decides which parts of the item get clipped.
  • 'clip-path' (string : default undef : writable) β€” the sequence of path commands that specify the clip path.
  • 'fill-color' (string : default undef : writable) β€” the color used to paint the inside of the item. wanna turn painting OFF? set the 'fill-pattern' property to NULL.
  • 'fill-color-rgba' (Glib::UInt : default 0 : readable / writable) β€” same deal, the color for the item's interior, but given as a 32-bit integer value. and again: to disable painting, set 'fill-pattern' to NULL.
  • 'fill-pattern' (Goo::Cairo::Pattern : default undef : readable / writable) β€” the pattern used to paint the interior, or NULL to disable painting entirely.
  • 'fill-pixbuf' (Gtk2::Gdk::Pixbuf : default undef : writable) β€” the pixbuf used to paint the interior. yep, you guessed it: set 'fill-pattern' to NULL to disable painting.
  • 'fill-rule' (Goo::Cairo::FillRule : default "winding" : readable / writable) β€” the fill rule that decides which parts of the item get filled.
  • 'font' (string : default undef : readable / writable) β€” the base font used for the text.
  • 'font-desc' (Pango::FontDescription : default undef : readable / writable) β€” the attributes specifying which font to use.
  • 'hint-metrics' (GooCairoHintMetrics : default "off" : readable / writable) β€” the hinting used for font metrics.
  • 'line-cap' (Goo::Cairo::LineCap : default "butt" : readable / writable) β€” the line cap style to use.
  • 'line-dash' (Goo::Canvas::LineDash : default undef : readable / writable) β€” the dash pattern to use.
  • 'line-join' (Goo::Cairo::LineJoin : default "miter" : readable / writable) β€” the line join style to use.
  • 'line-join-miter-limit' (double : default 10 : readable / writable) β€” the smallest angle to use with miter joins, in degrees. below this limit it switches to bevel joins.
  • 'line-width' (double : default 2 : readable / writable) β€” the line width for the item's perimeter.
  • 'operator' (Goo::Cairo::Operator : default "over" : readable / writable) β€” the compositing operator to use.
  • 'stroke-color' (string : default undef : writable) β€” the color for the item's perimeter. to disable painting, set the 'stroke-pattern' property to NULL.
  • 'stroke-color-rgba' (Glib::UInt : default 0 : readable / writable) β€” the perimeter color, but as a 32-bit integer value. disable painting by setting 'stroke-pattern' to NULL.
  • 'stroke-pattern' (Goo::Cairo::Pattern : default undef : readable / writable) β€” the pattern used to paint the item's perimeter, or NULL to disable painting.
  • 'stroke-pixbuf' (Gtk2::Gdk::Pixbuf : default undef : writable) β€” the pixbuf used to draw the item's perimeter. disable painting by setting 'stroke-pattern' to NULL.

🌈 ENUMS AND FLAGS 🌈

the full menu of allowed values, both the pretty perl name and the screaming C name πŸ’€

enum Goo::Cairo::Antialias

  • 'default' / CAIRO_ANTIALIAS_DEFAULT
  • 'none' / CAIRO_ANTIALIAS_NONE
  • 'gray' / CAIRO_ANTIALIAS_GRAY
  • 'subpixel' / CAIRO_ANTIALIAS_SUBPIXEL

enum Goo::Cairo::FillRule

  • 'winding' / CAIRO_FILL_RULE_WINDING
  • 'even-odd' / CAIRO_FILL_RULE_EVEN_ODD

enum Goo::Cairo::LineCap

  • 'butt' / CAIRO_LINE_CAP_BUTT
  • 'round' / CAIRO_LINE_CAP_ROUND
  • 'square' / CAIRO_LINE_CAP_SQUARE

enum Goo::Cairo::LineJoin

  • 'miter' / CAIRO_LINE_JOIN_MITER
  • 'round' / CAIRO_LINE_JOIN_ROUND
  • 'bevel' / CAIRO_LINE_JOIN_BEVEL

enum Goo::Cairo::Operator

  • 'clear' / CAIRO_OPERATOR_CLEAR
  • 'source' / CAIRO_OPERATOR_SOURCE
  • 'over' / CAIRO_OPERATOR_OVER
  • 'in' / CAIRO_OPERATOR_IN
  • 'out' / CAIRO_OPERATOR_OUT
  • 'atop' / CAIRO_OPERATOR_ATOP
  • 'dest' / CAIRO_OPERATOR_DEST
  • 'dest-over' / CAIRO_OPERATOR_DEST_OVER
  • 'dest-in' / CAIRO_OPERATOR_DEST_IN
  • 'dest-out' / CAIRO_OPERATOR_DEST_OUT
  • 'dest-atop' / CAIRO_OPERATOR_DEST_ATOP
  • 'xor' / CAIRO_OPERATOR_XOR
  • 'add' / CAIRO_OPERATOR_ADD
  • 'saturate' / CAIRO_OPERATOR_SATURATE

flags Goo::Canvas::PointerEvents

  • 'visible-mask' / GOO_CANVAS_EVENTS_VISIBLE_MASK
  • 'painted-mask' / GOO_CANVAS_EVENTS_PAINTED_MASK
  • 'fill-mask' / GOO_CANVAS_EVENTS_FILL_MASK
  • 'stroke-mask' / GOO_CANVAS_EVENTS_STROKE_MASK
  • 'none' / GOO_CANVAS_EVENTS_NONE
  • 'visible-painted' / GOO_CANVAS_EVENTS_VISIBLE_PAINTED
  • 'visible-fill' / GOO_CANVAS_EVENTS_VISIBLE_FILL
  • 'visible-stroke' / GOO_CANVAS_EVENTS_VISIBLE_STROKE
  • 'visible' / GOO_CANVAS_EVENTS_VISIBLE
  • 'painted' / GOO_CANVAS_EVENTS_PAINTED
  • 'fill' / GOO_CANVAS_EVENTS_FILL
  • 'stroke' / GOO_CANVAS_EVENTS_STROKE
  • 'all' / GOO_CANVAS_EVENTS_ALL

enum GooCairoHintMetrics

  • 'default' / CAIRO_HINT_METRICS_DEFAULT
  • 'off' / CAIRO_HINT_METRICS_OFF
  • 'on' / CAIRO_HINT_METRICS_ON

πŸ‘‘ SEE ALSO πŸ‘‘

  • Glib::Object

Copyright (C) 2025 Gtk2-Perl Team


okay that's the whole page bestie, you ate it, no crumbs πŸ“βœ¨ and real quick, the sign-off deets: this was perl v5.42.0, dated 2025-07-25, from the Goo::Ca...emSimple(3) page in the User Contributed Perl Documentation. go forth and canvas, my main character πŸ¦‹πŸ’…

πŸ“¦ where this page comes from