Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: IconPaintableMeta

[219:14] static extends: object

Generated metadata helpers for IconPaintable class surfaces.

Methods

  • properties ()

    Returns property metadata for IconPaintable.

    • @r A list.

class: IconPaintable

[14:7] extends: object

Contains information found when looking up an icon in GtkIconTheme or loading it from a file. GtkIconPaintable implements GdkPaintable and GtkSymbolicPaintable.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • IconPaintable (file = null, size = null, scale = null)

    Creates a GtkIconPaintable for a file with a given size and scale. The icon can then be rendered by using it as a GdkPaintable.

    • @p file is a GFile.
    • @p size is desired icon size, in application pixels.
    • @p scale is the desired scale.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asPaintable ()

    Wraps this handle as Paintable.

    • @r A Paintable object.
  • asSymbolicPaintable ()

    Wraps this handle as SymbolicPaintable.

    • @r A SymbolicPaintable object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setIssymbolic (bool Value)

    Whether the icon is symbolic or not.

    • @p Value is the new property value.
    • @r None.
  • setScale (int Value)

    Writes the scale property.

    • @p Value is the new property value.
    • @r None.
  • setSize (int Value)

    Writes the size property.

    • @p Value is the new property value.
    • @r None.
  • get_file ()

    Gets the GFile that was used to load the icon. Returns %NULL if the icon was not loaded from a file.

  • get_icon_name ()

    Get the icon name being used for this icon. When an icon looked up in the icon theme was not available, the icon theme may use fallback icons - either those specified to gtk_icon_theme_lookup_icon() or the always-available "image-missing". The icon chosen is returned by this function. If the icon was created without an icon theme, this function returns %NULL.

  • is_symbolic ()

    Checks if the icon is symbolic or not. This currently uses only the file name and not the file contents for determining this. This behaviour may change in the future.