Class MarkAttributes
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class MarkAttributes : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
MarkAttributes
- Implements
- Inherited Members
Constructors
MarkAttributes(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public MarkAttributes(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
MarkAttributes(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected MarkAttributes(CreationData data)
Parameters
dataCreationData
MarkAttributes(MarkAttributesHandle)
protected MarkAttributes(MarkAttributesHandle handle)
Parameters
handleMarkAttributesHandle
Fields
BackgroundPropertyDefinition
public static readonly Property<RGBA, MarkAttributes> BackgroundPropertyDefinition
Field Value
GiconPropertyDefinition
public static readonly Property<Icon, MarkAttributes> GiconPropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, MarkAttributes> IconNamePropertyDefinition
Field Value
PixbufPropertyDefinition
public static readonly Property<Pixbuf?, MarkAttributes> PixbufPropertyDefinition
Field Value
QueryTooltipMarkupSignal
Signal Descriptor for OnQueryTooltipMarkup.
public static readonly ReturningSignal<MarkAttributes, MarkAttributes.QueryTooltipMarkupSignalArgs, string> QueryTooltipMarkupSignal
Field Value
QueryTooltipTextSignal
Signal Descriptor for OnQueryTooltipText.
public static readonly ReturningSignal<MarkAttributes, MarkAttributes.QueryTooltipTextSignalArgs, string> QueryTooltipTextSignal
Field Value
Properties
Background
public RGBA Background { get; set; }
Property Value
Gicon
public Icon Gicon { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
Pixbuf
public Pixbuf? Pixbuf { get; set; }
Property Value
Methods
GetBackground(out RGBA)
public bool GetBackground(out RGBA background)
Parameters
backgroundRGBA
Returns
GetGType()
public static Type GetGType()
Returns
GetGicon()
public Icon GetGicon()
Returns
GetIconName()
public string GetIconName()
Returns
GetPixbuf()
public Pixbuf GetPixbuf()
Returns
GetTooltipMarkup(Mark)
public string GetTooltipMarkup(Mark mark)
Parameters
markMark
Returns
GetTooltipText(Mark)
public string GetTooltipText(Mark mark)
Parameters
markMark
Returns
New()
public static MarkAttributes New()
Returns
NewFromPointer(nint, bool)
Creates a new managed MarkAttributes instance for a given pointer.
public static MarkAttributes NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new MarkAttributes and sets the properties specified by the construct arguments.
public static MarkAttributes NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
RenderIcon(Widget, int)
public Paintable RenderIcon(Widget widget, int size)
Parameters
Returns
SetBackground(RGBA)
public void SetBackground(RGBA background)
Parameters
backgroundRGBA
SetGicon(Icon)
public void SetGicon(Icon gicon)
Parameters
giconIcon
SetIconName(string)
public void SetIconName(string iconName)
Parameters
iconNamestring
SetPixbuf(Pixbuf)
public void SetPixbuf(Pixbuf pixbuf)
Parameters
pixbufPixbuf
Events
OnQueryTooltipMarkup
public event ReturningSignalHandler<MarkAttributes, MarkAttributes.QueryTooltipMarkupSignalArgs, string> OnQueryTooltipMarkup
Event Type
OnQueryTooltipText
public event ReturningSignalHandler<MarkAttributes, MarkAttributes.QueryTooltipTextSignalArgs, string> OnQueryTooltipText