Table of Contents

Class Surface

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class Surface : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Surface
Implements
Inherited Members

Constructors

Surface(bool, params ConstructArgument[])

protected Surface(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Surface(IntPtr, bool)

protected Surface(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CursorPropertyDefinition

public static readonly Property<Cursor?, Surface> CursorPropertyDefinition

Field Value

Property<Cursor, Surface>

DisplayPropertyDefinition

public static readonly Property<Display?, Surface> DisplayPropertyDefinition

Field Value

Property<Display, Surface>

EnterMonitorSignal

Signal Descriptor for OnEnterMonitor.

public static readonly Signal<Surface, Surface.EnterMonitorSignalArgs> EnterMonitorSignal

Field Value

Signal<Surface, Surface.EnterMonitorSignalArgs>

EventSignal

Signal Descriptor for OnEvent.

public static readonly ReturningSignal<Surface, Surface.EventSignalArgs, bool> EventSignal

Field Value

ReturningSignal<Surface, Surface.EventSignalArgs, bool>

FrameClockPropertyDefinition

public static readonly Property<FrameClock?, Surface> FrameClockPropertyDefinition

Field Value

Property<FrameClock, Surface>

HeightPropertyDefinition

public static readonly Property<int, Surface> HeightPropertyDefinition

Field Value

Property<int, Surface>

LayoutSignal

Signal Descriptor for OnLayout.

public static readonly Signal<Surface, Surface.LayoutSignalArgs> LayoutSignal

Field Value

Signal<Surface, Surface.LayoutSignalArgs>

LeaveMonitorSignal

Signal Descriptor for OnLeaveMonitor.

public static readonly Signal<Surface, Surface.LeaveMonitorSignalArgs> LeaveMonitorSignal

Field Value

Signal<Surface, Surface.LeaveMonitorSignalArgs>

MappedPropertyDefinition

public static readonly Property<bool, Surface> MappedPropertyDefinition

Field Value

Property<bool, Surface>

RenderSignal

Signal Descriptor for OnRender.

public static readonly ReturningSignal<Surface, Surface.RenderSignalArgs, bool> RenderSignal

Field Value

ReturningSignal<Surface, Surface.RenderSignalArgs, bool>

ScaleFactorPropertyDefinition

public static readonly Property<int, Surface> ScaleFactorPropertyDefinition

Field Value

Property<int, Surface>

ScalePropertyDefinition

public static readonly Property<double, Surface> ScalePropertyDefinition

Field Value

Property<double, Surface>

WidthPropertyDefinition

public static readonly Property<int, Surface> WidthPropertyDefinition

Field Value

Property<int, Surface>

Properties

Cursor

public Cursor? Cursor { get; set; }

Property Value

Cursor

Display

public Display? Display { get; }

Property Value

Display

FrameClock

public FrameClock? FrameClock { get; }

Property Value

FrameClock

Height

public int Height { get; }

Property Value

int

Mapped

public bool Mapped { get; }

Property Value

bool

Scale

public double Scale { get; }

Property Value

double

ScaleFactor

public int ScaleFactor { get; }

Property Value

int

Width

public int Width { get; }

Property Value

int

Methods

Beep()

public void Beep()

CreateCairoContext()

public CairoContext CreateCairoContext()

Returns

CairoContext

CreateGlContext()

public GLContext CreateGlContext()

Returns

GLContext

CreateSimilarSurface(Content, int, int)

public Surface CreateSimilarSurface(Content content, int width, int height)

Parameters

content Content
width int
height int

Returns

Surface

CreateVulkanContext()

public VulkanContext CreateVulkanContext()

Returns

VulkanContext

Destroy()

public void Destroy()

GetCursor()

public Cursor? GetCursor()

Returns

Cursor

GetDeviceCursor(Device)

public Cursor? GetDeviceCursor(Device device)

Parameters

device Device

Returns

Cursor

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFrameClock()

public FrameClock GetFrameClock()

Returns

FrameClock

GetGType()

public static Type GetGType()

Returns

Type

GetHeight()

public int GetHeight()

Returns

int

GetMapped()

public bool GetMapped()

Returns

bool

GetScale()

[Version("4.12")]
public double GetScale()

Returns

double

GetScaleFactor()

public int GetScaleFactor()

Returns

int

GetWidth()

public int GetWidth()

Returns

int

Hide()

public void Hide()

IsDestroyed()

public bool IsDestroyed()

Returns

bool

NewPopup(Surface, bool)

public static Surface NewPopup(Surface parent, bool autohide)

Parameters

parent Surface
autohide bool

Returns

Surface

NewToplevel(Display)

public static Surface NewToplevel(Display display)

Parameters

display Display

Returns

Surface

QueueRender()

public void QueueRender()

RequestLayout()

public void RequestLayout()

SetCursor(Cursor?)

public void SetCursor(Cursor? cursor)

Parameters

cursor Cursor

SetDeviceCursor(Device, Cursor)

public void SetDeviceCursor(Device device, Cursor cursor)

Parameters

device Device
cursor Cursor

SetInputRegion(Region)

public void SetInputRegion(Region region)

Parameters

region Region

SetOpaqueRegion(Region?)

public void SetOpaqueRegion(Region? region)

Parameters

region Region

TranslateCoordinates(Surface, ref double, ref double)

public bool TranslateCoordinates(Surface to, ref double x, ref double y)

Parameters

to Surface
x double
y double

Returns

bool

Events

OnEnterMonitor

public event SignalHandler<Surface, Surface.EnterMonitorSignalArgs> OnEnterMonitor

Event Type

SignalHandler<Surface, Surface.EnterMonitorSignalArgs>

OnEvent

public event ReturningSignalHandler<Surface, Surface.EventSignalArgs, bool> OnEvent

Event Type

ReturningSignalHandler<Surface, Surface.EventSignalArgs, bool>

OnLayout

public event SignalHandler<Surface, Surface.LayoutSignalArgs> OnLayout

Event Type

SignalHandler<Surface, Surface.LayoutSignalArgs>

OnLeaveMonitor

public event SignalHandler<Surface, Surface.LeaveMonitorSignalArgs> OnLeaveMonitor

Event Type

SignalHandler<Surface, Surface.LeaveMonitorSignalArgs>

OnRender

public event ReturningSignalHandler<Surface, Surface.RenderSignalArgs, bool> OnRender

Event Type

ReturningSignalHandler<Surface, Surface.RenderSignalArgs, bool>