Class Surface
public class Surface
- Inheritance
-
Surface
- Inherited Members
Methods
Beep(IntPtr)
Calls native method gdk_surface_beep.
public static extern void Beep(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
CreateCairoContext(IntPtr)
Calls native method gdk_surface_create_cairo_context.
public static extern IntPtr CreateCairoContext(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
CreateGlContext(IntPtr, out ErrorOwnedHandle)
Calls native method gdk_surface_create_gl_context.
public static extern IntPtr CreateGlContext(IntPtr surface, out ErrorOwnedHandle error)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
CreateSimilarSurface(IntPtr, Content, int, int)
Calls native method gdk_surface_create_similar_surface.
public static extern SurfaceOwnedHandle CreateSimilarSurface(IntPtr surface, Content content, int width, int height)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
content
ContentTransfer ownership: None Nullable: False
width
intTransfer ownership: None Nullable: False
height
intTransfer ownership: None Nullable: False
Returns
- SurfaceOwnedHandle
Transfer ownership: Full Nullable: False
CreateVulkanContext(IntPtr, out ErrorOwnedHandle)
Calls native method gdk_surface_create_vulkan_context.
public static extern IntPtr CreateVulkanContext(IntPtr surface, out ErrorOwnedHandle error)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
Destroy(IntPtr)
Calls native method gdk_surface_destroy.
public static extern void Destroy(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
GetCursor(IntPtr)
Calls native method gdk_surface_get_cursor.
public static extern IntPtr GetCursor(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetDeviceCursor(IntPtr, IntPtr)
Calls native method gdk_surface_get_device_cursor.
public static extern IntPtr GetDeviceCursor(IntPtr surface, IntPtr device)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
device
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetDevicePosition(IntPtr, IntPtr, out double, out double, out ModifierType)
Calls native method gdk_surface_get_device_position.
public static extern bool GetDevicePosition(IntPtr surface, IntPtr device, out double x, out double y, out ModifierType mask)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
device
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: Full Nullable: False
y
doubleTransfer ownership: Full Nullable: False
mask
ModifierTypeTransfer ownership: Full Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetDisplay(IntPtr)
Calls native method gdk_surface_get_display.
public static extern IntPtr GetDisplay(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetFrameClock(IntPtr)
Calls native method gdk_surface_get_frame_clock.
public static extern IntPtr GetFrameClock(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetGType()
Calls native function gdk_surface_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHeight(IntPtr)
Calls native method gdk_surface_get_height.
public static extern int GetHeight(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMapped(IntPtr)
Calls native method gdk_surface_get_mapped.
public static extern bool GetMapped(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetScale(IntPtr)
Calls native method gdk_surface_get_scale. Version: 4.12
[Version("4.12")]
public static extern double GetScale(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- double
Transfer ownership: None Nullable: False
GetScaleFactor(IntPtr)
Calls native method gdk_surface_get_scale_factor.
public static extern int GetScaleFactor(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetWidth(IntPtr)
Calls native method gdk_surface_get_width.
public static extern int GetWidth(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
Hide(IntPtr)
Calls native method gdk_surface_hide.
public static extern void Hide(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
IsDestroyed(IntPtr)
Calls native method gdk_surface_is_destroyed.
public static extern bool IsDestroyed(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
NewPopup(IntPtr, bool)
Calls native constructor gdk_surface_new_popup.
public static extern IntPtr NewPopup(IntPtr parent, bool autohide)
Parameters
parent
IntPtrTransfer ownership: None Nullable: False
autohide
boolTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewToplevel(IntPtr)
Calls native constructor gdk_surface_new_toplevel.
public static extern IntPtr NewToplevel(IntPtr display)
Parameters
display
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
QueueRender(IntPtr)
Calls native method gdk_surface_queue_render.
public static extern void QueueRender(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
RequestLayout(IntPtr)
Calls native method gdk_surface_request_layout.
public static extern void RequestLayout(IntPtr surface)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
SetCursor(IntPtr, IntPtr)
Calls native method gdk_surface_set_cursor.
public static extern void SetCursor(IntPtr surface, IntPtr cursor)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
cursor
IntPtrTransfer ownership: None Nullable: True
SetDeviceCursor(IntPtr, IntPtr, IntPtr)
Calls native method gdk_surface_set_device_cursor.
public static extern void SetDeviceCursor(IntPtr surface, IntPtr device, IntPtr cursor)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
device
IntPtrTransfer ownership: None Nullable: False
cursor
IntPtrTransfer ownership: None Nullable: False
SetInputRegion(IntPtr, RegionHandle)
Calls native method gdk_surface_set_input_region.
public static extern void SetInputRegion(IntPtr surface, RegionHandle region)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
region
RegionHandleTransfer ownership: None Nullable: False
SetOpaqueRegion(IntPtr, RegionHandle)
Calls native method gdk_surface_set_opaque_region.
public static extern void SetOpaqueRegion(IntPtr surface, RegionHandle region)
Parameters
surface
IntPtrTransfer ownership: None Nullable: False
region
RegionHandleTransfer ownership: None Nullable: True
TranslateCoordinates(IntPtr, IntPtr, ref double, ref double)
Calls native method gdk_surface_translate_coordinates.
public static extern bool TranslateCoordinates(IntPtr from, IntPtr to, ref double x, ref double y)
Parameters
from
IntPtrTransfer ownership: None Nullable: False
to
IntPtrTransfer ownership: None Nullable: False
x
doubleTransfer ownership: Full Nullable: False
y
doubleTransfer ownership: Full Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False