StockItemProtocol
public protocol StockItemProtocol
The StockItemProtocol protocol exposes the methods and properties of an underlying GtkStockItem instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see StockItem.
Alternatively, use StockItemRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkStockIteminstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkStockIteminstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkStockIteminstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkStockItem>! { get } -
Required Initialiser for types conforming to
StockItemProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCopies a stock item, mostly useful for language bindings and not in applications.
copy is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable func copy() -> StockItemRef! -
free()Extension methodFrees a stock item allocated on the heap, such as one returned by
gtk_stock_item_copy(). Also frees the fields inside the stock item, if they are notnil.free is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable func free() -
stockLookup(stockID:Extension method) Fills
itemwith the registered values forstock_id, returningtrueifstock_idwas known.stock_lookup is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable func stockLookup(stockID: UnsafePointer<gchar>!) -> Bool -
stockIDExtension methodIdentifier.
Declaration
Swift
@inlinable var stockID: UnsafeMutablePointer<gchar>! { get set } -
labelExtension methodUser visible label.
Declaration
Swift
@inlinable var label: UnsafeMutablePointer<gchar>! { get set } -
modifierExtension methodModifier type for keyboard accelerator
Declaration
Swift
@inlinable var modifier: Gdk.ModifierType { get set } -
keyvalExtension methodKeyboard accelerator
Declaration
Swift
@inlinable var keyval: guint { get set } -
translationDomainExtension methodTranslation domain of the menu or toolbar item
Declaration
Swift
@inlinable var translationDomain: UnsafeMutablePointer<gchar>! { get set }
View on GitHub
Install in Dash
StockItemProtocol Protocol Reference