IconSetRef
public struct IconSetRef : IconSetProtocol
The IconSetRef type acts as a lightweight Swift reference to an underlying GtkIconSet instance.
It exposes methods that can operate on this data type through IconSetProtocol conformance.
Use IconSetRef only as an unowned reference to an existing GtkIconSet instance.
-
Untyped pointer to the underlying `GtkIconSet` instance.For type-safe access, use the generated, typed pointer
icon_set_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkIconSet>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkIconSet>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkIconSet>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkIconSet>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
IconSetProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : IconSetProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
IconSetProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
IconSetProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
IconSetProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
IconSetProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
IconSetProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Creates a new `GtkIconSet`. A `GtkIconSet` represents a single iconin various sizes and widget states. It can provide a
GdkPixbuffor a given size and state on request, and automatically caches some of the renderedGdkPixbufobjects.Normally you would use
gtk_widget_render_icon_pixbuf()instead of usingGtkIconSetdirectly. The one case where you’d useGtkIconSetis to create application-specific icon sets to place in aGtkIconFactory.new is deprecated: Use #GtkIconTheme instead.
Declaration
Swift
@available(*, deprecated) @inlinable init() -
Creates a new
GtkIconSetwithpixbufas the default/fallback source image. If you don’t add any additionalGtkIconSourceto the icon set, all variants of the icon will be created frompixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted.new_from_pixbuf is deprecated: Use #GtkIconTheme instead.
Declaration
Swift
@available(*, deprecated) @inlinable init<PixbufT>(pixbuf: PixbufT) where PixbufT : PixbufProtocol -
Creates a new
GtkIconSetwithpixbufas the default/fallback source image. If you don’t add any additionalGtkIconSourceto the icon set, all variants of the icon will be created frompixbuf, using scaling, pixelation, etc. as required to adjust the icon size or make the icon look insensitive/prelighted.new_from_pixbuf is deprecated: Use #GtkIconTheme instead.
Declaration
Swift
@available(*, deprecated) @inlinable static func newFrom<PixbufT>(pixbuf: PixbufT) -> IconSetRef! where PixbufT : PixbufProtocol
View on GitHub
Install in Dash
IconSetRef Structure Reference