StyleProtocol

public protocol StyleProtocol : ObjectProtocol

A GtkStyle object encapsulates the information that provides the look and feel for a widget.

> In GTK+ 3.0, GtkStyle has been deprecated and replaced by > GtkStyleContext.

Each GtkWidget has an associated GtkStyle object that is used when rendering that widget. Also, a GtkStyle holds information for the five possible widget states though not every widget supports all five states; see GtkStateType.

Usually the GtkStyle for a widget is the same as the default style that is set by GTK+ and modified the theme engine.

Usually applications should not need to use or modify the GtkStyle of their widgets.

The StyleProtocol protocol exposes the methods and properties of an underlying GtkStyle 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 Style. Alternatively, use StyleRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkStyle instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkStyle instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkStyle instance.

    Declaration

    Swift

    var style_ptr: UnsafeMutablePointer<GtkStyle>! { get }
  • Required Initialiser for types conforming to StyleProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Style Class

  • Bind a StylePropertyName source property to a given target object.

    Declaration

    Swift

    @discardableResult
    @inlinable
    func bind<Q, T>(property source_property: StylePropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocol

    Parameters

    source_property

    the source property to bind

    target

    the target object to bind to

    target_property

    the target property to bind to

    flags

    the flags to pass to the Binding

    transform_from

    ValueTransformer to use for forward transformation

    transform_to

    ValueTransformer to use for backwards transformation

    Return Value

    binding reference or nil in case of an error

  • get(property:) Extension method

    Get the value of a Style property

    Declaration

    Swift

    @inlinable
    func get(property: StylePropertyName) -> GLibObject.Value

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

  • set(property:value:) Extension method

    Set the value of a Style property. Note that this will only have an effect on properties that are writable and not construct-only!

    Declaration

    Swift

    @inlinable
    func set(property: StylePropertyName, value v: GLibObject.Value)

    Parameters

    property

    the property to get the value for

    Return Value

    the value of the named property

Style signals

  • Connect a Swift signal handler to the given, typed StyleSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: StyleSignalName, flags f: ConnectFlags = ConnectFlags(0), handler h: @escaping SignalHandler) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    handler

    The Swift signal handler (function or callback) to invoke on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • Connect a C signal handler to the given, typed StyleSignalName signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func connect(signal s: StyleSignalName, flags f: ConnectFlags = ConnectFlags(0), data userData: gpointer!, destroyData destructor: GClosureNotify? = nil, signalHandler h: @escaping GCallback) -> Int

    Parameters

    signal

    The signal to connect

    flags

    The connection flags to use

    data

    A pointer to user data to provide to the callback

    destroyData

    A GClosureNotify C function to destroy the data pointed to by userData

    signalHandler

    The C function to be called on the given signal

    Return Value

    The signal handler ID (always greater than 0 for successful connections)

  • onRealize(flags:handler:) Extension method

    Emitted when the style has been initialized for a particular visual. Connecting to this signal is probably seldom useful since most of the time applications and widgets only deal with styles that have been already realized.

    Note

    This represents the underlying realize signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onRealize(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: StyleRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

    The signal handler to call Run the given callback whenever the realize signal is emitted

  • realizeSignal Extension method

    Typed realize signal for using the connect(signal:) methods

    Declaration

    Swift

    static var realizeSignal: StyleSignalName { get }
  • onUnrealize(flags:handler:) Extension method

    Emitted when the aspects of the style specific to a particular visual is being cleaned up. A connection to this signal can be useful if a widget wants to cache objects as object data on GtkStyle. This signal provides a convenient place to free such cached objects.

    Note

    This represents the underlying unrealize signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onUnrealize(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: StyleRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    handler

    The signal handler to call Run the given callback whenever the unrealize signal is emitted

  • unrealizeSignal Extension method

    Typed unrealize signal for using the connect(signal:) methods

    Declaration

    Swift

    static var unrealizeSignal: StyleSignalName { get }
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Note

    This represents the underlying notify::context signal

    Declaration

    Swift

    @discardableResult
    @inlinable
    func onNotifyContext(flags: ConnectFlags = ConnectFlags(0), handler: @escaping (_ unownedSelf: StyleRef, _ pspec: ParamSpecRef) -> Void) -> Int

    Parameters

    flags

    Flags

    unownedSelf

    Reference to instance of self

    pspec

    the GParamSpec of the property which changed.

    handler

    The signal handler to call Run the given callback whenever the notifyContext signal is emitted

  • notifyContextSignal Extension method

    Typed notify::context signal for using the connect(signal:) methods

    Declaration

    Swift

    static var notifyContextSignal: StyleSignalName { get }

Style Class: StyleProtocol extension (methods and fields)

  • apply_default_background is deprecated: Use #GtkStyleContext instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func applyDefaultBackground<ContextT, WindowT>(cr: ContextT, window: WindowT, stateType: GtkStateType, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WindowT : WindowProtocol
  • attach(window:) Extension method

    Attaches a style to a window; this process allocates the colors and creates the GC’s for the style - it specializes it to a particular visual. The process may involve the creation of a new style if the style has already been attached to a window with a different style and visual.

    Since this function may return a new object, you have to use it in the following way: style = gtk_style_attach (style, window)

    attach is deprecated: Use gtk_widget_style_attach() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func attach<WindowT>(window: WindowT) -> StyleRef! where WindowT : WindowProtocol
  • copy() Extension method

    Creates a copy of the passed in GtkStyle object.

    copy is deprecated: Use #GtkStyleContext instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func copy() -> StyleRef!
  • detach() Extension method

    Detaches a style from a window. If the style is not attached to any windows anymore, it is unrealized. See gtk_style_attach().

    detach is deprecated: Use #GtkStyleContext instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func detach()
  • Queries the value of a style property corresponding to a widget class is in the given style.

    Declaration

    Swift

    @inlinable
    func getStyleProperty<ValueT>(widgetType: GType, propertyName: UnsafePointer<gchar>!, value: ValueT) where ValueT : ValueProtocol
  • Non-vararg variant of gtk_style_get(). Used primarily by language bindings.

    Declaration

    Swift

    @inlinable
    func getValist(widgetType: GType, firstPropertyName: UnsafePointer<gchar>!, varArgs: CVaListPointer)
  • hasContext() Extension method

    Returns whether style has an associated GtkStyleContext.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func hasContext() -> Bool
  • Looks up color_name in the style’s logical color mappings, filling in color and returning true if found, otherwise returning false. Do not cache the found mapping, because it depends on the GtkStyle and might change when a theme switch occurs.

    lookup_color is deprecated: Use gtk_style_context_lookup_color() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func lookupColor<ColorT>(colorName: UnsafePointer<gchar>!, color: ColorT) -> Bool where ColorT : ColorProtocol
  • lookupIconSet(stockID:) Extension method

    Looks up stock_id in the icon factories associated with style and the default icon factory, returning an icon set if found, otherwise nil.

    lookup_icon_set is deprecated: Use gtk_style_context_lookup_icon_set() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func lookupIconSet(stockID: UnsafePointer<gchar>!) -> IconSetRef!
  • Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

    render_icon is deprecated: Use gtk_render_icon_pixbuf() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func renderIcon<IconSourceT>(source: IconSourceT, direction: GtkTextDirection, state: GtkStateType, size: GtkIconSize, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil) -> PixbufRef! where IconSourceT : IconSourceProtocol
  • Renders the icon specified by source at the given size according to the given parameters and returns the result in a pixbuf.

    render_icon is deprecated: Use gtk_render_icon_pixbuf() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func renderIcon<IconSourceT, WidgetT>(source: IconSourceT, direction: GtkTextDirection, state: GtkStateType, size: GtkIconSize, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil) -> PixbufRef! where IconSourceT : IconSourceProtocol, WidgetT : WidgetProtocol
  • Sets the background of window to the background color or pixmap specified by style for the given state.

    set_background is deprecated: Use gtk_style_context_set_background() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func setBackground<WindowT>(window: WindowT, stateType: GtkStateType) where WindowT : WindowProtocol
  • Draws an arrow in the given rectangle on cr using the given parameters. arrow_type determines the direction of the arrow.

    paint_arrow is deprecated: Use gtk_render_arrow() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintArrow<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, arrowType: GtkArrowType, fill: Bool, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws an arrow in the given rectangle on cr using the given parameters. arrow_type determines the direction of the arrow.

    paint_arrow is deprecated: Use gtk_render_arrow() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintArrow<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, arrowType: GtkArrowType, fill: Bool, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a box on cr with the given parameters.

    paint_box is deprecated: Use gtk_render_frame() and gtk_render_background() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintBox<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a box on cr with the given parameters.

    paint_box is deprecated: Use gtk_render_frame() and gtk_render_background() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintBox<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a box in cr using the given style and state and shadow type, leaving a gap in one side.

    paint_box_gap is deprecated: Use gtk_render_frame_gap() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintBoxGap<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType, gapX: Int, gapWidth: Int) where ContextT : ContextProtocol
  • Draws a box in cr using the given style and state and shadow type, leaving a gap in one side.

    paint_box_gap is deprecated: Use gtk_render_frame_gap() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintBoxGap<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType, gapX: Int, gapWidth: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a check button indicator in the given rectangle on cr with the given parameters.

    paint_check is deprecated: Use gtk_render_check() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintCheck<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a check button indicator in the given rectangle on cr with the given parameters.

    paint_check is deprecated: Use gtk_render_check() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintCheck<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a diamond in the given rectangle on window using the given parameters.

    paint_diamond is deprecated: Use cairo instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintDiamond<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a diamond in the given rectangle on window using the given parameters.

    paint_diamond is deprecated: Use cairo instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintDiamond<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws an expander as used in GtkTreeView. x and y specify the center the expander. The size of the expander is determined by the “expander-size” style property of widget. (If widget is not specified or doesn’t have an “expander-size” property, an unspecified default size will be used, since the caller doesn’t have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.

    paint_expander is deprecated: Use gtk_render_expander() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintExpander<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, expanderStyle: GtkExpanderStyle) where ContextT : ContextProtocol
  • Draws an expander as used in GtkTreeView. x and y specify the center the expander. The size of the expander is determined by the “expander-size” style property of widget. (If widget is not specified or doesn’t have an “expander-size” property, an unspecified default size will be used, since the caller doesn’t have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.

    paint_expander is deprecated: Use gtk_render_expander() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintExpander<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, expanderStyle: GtkExpanderStyle) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws an extension, i.e. a notebook tab.

    paint_extension is deprecated: Use gtk_render_extension() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintExtension<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType) where ContextT : ContextProtocol
  • Draws an extension, i.e. a notebook tab.

    paint_extension is deprecated: Use gtk_render_extension() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintExtension<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a flat box on cr with the given parameters.

    paint_flat_box is deprecated: Use gtk_render_frame() and gtk_render_background() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintFlatBox<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a flat box on cr with the given parameters.

    paint_flat_box is deprecated: Use gtk_render_frame() and gtk_render_background() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintFlatBox<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a focus indicator around the given rectangle on cr using the given style.

    paint_focus is deprecated: Use gtk_render_focus() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintFocus<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a focus indicator around the given rectangle on cr using the given style.

    paint_focus is deprecated: Use gtk_render_focus() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintFocus<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a handle as used in GtkHandleBox and GtkPaned.

    paint_handle is deprecated: Use gtk_render_handle() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintHandle<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, orientation: GtkOrientation) where ContextT : ContextProtocol
  • Draws a handle as used in GtkHandleBox and GtkPaned.

    paint_handle is deprecated: Use gtk_render_handle() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintHandle<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, orientation: GtkOrientation) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a horizontal line from (x1, y) to (x2, y) in cr using the given style and state.

    paint_hline is deprecated: Use gtk_render_line() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintHline<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x1: Int, x2: Int, y: Int) where ContextT : ContextProtocol
  • Draws a horizontal line from (x1, y) to (x2, y) in cr using the given style and state.

    paint_hline is deprecated: Use gtk_render_line() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintHline<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x1: Int, x2: Int, y: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a layout on cr using the given parameters.

    paint_layout is deprecated: Use gtk_render_layout() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintLayout<ContextT, LayoutT>(cr: ContextT, stateType: GtkStateType, useText: Bool, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, layout: LayoutT) where ContextT : ContextProtocol, LayoutT : LayoutProtocol
  • Draws a layout on cr using the given parameters.

    paint_layout is deprecated: Use gtk_render_layout() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintLayout<ContextT, LayoutT, WidgetT>(cr: ContextT, stateType: GtkStateType, useText: Bool, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, layout: LayoutT) where ContextT : ContextProtocol, LayoutT : LayoutProtocol, WidgetT : WidgetProtocol
  • Draws a radio button indicator in the given rectangle on cr with the given parameters.

    paint_option is deprecated: Use gtk_render_option() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintOption<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a radio button indicator in the given rectangle on cr with the given parameters.

    paint_option is deprecated: Use gtk_render_option() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintOption<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a resize grip in the given rectangle on cr using the given parameters.

    paint_resize_grip is deprecated: Use gtk_render_handle() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintResizeGrip<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, edge: GdkWindowEdge, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a resize grip in the given rectangle on cr using the given parameters.

    paint_resize_grip is deprecated: Use gtk_render_handle() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintResizeGrip<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, edge: GdkWindowEdge, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a shadow around the given rectangle in cr using the given style and state and shadow type.

    paint_shadow is deprecated: Use gtk_render_frame() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintShadow<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a shadow around the given rectangle in cr using the given style and state and shadow type.

    paint_shadow is deprecated: Use gtk_render_frame() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintShadow<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a shadow around the given rectangle in cr using the given style and state and shadow type, leaving a gap in one side.

    paint_shadow_gap is deprecated: Use gtk_render_frame_gap() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintShadowGap<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType, gapX: Int, gapWidth: Int) where ContextT : ContextProtocol
  • Draws a shadow around the given rectangle in cr using the given style and state and shadow type, leaving a gap in one side.

    paint_shadow_gap is deprecated: Use gtk_render_frame_gap() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintShadowGap<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, gapSide: GtkPositionType, gapX: Int, gapWidth: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a slider in the given rectangle on cr using the given style and orientation.

    paint_slider is deprecated: Use gtk_render_slider() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintSlider<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, orientation: GtkOrientation) where ContextT : ContextProtocol
  • Draws a slider in the given rectangle on cr using the given style and orientation.

    paint_slider is deprecated: Use gtk_render_slider() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintSlider<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int, orientation: GtkOrientation) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a spinner on window using the given parameters.

    paint_spinner is deprecated: Use gtk_render_icon() and the #GtkStyleContext you are drawing instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintSpinner<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, step: Int, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws a spinner on window using the given parameters.

    paint_spinner is deprecated: Use gtk_render_icon() and the #GtkStyleContext you are drawing instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintSpinner<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, step: Int, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on cr using the given parameters.

    paint_tab is deprecated: Use cairo instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintTab<ContextT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol
  • Draws an option menu tab (i.e. the up and down pointing arrows) in the given rectangle on cr using the given parameters.

    paint_tab is deprecated: Use cairo instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintTab<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, shadowType: GtkShadowType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, x: Int, y: Int, width: Int, height: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • Draws a vertical line from (x, y1_) to (x, y2_) in cr using the given style and state.

    paint_vline is deprecated: Use gtk_render_line() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintVline<ContextT>(cr: ContextT, stateType: GtkStateType, widget: WidgetRef? = nil, detail: UnsafePointer<gchar>? = nil, y1: Int, y2: Int, x: Int) where ContextT : ContextProtocol
  • Draws a vertical line from (x, y1_) to (x, y2_) in cr using the given style and state.

    paint_vline is deprecated: Use gtk_render_line() instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func paintVline<ContextT, WidgetT>(cr: ContextT, stateType: GtkStateType, widget: WidgetT?, detail: UnsafePointer<gchar>? = nil, y1: Int, y2: Int, x: Int) where ContextT : ContextProtocol, WidgetT : WidgetProtocol
  • fg Extension method

    Set of foreground GdkColor

    Declaration

    Swift

    @inlinable
    var fg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • bg Extension method

    Set of background GdkColor

    Declaration

    Swift

    @inlinable
    var bg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • light Extension method

    Set of light GdkColor

    Declaration

    Swift

    @inlinable
    var light: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • dark Extension method

    Set of dark GdkColor

    Declaration

    Swift

    @inlinable
    var dark: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • mid Extension method

    Set of mid GdkColor

    Declaration

    Swift

    @inlinable
    var mid: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • text Extension method

    Set of text GdkColor

    Declaration

    Swift

    @inlinable
    var text: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • base Extension method

    Set of base GdkColor

    Declaration

    Swift

    @inlinable
    var base: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • textAa Extension method

    Color halfway between text/base

    Declaration

    Swift

    @inlinable
    var textAa: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • black Extension method

    GdkColor to use for black

    Declaration

    Swift

    @inlinable
    var black: GdkColor { get }
  • white Extension method

    GdkColor to use for white

    Declaration

    Swift

    @inlinable
    var white: GdkColor { get }
  • fontDesc Extension method

    PangoFontDescription

    Declaration

    Swift

    @inlinable
    var fontDesc: FontDescriptionRef! { get }
  • xthickness Extension method

    Thickness in X direction

    Declaration

    Swift

    @inlinable
    var xthickness: gint { get }
  • ythickness Extension method

    Thickness in Y direction

    Declaration

    Swift

    @inlinable
    var ythickness: gint { get }
  • background Extension method

    Set of background cairo_pattern_t

    Declaration

    Swift

    @inlinable
    var background: (UnsafeMutablePointer<cairo_pattern_t>?, UnsafeMutablePointer<cairo_pattern_t>?, UnsafeMutablePointer<cairo_pattern_t>?, UnsafeMutablePointer<cairo_pattern_t>?, UnsafeMutablePointer<cairo_pattern_t>?) { get }