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
GtkStockItem
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GtkStockItem
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkStockItem
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkStockItem>! { get }
-
Required Initialiser for types conforming to
StockItemProtocol
Declaration
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
item
with the registered values forstock_id
, returningtrue
ifstock_id
was known.stock_lookup is deprecated: This method is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable func stockLookup(stockID: UnsafePointer<gchar>!) -> Bool
-
stockID
Extension methodIdentifier.
Declaration
Swift
@inlinable var stockID: UnsafeMutablePointer<gchar>! { get set }
-
label
Extension methodUser visible label.
Declaration
Swift
@inlinable var label: UnsafeMutablePointer<gchar>! { get set }
-
modifier
Extension methodModifier type for keyboard accelerator
Declaration
Swift
@inlinable var modifier: Gdk.ModifierType { get set }
-
keyval
Extension methodKeyboard accelerator
Declaration
Swift
@inlinable var keyval: guint { get set }
-
translationDomain
Extension methodTranslation domain of the menu or toolbar item
Declaration
Swift
@inlinable var translationDomain: UnsafeMutablePointer<gchar>! { get set }