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_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkIconSet>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkIconSet>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkIconSet>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkIconSet>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
IconSetProtocol
Declaration
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 icon
in various sizes and widget states. It can provide a
GdkPixbuf
for a given size and state on request, and automatically caches some of the renderedGdkPixbuf
objects.Normally you would use
gtk_widget_render_icon_pixbuf()
instead of usingGtkIconSet
directly. The one case where you’d useGtkIconSet
is 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
GtkIconSet
withpixbuf
as the default/fallback source image. If you don’t add any additionalGtkIconSource
to 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
GtkIconSet
withpixbuf
as the default/fallback source image. If you don’t add any additionalGtkIconSource
to 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