bindings-wlc-0.1.0.5: Bindings against the wlc library

Copyright(c) Ashley Towns 2016
LicenseBSD3
Maintainermail@ashleytowns.id.au
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Bindings.WLC.Wayland

Description

 

Synopsis

Documentation

data C'wl_display Source

Constructors

C'wl_display 

data C'wl_client Source

Constructors

C'wl_client 

c'wlc_get_wl_display :: IO (Ptr C'wl_display) Source

Returns Wayland display.

p'wlc_get_wl_display :: FunPtr (IO (Ptr C'wl_display)) Source

Returns view handle from wl_surface resource.

c'wlc_handle_from_wl_output_resource :: Ptr C'wl_resource -> IO C'wlc_handle Source

Returns output handle from wl_output resource.

c'wlc_resource_from_wl_surface_resource :: Ptr C'wl_resource -> IO C'wlc_resource Source

Returns internal wlc surface from wl_surface resource.

c'wlc_surface_get_wl_resource :: C'wlc_resource -> IO (Ptr C'wl_resource) Source

Return wl_surface resource from internal wlc surface.

p'wlc_surface_get_wl_resource :: FunPtr (C'wlc_resource -> IO (Ptr C'wl_resource)) Source

Turns wl_surface into a wlc view. Returns 0 on failure. This will also trigger view.created callback as any view would. For the extra arguments see details of wl_resource_create and wl_resource_set_implementation. The extra arguments may be set NULL, if you are not implementing Wayland interface for the surface role.

c'wlc_view_get_surface :: C'wlc_handle -> IO C'wlc_resource Source

Returns internal wlc surface from view handle

p'wlc_view_get_surface :: FunPtr (C'wlc_handle -> IO C'wlc_resource) Source

Returns a list of the subsurfaces of the given surface

c'wlc_get_subsurface_geometry :: C'wlc_resource -> Ptr C'wlc_geometry -> IO () Source

Returns the size of a subsurface and its position relative to parent

c'wlc_view_get_wl_client :: C'wlc_handle -> IO (Ptr C'wl_client) Source

Returns wl_client from view handle

p'wlc_view_get_wl_client :: FunPtr (C'wlc_handle -> IO (Ptr C'wl_client)) Source

Returns surface role resource from view handle. Return value will be NULL if the view was not assigned role or created with wlc_view_create_from_surface().