package wayland

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wayland_client.Wl_regionSource

Region interface.

A region object describes an area.

Region objects are used to describe the opaque and input regions of a surface.

Sourcetype 'v t = ([ `Wl_region ], 'v, [ `Client ]) Proxy.t

Version 1, 2, 3, 4

Sourceval subtract : [< `V1 | `V2 | `V3 | `V4 ] t -> x:int32 -> y:int32 -> width:int32 -> height:int32 -> unit

Subtract rectangle from region.

Subtract the specified rectangle from the region.

Sourceval add : [< `V1 | `V2 | `V3 | `V4 ] t -> x:int32 -> y:int32 -> width:int32 -> height:int32 -> unit

Add rectangle to region.

Add the specified rectangle to the region.

Sourceval destroy : [< `V1 | `V2 | `V3 | `V4 ] t -> unit

Destroy region.

Destroy the region. This will invalidate the object ID.

Handlers

Note: Servers will always want to use v1.

Sourceclass +'a v1 : object ... end

Handler for a proxy with version >= 1.

Sourceclass +'a v2 : object ... end

Handler for a proxy with version >= 2.

Sourceclass +'a v3 : object ... end

Handler for a proxy with version >= 3.

Sourceclass +'a v4 : object ... end

Handler for a proxy with version >= 4.

OCaml

Innovation. Community. Security.