Class GutterRendererPixbuf

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Proxy

@Generated("org.javagi.JavaGI") public class GutterRendererPixbuf extends GutterRenderer implements Accessible, Buildable, ConstraintTarget

Renders a pixbuf in the gutter.

A GtkSourceGutterRendererPixbuf can be used to render an image in a cell of Gutter.

  • Constructor Details

    • GutterRendererPixbuf

      public GutterRendererPixbuf(MemorySegment address)
      Create a GutterRendererPixbuf instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • GutterRendererPixbuf

      public GutterRendererPixbuf()
      Create a new GutterRendererPixbuf.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the GutterRendererPixbuf class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected GutterRendererPixbuf asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GutterRenderer
      Returns:
      the instance as if it were its parent type
    • getGicon

      public Icon getGicon()
      Get the gicon of the renderer
      Returns:
      a GIcon
    • getIconName

      public String getIconName()
    • getPaintable

      public @Nullable Paintable getPaintable()
      Gets a Paintable that was set with setPaintable(Paintable)
      Returns:
      a GdkPaintable or null
    • getPixbuf

      public Pixbuf getPixbuf()
      Get the pixbuf of the renderer.
      Returns:
      a GdkPixbuf
    • overlayPaintable

      public void overlayPaintable(Paintable paintable)
      Allows overlaying a paintable on top of any other image that has been set for the pixbuf. This will be applied when the widget is next snapshot.
      Parameters:
      paintable - a GdkPaintable
    • setGicon

      public void setGicon(@Nullable Icon icon)
    • setIconName

      public void setIconName(@Nullable String iconName)
    • setPaintable

      public void setPaintable(@Nullable Paintable paintable)
    • setPixbuf

      public void setPixbuf(@Nullable Pixbuf pixbuf)
    • builder

      public static GutterRendererPixbuf.Builder<? extends GutterRendererPixbuf.Builder> builder()
      A GutterRendererPixbuf.Builder object constructs a GutterRendererPixbuf with the specified properties. Use the various set...() methods to set properties, and finish construction with GutterRendererPixbuf.Builder.build().
      Returns:
      the builder object