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.
-
Untyped pointer to the underlying
GtkStyle
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
style_ptr
Default implementationTyped 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)
-
bind(property:
Extension methodto: _: flags: transformFrom: transformTo: ) 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 transformationtransform_to
ValueTransformer
to use for backwards transformationReturn 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:
Extension methodvalue: ) 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
-
connect(signal:
Extension methodflags: handler: ) Connect a Swift signal handler to the given, typed
StyleSignalName
signalDeclaration
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 byuserData
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(signal:
Extension methodflags: data: destroyData: signalHandler: ) Connect a C signal handler to the given, typed
StyleSignalName
signalDeclaration
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 byuserData
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:
Extension methodhandler: ) 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 underlyingrealize
signalDeclaration
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 methodTyped
realize
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var realizeSignal: StyleSignalName { get }
-
onUnrealize(flags:
Extension methodhandler: ) 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 underlyingunrealize
signalDeclaration
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 methodTyped
unrealize
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var unrealizeSignal: StyleSignalName { get }
-
onNotifyContext(flags:
Extension methodhandler: ) 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 tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_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 underlyingnotify::context
signalDeclaration
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 methodTyped
notify::context
signal for using theconnect(signal:)
methodsDeclaration
Swift
static var notifyContextSignal: StyleSignalName { get }
-
applyDefaultBackground(cr:
Extension methodwindow: stateType: x: y: width: height: ) 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 methodCreates a copy of the passed in
GtkStyle
object.copy is deprecated: Use #GtkStyleContext instead
Declaration
Swift
@available(*, deprecated) @inlinable func copy() -> StyleRef!
-
detach()
Extension methodDetaches 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()
-
getStyleProperty(widgetType:
Extension methodpropertyName: value: ) 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
-
getValist(widgetType:
Extension methodfirstPropertyName: varArgs: ) 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 methodReturns whether
style
has an associatedGtkStyleContext
.Declaration
Swift
@available(*, deprecated) @inlinable func hasContext() -> Bool
-
lookupColor(colorName:
Extension methodcolor: ) Looks up
color_name
in the style’s logical color mappings, filling incolor
and returningtrue
if found, otherwise returningfalse
. Do not cache the found mapping, because it depends on theGtkStyle
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 withstyle
and the default icon factory, returning an icon set if found, otherwisenil
.lookup_icon_set is deprecated: Use gtk_style_context_lookup_icon_set() instead
Declaration
Swift
@available(*, deprecated) @inlinable func lookupIconSet(stockID: UnsafePointer<gchar>!) -> IconSetRef!
-
renderIcon(source:
Extension methoddirection: state: size: widget: detail: ) Renders the icon specified by
source
at the givensize
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
-
renderIcon(source:
Extension methoddirection: state: size: widget: detail: ) Renders the icon specified by
source
at the givensize
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
-
setBackground(window:
Extension methodstateType: ) Sets the background of
window
to the background color or pixmap specified bystyle
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
-
paintBox(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintBox(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintBoxGap(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: gapSide: gapX: gapWidth: ) 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
-
paintBoxGap(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: gapSide: gapX: gapWidth: ) 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
-
paintCheck(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintCheck(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintExpander(cr:
Extension methodstateType: widget: detail: x: y: expanderStyle: ) Draws an expander as used in
GtkTreeView
.x
andy
specify the center the expander. The size of the expander is determined by the “expander-size” style property ofwidget
. (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
-
paintExpander(cr:
Extension methodstateType: widget: detail: x: y: expanderStyle: ) Draws an expander as used in
GtkTreeView
.x
andy
specify the center the expander. The size of the expander is determined by the “expander-size” style property ofwidget
. (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
-
paintFocus(cr:
Extension methodstateType: widget: detail: x: y: width: height: ) 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
-
paintFocus(cr:
Extension methodstateType: widget: detail: x: y: width: height: ) 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
andGtkPaned
.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
andGtkPaned
.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
-
paintHline(cr:
Extension methodstateType: widget: detail: x1: x2: y: ) Draws a horizontal line from (
x1
,y
) to (x2
,y
) incr
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
-
paintHline(cr:
Extension methodstateType: widget: detail: x1: x2: y: ) Draws a horizontal line from (
x1
,y
) to (x2
,y
) incr
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
-
paintLayout(cr:
Extension methodstateType: useText: widget: detail: x: y: layout: ) 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
-
paintLayout(cr:
Extension methodstateType: useText: widget: detail: x: y: layout: ) 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
-
paintOption(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintOption(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintResizeGrip(cr:
Extension methodstateType: widget: detail: edge: x: y: width: height: ) 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
-
paintResizeGrip(cr:
Extension methodstateType: widget: detail: edge: x: y: width: height: ) 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
-
paintShadow(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintShadow(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintShadowGap(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: gapSide: gapX: gapWidth: ) 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
-
paintShadowGap(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: gapSide: gapX: gapWidth: ) 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
-
paintSpinner(cr:
Extension methodstateType: widget: detail: step: x: y: width: height: ) 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
-
paintSpinner(cr:
Extension methodstateType: widget: detail: step: x: y: width: height: ) 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
-
paintTab(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintTab(cr:
Extension methodstateType: shadowType: widget: detail: x: y: width: height: ) 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
-
paintVline(cr:
Extension methodstateType: widget: detail: y1: y2: x: ) Draws a vertical line from (
x
,y1_
) to (x
,y2_
) incr
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
-
paintVline(cr:
Extension methodstateType: widget: detail: y1: y2: x: ) Draws a vertical line from (
x
,y1_
) to (x
,y2_
) incr
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 methodSet of foreground
GdkColor
Declaration
Swift
@inlinable var fg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
bg
Extension methodSet of background
GdkColor
Declaration
Swift
@inlinable var bg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
light
Extension methodSet of light
GdkColor
Declaration
Swift
@inlinable var light: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
dark
Extension methodSet of dark
GdkColor
Declaration
Swift
@inlinable var dark: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
mid
Extension methodSet of mid
GdkColor
Declaration
Swift
@inlinable var mid: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
text
Extension methodSet of text
GdkColor
Declaration
Swift
@inlinable var text: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
base
Extension methodSet of base
GdkColor
Declaration
Swift
@inlinable var base: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
textAa
Extension methodColor halfway between text/base
Declaration
Swift
@inlinable var textAa: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
black
Extension methodGdkColor
to use for blackDeclaration
Swift
@inlinable var black: GdkColor { get }
-
white
Extension methodGdkColor
to use for whiteDeclaration
Swift
@inlinable var white: GdkColor { get }
-
fontDesc
Extension methodPangoFontDescription
Declaration
Swift
@inlinable var fontDesc: FontDescriptionRef! { get }
-
xthickness
Extension methodThickness in X direction
Declaration
Swift
@inlinable var xthickness: gint { get }
-
ythickness
Extension methodThickness in Y direction
Declaration
Swift
@inlinable var ythickness: gint { get }
-
background
Extension methodSet 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 }