Copyright | (c) Ashley Towns 2016 |
---|---|
License | BSD3 |
Maintainer | mail@ashleytowns.id.au |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
- type C'wlc_resource = CUIntPtr
- data C'wl_resource = C'wl_resource
- data C'wl_display = C'wl_display
- data C'wl_client = C'wl_client
- data C'wl_interface = C'wl_interface
- c'wlc_get_wl_display :: IO (Ptr C'wl_display)
- p'wlc_get_wl_display :: FunPtr (IO (Ptr C'wl_display))
- c'wlc_handle_from_wl_surface_resource :: Ptr C'wl_resource -> IO C'wlc_handle
- c'wlc_handle_from_wl_output_resource :: Ptr C'wl_resource -> IO C'wlc_handle
- p'wlc_handle_from_wl_surface_resource :: FunPtr (Ptr C'wl_resource -> IO C'wlc_handle)
- c'wlc_resource_from_wl_surface_resource :: Ptr C'wl_resource -> IO C'wlc_resource
- p'wlc_handle_from_wl_output_resource :: FunPtr (Ptr C'wl_resource -> IO C'wlc_handle)
- c'wlc_surface_get_size :: C'wlc_resource -> IO (Ptr C'wlc_size)
- p'wlc_resource_from_wl_surface_resource :: FunPtr (Ptr C'wl_resource -> IO C'wlc_resource)
- c'wlc_surface_get_wl_resource :: C'wlc_resource -> IO (Ptr C'wl_resource)
- p'wlc_surface_get_size :: FunPtr (C'wlc_resource -> IO (Ptr C'wlc_size))
- p'wlc_surface_get_wl_resource :: FunPtr (C'wlc_resource -> IO (Ptr C'wl_resource))
- c'wlc_view_from_surface :: C'wlc_resource -> Ptr C'wl_client -> Ptr C'wl_interface -> Ptr () -> CUInt -> CUInt -> Ptr () -> IO C'wlc_handle
- c'wlc_view_get_surface :: C'wlc_handle -> IO C'wlc_resource
- p'wlc_view_from_surface :: FunPtr (C'wlc_resource -> Ptr C'wl_client -> Ptr C'wl_interface -> Ptr () -> CUInt -> CUInt -> Ptr () -> IO C'wlc_handle)
- p'wlc_view_get_surface :: FunPtr (C'wlc_handle -> IO C'wlc_resource)
- c'wlc_surface_get_subsurfaces :: C'wlc_resource -> Ptr CSize -> IO (Ptr C'wlc_resource)
- c'wlc_get_subsurface_geometry :: C'wlc_resource -> Ptr C'wlc_geometry -> IO ()
- p'wlc_surface_get_subsurfaces :: FunPtr (C'wlc_resource -> Ptr CSize -> IO (Ptr C'wlc_resource))
- c'wlc_view_get_wl_client :: C'wlc_handle -> IO (Ptr C'wl_client)
- p'wlc_get_subsurface_geometry :: FunPtr (C'wlc_resource -> Ptr C'wlc_geometry -> IO ())
- p'wlc_view_get_wl_client :: FunPtr (C'wlc_handle -> IO (Ptr C'wl_client))
- c'wlc_view_get_role :: C'wlc_handle -> IO (Ptr C'wl_resource)
- p'wlc_view_get_role :: FunPtr (C'wlc_handle -> IO (Ptr C'wl_resource))
Documentation
type C'wlc_resource = CUIntPtr Source
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_size :: C'wlc_resource -> IO (Ptr C'wlc_size) Source
Get surface size.
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_size :: FunPtr (C'wlc_resource -> IO (Ptr C'wlc_size)) Source
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_from_surface :: C'wlc_resource -> Ptr C'wl_client -> Ptr C'wl_interface -> Ptr () -> CUInt -> CUInt -> Ptr () -> IO C'wlc_handle Source
c'wlc_view_get_surface :: C'wlc_handle -> IO C'wlc_resource Source
Returns internal wlc surface from view handle
p'wlc_view_from_surface :: FunPtr (C'wlc_resource -> Ptr C'wl_client -> Ptr C'wl_interface -> Ptr () -> CUInt -> CUInt -> Ptr () -> IO C'wlc_handle) Source
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
p'wlc_surface_get_subsurfaces :: FunPtr (C'wlc_resource -> Ptr CSize -> IO (Ptr C'wlc_resource)) Source
c'wlc_view_get_wl_client :: C'wlc_handle -> IO (Ptr C'wl_client) Source
Returns wl_client from view handle
p'wlc_get_subsurface_geometry :: FunPtr (C'wlc_resource -> Ptr C'wlc_geometry -> IO ()) Source
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().
p'wlc_view_get_role :: FunPtr (C'wlc_handle -> IO (Ptr C'wl_resource)) Source