#include #include {-| Module : Bindings.WLC.WLCWayland Description : WLC Wayland Copyright : (c) Ashley Towns 2016 License : BSD3 Maintainer : mail@ashleytowns.id.au Stability : experimental Portability : POSIX -} module Bindings.WLC.WLCWayland where #strict_import import Bindings.WLC.Defines import Bindings.WLC.Geometry #synonym_t wlc_resource , CUIntPtr #opaque_t wl_resource #opaque_t wl_display #opaque_t wl_client #opaque_t wl_interface -- |Returns Wayland display. #ccall wlc_get_wl_display , IO (Ptr ) -- |Returns view handle from wl_surface resource. #ccall wlc_handle_from_wl_surface_resource , Ptr -> IO -- |Returns output handle from wl_output resource. #ccall wlc_handle_from_wl_output_resource , Ptr -> IO -- |Returns internal wlc surface from wl_surface resource. #ccall wlc_resource_from_wl_surface_resource , Ptr -> IO -- |Get surface size. #ccall wlc_surface_get_size , -> IO (Ptr ) -- |Return wl_surface resource from internal wlc surface. #ccall wlc_surface_get_wl_resource , -> IO (Ptr ) -- |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. #ccall wlc_view_from_surface , -> Ptr -> Ptr -> Ptr () -> CUInt -> CUInt -> Ptr () -> IO -- |Returns internal wlc surface from view handle #ccall wlc_view_get_surface , -> IO -- |Returns a list of the subsurfaces of the given surface #ccall wlc_surface_get_subsurfaces , -> Ptr CSize -> IO (Ptr ) -- |Returns the size of a subsurface and its position relative to parent #ccall wlc_get_subsurface_geometry , -> Ptr -> IO () -- |Returns wl_client from view handle #ccall wlc_view_get_wl_client , -> IO (Ptr ) -- |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(). #ccall wlc_view_get_role , -> IO (Ptr )