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.

  • ptr

    Untyped pointer to the underlying GtkStockItem instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed 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)

StockItem Record: StockItemProtocol extension (methods and fields)

  • copy() Extension method

    Copies 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 method

    Frees 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 not nil.

    free is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func free()
  • stockLookup(stockID:) Extension method

    Fills item with the registered values for stock_id, returning true if stock_id was known.

    stock_lookup is deprecated: This method is deprecated.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func stockLookup(stockID: UnsafePointer<gchar>!) -> Bool
  • stockID Extension method

    Identifier.

    Declaration

    Swift

    @inlinable
    var stockID: UnsafeMutablePointer<gchar>! { get set }
  • label Extension method

    User visible label.

    Declaration

    Swift

    @inlinable
    var label: UnsafeMutablePointer<gchar>! { get set }
  • modifier Extension method

    Modifier type for keyboard accelerator

    Declaration

    Swift

    @inlinable
    var modifier: Gdk.ModifierType { get set }
  • keyval Extension method

    Keyboard accelerator

    Declaration

    Swift

    @inlinable
    var keyval: guint { get set }
  • translationDomain Extension method

    Translation domain of the menu or toolbar item

    Declaration

    Swift

    @inlinable
    var translationDomain: UnsafeMutablePointer<gchar>! { get set }