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
boolconstructArguments
ConstructArgument[]
Surface(IntPtr, bool)
protected Surface(IntPtr ptr, bool ownedRef)
Parameters
Fields
CursorPropertyDefinition
public static readonly Property<Cursor?, Surface> CursorPropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, Surface> DisplayPropertyDefinition
Field Value
EnterMonitorSignal
Signal Descriptor for OnEnterMonitor.
public static readonly Signal<Surface, Surface.EnterMonitorSignalArgs> EnterMonitorSignal
Field Value
EventSignal
Signal Descriptor for OnEvent.
public static readonly ReturningSignal<Surface, Surface.EventSignalArgs, bool> EventSignal
Field Value
FrameClockPropertyDefinition
public static readonly Property<FrameClock?, Surface> FrameClockPropertyDefinition
Field Value
HeightPropertyDefinition
public static readonly Property<int, Surface> HeightPropertyDefinition
Field Value
LayoutSignal
Signal Descriptor for OnLayout.
public static readonly Signal<Surface, Surface.LayoutSignalArgs> LayoutSignal
Field Value
LeaveMonitorSignal
Signal Descriptor for OnLeaveMonitor.
public static readonly Signal<Surface, Surface.LeaveMonitorSignalArgs> LeaveMonitorSignal
Field Value
MappedPropertyDefinition
public static readonly Property<bool, Surface> MappedPropertyDefinition
Field Value
RenderSignal
Signal Descriptor for OnRender.
public static readonly ReturningSignal<Surface, Surface.RenderSignalArgs, bool> RenderSignal
Field Value
ScaleFactorPropertyDefinition
public static readonly Property<int, Surface> ScaleFactorPropertyDefinition
Field Value
ScalePropertyDefinition
public static readonly Property<double, Surface> ScalePropertyDefinition
Field Value
WidthPropertyDefinition
public static readonly Property<int, Surface> WidthPropertyDefinition
Field Value
Properties
Cursor
public Cursor? Cursor { get; set; }
Property Value
Display
public Display? Display { get; }
Property Value
FrameClock
public FrameClock? FrameClock { get; }
Property Value
Height
public int Height { get; }
Property Value
Mapped
public bool Mapped { get; }
Property Value
Scale
public double Scale { get; }
Property Value
ScaleFactor
public int ScaleFactor { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
Beep()
public void Beep()
CreateCairoContext()
public CairoContext CreateCairoContext()
Returns
CreateGlContext()
public GLContext CreateGlContext()
Returns
CreateSimilarSurface(Content, int, int)
public Surface CreateSimilarSurface(Content content, int width, int height)
Parameters
Returns
CreateVulkanContext()
public VulkanContext CreateVulkanContext()
Returns
Destroy()
public void Destroy()
GetCursor()
public Cursor? GetCursor()
Returns
GetDeviceCursor(Device)
public Cursor? GetDeviceCursor(Device device)
Parameters
device
Device
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetFrameClock()
public FrameClock GetFrameClock()
Returns
GetGType()
public static Type GetGType()
Returns
GetHeight()
public int GetHeight()
Returns
GetMapped()
public bool GetMapped()
Returns
GetScale()
[Version("4.12")]
public double GetScale()
Returns
GetScaleFactor()
public int GetScaleFactor()
Returns
GetWidth()
public int GetWidth()
Returns
Hide()
public void Hide()
IsDestroyed()
public bool IsDestroyed()
Returns
NewPopup(Surface, bool)
public static Surface NewPopup(Surface parent, bool autohide)
Parameters
Returns
NewToplevel(Display)
public static Surface NewToplevel(Display display)
Parameters
display
Display
Returns
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
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
Returns
Events
OnEnterMonitor
public event SignalHandler<Surface, Surface.EnterMonitorSignalArgs> OnEnterMonitor
Event Type
OnEvent
public event ReturningSignalHandler<Surface, Surface.EventSignalArgs, bool> OnEvent
Event Type
OnLayout
public event SignalHandler<Surface, Surface.LayoutSignalArgs> OnLayout
Event Type
OnLeaveMonitor
public event SignalHandler<Surface, Surface.LeaveMonitorSignalArgs> OnLeaveMonitor
Event Type
OnRender
public event ReturningSignalHandler<Surface, Surface.RenderSignalArgs, bool> OnRender