Copyright | (c) Ashley Towns 2016 |
---|---|
License | BSD3 |
Maintainer | mail@ashleytowns.id.au |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
Provides bindings to the core WLC API.
- data C'wlc_event_source = C'wlc_event_source
- data C'xkb_state = C'xkb_state
- data C'xkb_keymap = C'xkb_keymap
- data C'libinput_device = C'libinput_device
- type C'wlc_log_type = CUInt
- c'WLC_LOG_INFO :: Num a => a
- c'WLC_LOG_WARN :: Num a => a
- c'WLC_LOG_ERROR :: Num a => a
- c'WLC_LOG_WAYLAND :: Num a => a
- type C'wlc_backend_type = CUInt
- c'WLC_BACKEND_NONE :: Num a => a
- c'WLC_BACKEND_DRM :: Num a => a
- c'WLC_BACKEND_X11 :: Num a => a
- type C'wlc_event_bit = CUInt
- c'WLC_EVENT_READABLE :: Num a => a
- c'WLC_EVENT_WRITABLE :: Num a => a
- c'WLC_EVENT_HANGUP :: Num a => a
- c'WLC_EVENT_ERROR :: Num a => a
- type C'wlc_view_state_bit = CUInt
- c'WLC_BIT_MAXIMIZED :: Num a => a
- c'WLC_BIT_FULLSCREEN :: Num a => a
- c'WLC_BIT_RESIZING :: Num a => a
- c'WLC_BIT_MOVING :: Num a => a
- c'WLC_BIT_ACTIVATED :: Num a => a
- type C'wlc_view_type_bit = CUInt
- c'WLC_BIT_OVERRIDE_REDIRECT :: Num a => a
- c'WLC_BIT_UNMANAGED :: Num a => a
- c'WLC_BIT_SPLASH :: Num a => a
- c'WLC_BIT_MODAL :: Num a => a
- c'WLC_BIT_POPUP :: Num a => a
- type C'wlc_resize_edge = CUInt
- c'WLC_RESIZE_EDGE_NONE :: Num a => a
- c'WLC_RESIZE_EDGE_TOP :: Num a => a
- c'WLC_RESIZE_EDGE_BOTTOM :: Num a => a
- c'WLC_RESIZE_EDGE_LEFT :: Num a => a
- c'WLC_RESIZE_EDGE_TOP_LEFT :: Num a => a
- c'WLC_RESIZE_EDGE_BOTTOM_LEFT :: Num a => a
- c'WLC_RESIZE_EDGE_RIGHT :: Num a => a
- c'WLC_RESIZE_EDGE_TOP_RIGHT :: Num a => a
- c'WLC_RESIZE_EDGE_BOTTOM_RIGHT :: Num a => a
- type C'wlc_modifier_bit = CUInt
- c'WLC_BIT_MOD_SHIFT :: Num a => a
- c'WLC_BIT_MOD_CAPS :: Num a => a
- c'WLC_BIT_MOD_CTRL :: Num a => a
- c'WLC_BIT_MOD_ALT :: Num a => a
- c'WLC_BIT_MOD_MOD2 :: Num a => a
- c'WLC_BIT_MOD_MOD3 :: Num a => a
- c'WLC_BIT_MOD_LOGO :: Num a => a
- c'WLC_BIT_MOD_MOD5 :: Num a => a
- type C'wlc_led_bit = CUInt
- c'WLC_BIT_LED_NUM :: Num a => a
- c'WLC_BIT_LED_CAPS :: Num a => a
- c'WLC_BIT_LED_SCROLL :: Num a => a
- type C'wlc_key_state = CUInt
- c'WLC_KEY_STATE_RELEASED :: Num a => a
- c'WLC_KEY_STATE_PRESSED :: Num a => a
- type C'wlc_button_state = CUInt
- c'WLC_BUTTON_STATE_RELEASED :: Num a => a
- c'WLC_BUTTON_STATE_PRESSED :: Num a => a
- type C'wlc_scroll_axis_bit = CUInt
- c'WLC_SCROLL_AXIS_VERTICAL :: Num a => a
- c'WLC_SCROLL_AXIS_HORIZONTAL :: Num a => a
- type C'wlc_touch_type = CUInt
- c'WLC_TOUCH_DOWN :: Num a => a
- c'WLC_TOUCH_UP :: Num a => a
- c'WLC_TOUCH_MOTION :: Num a => a
- c'WLC_TOUCH_FRAME :: Num a => a
- c'WLC_TOUCH_CANCEL :: Num a => a
- data C'wlc_modifiers = C'wlc_modifiers {}
- type C'output_created_cb = FunPtr (C'wlc_handle -> IO Bool)
- p'wlc_modifiers'leds :: Ptr C'wlc_modifiers -> Ptr C'wlc_led_bit
- type C'output_destroyed_cb = FunPtr (C'wlc_handle -> IO ())
- mk'output_created_cb :: (C'wlc_handle -> IO Bool) -> IO C'output_created_cb
- type C'output_focus_cb = FunPtr (C'wlc_handle -> Bool -> IO ())
- p'wlc_modifiers'mods :: Ptr C'wlc_modifiers -> Ptr C'wlc_modifier_bit
- mk'output_destroyed_cb :: (C'wlc_handle -> IO ()) -> IO C'output_destroyed_cb
- type C'output_resolution_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO ())
- mK'output_created_cb :: C'output_created_cb -> C'wlc_handle -> IO Bool
- mk'output_focus_cb :: (C'wlc_handle -> Bool -> IO ()) -> IO C'output_focus_cb
- type C'output_render_pre_cb = FunPtr (C'wlc_handle -> IO ())
- mK'output_destroyed_cb :: C'output_destroyed_cb -> C'wlc_handle -> IO ()
- mk'output_resolution_cb :: (C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO ()) -> IO C'output_resolution_cb
- type C'output_render_post_cb = FunPtr (C'wlc_handle -> IO ())
- mk'output_render_pre_cb :: (C'wlc_handle -> IO ()) -> IO C'output_render_pre_cb
- mK'output_focus_cb :: C'output_focus_cb -> C'wlc_handle -> Bool -> IO ()
- mk'output_render_post_cb :: (C'wlc_handle -> IO ()) -> IO C'output_render_post_cb
- mK'output_resolution_cb :: C'output_resolution_cb -> C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO ()
- type C'view_created_cb = FunPtr (C'wlc_handle -> IO Bool)
- mK'output_render_pre_cb :: C'output_render_pre_cb -> C'wlc_handle -> IO ()
- type C'view_destroyed_cb = FunPtr (C'wlc_handle -> IO ())
- mk'view_created_cb :: (C'wlc_handle -> IO Bool) -> IO C'view_created_cb
- mK'output_render_post_cb :: C'output_render_post_cb -> C'wlc_handle -> IO ()
- type C'view_focus_cb = FunPtr (C'wlc_handle -> Bool -> IO ())
- mk'view_destroyed_cb :: (C'wlc_handle -> IO ()) -> IO C'view_destroyed_cb
- type C'view_move_to_output_cb = FunPtr (C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO ())
- mK'view_created_cb :: C'view_created_cb -> C'wlc_handle -> IO Bool
- mk'view_focus_cb :: (C'wlc_handle -> Bool -> IO ()) -> IO C'view_focus_cb
- type C'view_request_geometry_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_geometry -> IO ())
- mK'view_destroyed_cb :: C'view_destroyed_cb -> C'wlc_handle -> IO ()
- mk'view_move_to_output_cb :: (C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO ()) -> IO C'view_move_to_output_cb
- type C'view_request_state_cb = FunPtr (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ())
- mK'view_focus_cb :: C'view_focus_cb -> C'wlc_handle -> Bool -> IO ()
- mk'view_request_geometry_cb :: (C'wlc_handle -> Ptr C'wlc_geometry -> IO ()) -> IO C'view_request_geometry_cb
- type C'view_request_move_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_point -> IO ())
- mK'view_move_to_output_cb :: C'view_move_to_output_cb -> C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO ()
- mk'view_request_state_cb :: (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()) -> IO C'view_request_state_cb
- type C'view_request_resize_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO ())
- mk'view_request_move_cb :: (C'wlc_handle -> Ptr C'wlc_point -> IO ()) -> IO C'view_request_move_cb
- mK'view_request_geometry_cb :: C'view_request_geometry_cb -> C'wlc_handle -> Ptr C'wlc_geometry -> IO ()
- type C'view_render_pre_cb = FunPtr (C'wlc_handle -> IO ())
- mk'view_request_resize_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO ()) -> IO C'view_request_resize_cb
- mK'view_request_state_cb :: C'view_request_state_cb -> C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()
- type C'view_render_post_cb = FunPtr (C'wlc_handle -> IO ())
- mk'view_render_pre_cb :: (C'wlc_handle -> IO ()) -> IO C'view_render_pre_cb
- mK'view_request_move_cb :: C'view_request_move_cb -> C'wlc_handle -> Ptr C'wlc_point -> IO ()
- mk'view_render_post_cb :: (C'wlc_handle -> IO ()) -> IO C'view_render_post_cb
- mK'view_request_resize_cb :: C'view_request_resize_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO ()
- type C'keyboard_key_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool)
- mK'view_render_pre_cb :: C'view_render_pre_cb -> C'wlc_handle -> IO ()
- type C'pointer_button_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool)
- mK'view_render_post_cb :: C'view_render_post_cb -> C'wlc_handle -> IO ()
- mk'keyboard_key_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool) -> IO C'keyboard_key_cb
- type C'pointer_scroll_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool)
- mk'pointer_button_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool) -> IO C'pointer_button_cb
- type C'pointer_motion_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool)
- mK'keyboard_key_cb :: C'keyboard_key_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool
- mk'pointer_scroll_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool) -> IO C'pointer_scroll_cb
- type C'touch_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool)
- mk'pointer_motion_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool) -> IO C'pointer_motion_cb
- mK'pointer_button_cb :: C'pointer_button_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool
- mK'pointer_scroll_cb :: C'pointer_scroll_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool
- mk'touch_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool) -> IO C'touch_cb
- type C'compositor_ready_cb = FunPtr (IO ())
- mK'pointer_motion_cb :: C'pointer_motion_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool
- type C'compositor_terminate_cb = FunPtr (IO ())
- mk'compositor_ready_cb :: IO () -> IO C'compositor_ready_cb
- mK'touch_cb :: C'touch_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool
- mk'compositor_terminate_cb :: IO () -> IO C'compositor_terminate_cb
- mK'compositor_ready_cb :: C'compositor_ready_cb -> IO ()
- mK'compositor_terminate_cb :: C'compositor_terminate_cb -> IO ()
- c'wlc_set_output_created_cb :: C'output_created_cb -> IO ()
- c'wlc_set_output_destroyed_cb :: C'output_destroyed_cb -> IO ()
- p'wlc_set_output_created_cb :: FunPtr (C'output_created_cb -> IO ())
- c'wlc_set_output_focus_cb :: C'output_focus_cb -> IO ()
- p'wlc_set_output_destroyed_cb :: FunPtr (C'output_destroyed_cb -> IO ())
- c'wlc_set_output_resolution_cb :: C'output_resolution_cb -> IO ()
- p'wlc_set_output_focus_cb :: FunPtr (C'output_focus_cb -> IO ())
- c'wlc_set_output_render_pre_cb :: C'output_render_pre_cb -> IO ()
- p'wlc_set_output_resolution_cb :: FunPtr (C'output_resolution_cb -> IO ())
- c'wlc_set_output_render_post_cb :: C'output_render_post_cb -> IO ()
- p'wlc_set_output_render_pre_cb :: FunPtr (C'output_render_pre_cb -> IO ())
- p'wlc_set_output_render_post_cb :: FunPtr (C'output_render_post_cb -> IO ())
- c'wlc_set_view_created_cb :: C'view_created_cb -> IO ()
- c'wlc_set_view_destroyed_cb :: C'view_destroyed_cb -> IO ()
- p'wlc_set_view_created_cb :: FunPtr (C'view_created_cb -> IO ())
- c'wlc_set_view_focus_cb :: C'view_focus_cb -> IO ()
- p'wlc_set_view_destroyed_cb :: FunPtr (C'view_destroyed_cb -> IO ())
- c'wlc_set_view_move_to_output_cb :: C'view_move_to_output_cb -> IO ()
- p'wlc_set_view_focus_cb :: FunPtr (C'view_focus_cb -> IO ())
- c'wlc_set_view_request_geometry_cb :: C'view_request_geometry_cb -> IO ()
- p'wlc_set_view_move_to_output_cb :: FunPtr (C'view_move_to_output_cb -> IO ())
- c'wlc_set_view_request_state_cb :: C'view_request_state_cb -> IO ()
- p'wlc_set_view_request_geometry_cb :: FunPtr (C'view_request_geometry_cb -> IO ())
- c'wlc_set_view_request_move_cb :: C'view_request_move_cb -> IO ()
- p'wlc_set_view_request_state_cb :: FunPtr (C'view_request_state_cb -> IO ())
- c'wlc_set_view_request_resize_cb :: C'view_request_resize_cb -> IO ()
- p'wlc_set_view_request_move_cb :: FunPtr (C'view_request_move_cb -> IO ())
- c'wlc_set_view_render_pre_cb :: C'view_render_pre_cb -> IO ()
- p'wlc_set_view_request_resize_cb :: FunPtr (C'view_request_resize_cb -> IO ())
- c'wlc_set_view_render_post_cb :: C'view_render_post_cb -> IO ()
- p'wlc_set_view_render_pre_cb :: FunPtr (C'view_render_pre_cb -> IO ())
- p'wlc_set_view_render_post_cb :: FunPtr (C'view_render_post_cb -> IO ())
- c'wlc_set_keyboard_key_cb :: C'keyboard_key_cb -> IO ()
- p'wlc_set_keyboard_key_cb :: FunPtr (C'keyboard_key_cb -> IO ())
- c'wlc_set_pointer_button_cb :: C'pointer_button_cb -> IO ()
- p'wlc_set_pointer_button_cb :: FunPtr (C'pointer_button_cb -> IO ())
- c'wlc_set_pointer_scroll_cb :: C'pointer_scroll_cb -> IO ()
- p'wlc_set_pointer_scroll_cb :: FunPtr (C'pointer_scroll_cb -> IO ())
- c'wlc_set_pointer_motion_cb :: C'pointer_motion_cb -> IO ()
- p'wlc_set_pointer_motion_cb :: FunPtr (C'pointer_motion_cb -> IO ())
- c'wlc_set_touch_cb :: C'touch_cb -> IO ()
- p'wlc_set_touch_cb :: FunPtr (C'touch_cb -> IO ())
- c'wlc_set_compositor_ready_cb :: C'compositor_ready_cb -> IO ()
- c'wlc_set_compositor_terminate_cb :: C'compositor_terminate_cb -> IO ()
- p'wlc_set_compositor_ready_cb :: FunPtr (C'compositor_ready_cb -> IO ())
- p'wlc_set_compositor_terminate_cb :: FunPtr (C'compositor_terminate_cb -> IO ())
- type C'log_handler_cb = FunPtr (C'wlc_log_type -> CString -> IO ())
- mk'log_handler_cb :: (C'wlc_log_type -> CString -> IO ()) -> IO C'log_handler_cb
- c'wlc_log_set_handler :: C'log_handler_cb -> IO ()
- mK'log_handler_cb :: C'log_handler_cb -> C'wlc_log_type -> CString -> IO ()
- p'wlc_log_set_handler :: FunPtr (C'log_handler_cb -> IO ())
- c'wlc_init2 :: IO Bool
- c'wlc_terminate :: IO ()
- p'wlc_init2 :: FunPtr (IO Bool)
- p'wlc_terminate :: FunPtr (IO ())
- c'wlc_get_backend_type :: IO C'wlc_backend_type
- p'wlc_get_backend_type :: FunPtr (IO C'wlc_backend_type)
- c'wlc_exec :: CString -> Ptr CString -> IO ()
- c'wlc_run :: IO ()
- p'wlc_exec :: FunPtr (CString -> Ptr CString -> IO ())
- p'wlc_run :: FunPtr (IO ())
- c'wlc_handle_set_user_data :: C'wlc_handle -> Ptr () -> IO ()
- c'wlc_handle_get_user_data :: C'wlc_handle -> IO (Ptr ())
- p'wlc_handle_set_user_data :: FunPtr (C'wlc_handle -> Ptr () -> IO ())
- p'wlc_handle_get_user_data :: FunPtr (C'wlc_handle -> IO (Ptr ()))
- c'wlc_get_outputs :: Ptr CSize -> IO (Ptr C'wlc_handle)
- c'wlc_get_focused_output :: IO C'wlc_handle
- p'wlc_get_outputs :: FunPtr (Ptr CSize -> IO (Ptr C'wlc_handle))
- p'wlc_get_focused_output :: FunPtr (IO C'wlc_handle)
- c'wlc_output_get_name :: C'wlc_handle -> IO CString
- c'wlc_output_get_sleep :: C'wlc_handle -> IO Bool
- p'wlc_output_get_name :: FunPtr (C'wlc_handle -> IO CString)
- c'wlc_output_set_sleep :: C'wlc_handle -> Bool -> IO ()
- p'wlc_output_get_sleep :: FunPtr (C'wlc_handle -> IO Bool)
- c'wlc_output_get_resolution :: C'wlc_handle -> IO (Ptr C'wlc_size)
- p'wlc_output_set_sleep :: FunPtr (C'wlc_handle -> Bool -> IO ())
- c'wlc_output_set_resolution :: C'wlc_handle -> Ptr C'wlc_size -> IO ()
- p'wlc_output_get_resolution :: FunPtr (C'wlc_handle -> IO (Ptr C'wlc_size))
- c'wlc_output_get_mask :: C'wlc_handle -> IO CUInt
- p'wlc_output_set_resolution :: FunPtr (C'wlc_handle -> Ptr C'wlc_size -> IO ())
- c'wlc_output_set_mask :: C'wlc_handle -> CUInt -> IO ()
- p'wlc_output_get_mask :: FunPtr (C'wlc_handle -> IO CUInt)
- p'wlc_output_set_mask :: FunPtr (C'wlc_handle -> CUInt -> IO ())
- c'wlc_output_get_views :: C'wlc_handle -> Ptr CSize -> IO (Ptr wlc_handle)
- c'wlc_output_set_views :: C'wlc_handle -> Ptr C'wlc_handle -> CSize -> IO Bool
- p'wlc_output_get_views :: FunPtr (C'wlc_handle -> Ptr CSize -> IO (Ptr wlc_handle))
- p'wlc_output_set_views :: FunPtr (C'wlc_handle -> Ptr C'wlc_handle -> CSize -> IO Bool)
- c'wlc_output_focus :: C'wlc_handle -> IO ()
- p'wlc_output_focus :: FunPtr (C'wlc_handle -> IO ())
- c'wlc_view_focus :: C'wlc_handle -> IO ()
- c'wlc_view_close :: C'wlc_handle -> IO ()
- p'wlc_view_focus :: FunPtr (C'wlc_handle -> IO ())
- p'wlc_view_close :: FunPtr (C'wlc_handle -> IO ())
- c'wlc_view_get_output :: C'wlc_handle -> IO C'wlc_handle
- c'wlc_view_set_output :: C'wlc_handle -> C'wlc_handle -> IO ()
- p'wlc_view_get_output :: FunPtr (C'wlc_handle -> IO C'wlc_handle)
- c'wlc_view_send_to_back :: C'wlc_handle -> IO ()
- p'wlc_view_set_output :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ())
- p'wlc_view_send_to_back :: FunPtr (C'wlc_handle -> IO ())
- c'wlc_view_send_below :: C'wlc_handle -> C'wlc_handle -> IO ()
- c'wlc_view_bring_above :: C'wlc_handle -> C'wlc_handle -> IO ()
- p'wlc_view_send_below :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ())
- c'wlc_view_bring_to_front :: C'wlc_handle -> IO ()
- p'wlc_view_bring_above :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ())
- c'wlc_view_get_mask :: C'wlc_handle -> IO CUInt
- p'wlc_view_bring_to_front :: FunPtr (C'wlc_handle -> IO ())
- c'wlc_view_set_mask :: C'wlc_handle -> CUInt -> IO ()
- p'wlc_view_get_mask :: FunPtr (C'wlc_handle -> IO CUInt)
- c'wlc_view_get_geometry :: C'wlc_handle -> IO (Ptr C'wlc_geometry)
- p'wlc_view_set_mask :: FunPtr (C'wlc_handle -> CUInt -> IO ())
- c'wlc_view_get_visible_geometry :: C'wlc_handle -> Ptr C'wlc_geometry -> IO ()
- p'wlc_view_get_geometry :: FunPtr (C'wlc_handle -> IO (Ptr C'wlc_geometry))
- c'wlc_view_set_geometry :: C'wlc_handle -> CUInt -> Ptr C'wlc_geometry -> IO ()
- p'wlc_view_get_visible_geometry :: FunPtr (C'wlc_handle -> Ptr C'wlc_geometry -> IO ())
- c'wlc_view_get_type :: C'wlc_handle -> IO CUInt
- p'wlc_view_set_geometry :: FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_geometry -> IO ())
- p'wlc_view_get_type :: FunPtr (C'wlc_handle -> IO CUInt)
- c'wlc_view_set_type :: C'wlc_handle -> C'wlc_view_type_bit -> Bool -> IO ()
- c'wlc_view_get_state :: C'wlc_handle -> IO CUInt
- p'wlc_view_set_type :: FunPtr (C'wlc_handle -> C'wlc_view_type_bit -> Bool -> IO ())
- p'wlc_view_get_state :: FunPtr (C'wlc_handle -> IO CUInt)
- c'wlc_view_set_state :: C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()
- c'wlc_view_get_parent :: C'wlc_handle -> IO C'wlc_handle
- p'wlc_view_set_state :: FunPtr (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ())
- c'wlc_view_set_parent :: C'wlc_handle -> C'wlc_handle -> IO ()
- p'wlc_view_get_parent :: FunPtr (C'wlc_handle -> IO C'wlc_handle)
- c'wlc_view_get_title :: C'wlc_handle -> IO CString
- p'wlc_view_set_parent :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ())
- c'wlc_view_get_class :: C'wlc_handle -> IO CString
- p'wlc_view_get_title :: FunPtr (C'wlc_handle -> IO CString)
- c'wlc_view_get_app_id :: C'wlc_handle -> IO CString
- p'wlc_view_get_class :: FunPtr (C'wlc_handle -> IO CString)
- p'wlc_view_get_app_id :: FunPtr (C'wlc_handle -> IO CString)
- c'wlc_keyboard_get_current_keys :: Ptr CSize -> IO (Ptr CUInt)
- p'wlc_keyboard_get_current_keys :: FunPtr (Ptr CSize -> IO (Ptr CUInt))
- c'wlc_keyboard_get_keysym_for_key :: CUInt -> Ptr C'wlc_modifiers -> IO CUInt
- c'wlc_keyboard_get_utf32_for_key :: CUInt -> Ptr C'wlc_modifiers -> IO CUInt
- p'wlc_keyboard_get_keysym_for_key :: FunPtr (CUInt -> Ptr C'wlc_modifiers -> IO CUInt)
- c'wlc_pointer_get_position :: Ptr C'wlc_point -> IO ()
- p'wlc_keyboard_get_utf32_for_key :: FunPtr (CUInt -> Ptr C'wlc_modifiers -> IO CUInt)
- c'wlc_pointer_set_position :: Ptr C'wlc_point -> IO ()
- p'wlc_pointer_get_position :: FunPtr (Ptr C'wlc_point -> IO ())
- p'wlc_pointer_set_position :: FunPtr (Ptr C'wlc_point -> IO ())
Documentation
type C'wlc_log_type = CUInt Source
wlc_log(), wlc_vlog();
c'WLC_LOG_INFO :: Num a => a Source
c'WLC_LOG_WARN :: Num a => a Source
c'WLC_LOG_ERROR :: Num a => a Source
c'WLC_LOG_WAYLAND :: Num a => a Source
type C'wlc_backend_type = CUInt Source
wlc_get_backend_type();
c'WLC_BACKEND_NONE :: Num a => a Source
c'WLC_BACKEND_DRM :: Num a => a Source
c'WLC_BACKEND_X11 :: Num a => a Source
type C'wlc_event_bit = CUInt Source
mask in wlc_event_loop_add_fd();
c'WLC_EVENT_READABLE :: Num a => a Source
c'WLC_EVENT_WRITABLE :: Num a => a Source
c'WLC_EVENT_HANGUP :: Num a => a Source
c'WLC_EVENT_ERROR :: Num a => a Source
type C'wlc_view_state_bit = CUInt Source
wlc_view_get_state();
c'WLC_BIT_MAXIMIZED :: Num a => a Source
c'WLC_BIT_FULLSCREEN :: Num a => a Source
c'WLC_BIT_RESIZING :: Num a => a Source
c'WLC_BIT_MOVING :: Num a => a Source
c'WLC_BIT_ACTIVATED :: Num a => a Source
type C'wlc_view_type_bit = CUInt Source
wlc_view_get_type();
c'WLC_BIT_OVERRIDE_REDIRECT :: Num a => a Source
Tooltips, DnD's, menus (x11)
Override redirect (x11)
c'WLC_BIT_UNMANAGED :: Num a => a Source
Splash screens (x11)
c'WLC_BIT_SPLASH :: Num a => a Source
Modal windows (x11)
c'WLC_BIT_MODAL :: Num a => a Source
xdg-shell, wl-shell popups
c'WLC_BIT_POPUP :: Num a => a Source
type C'wlc_resize_edge = CUInt Source
wlc_view_set_geometry(); Edges in interface interface.view.request.resize function.
c'WLC_RESIZE_EDGE_NONE :: Num a => a Source
c'WLC_RESIZE_EDGE_TOP :: Num a => a Source
c'WLC_RESIZE_EDGE_BOTTOM :: Num a => a Source
c'WLC_RESIZE_EDGE_LEFT :: Num a => a Source
c'WLC_RESIZE_EDGE_TOP_LEFT :: Num a => a Source
c'WLC_RESIZE_EDGE_BOTTOM_LEFT :: Num a => a Source
c'WLC_RESIZE_EDGE_RIGHT :: Num a => a Source
c'WLC_RESIZE_EDGE_TOP_RIGHT :: Num a => a Source
c'WLC_RESIZE_EDGE_BOTTOM_RIGHT :: Num a => a Source
type C'wlc_modifier_bit = CUInt Source
Mods in interface.keyboard.key function.
c'WLC_BIT_MOD_SHIFT :: Num a => a Source
c'WLC_BIT_MOD_CAPS :: Num a => a Source
c'WLC_BIT_MOD_CTRL :: Num a => a Source
c'WLC_BIT_MOD_ALT :: Num a => a Source
c'WLC_BIT_MOD_MOD2 :: Num a => a Source
c'WLC_BIT_MOD_MOD3 :: Num a => a Source
c'WLC_BIT_MOD_LOGO :: Num a => a Source
c'WLC_BIT_MOD_MOD5 :: Num a => a Source
type C'wlc_led_bit = CUInt Source
Leds in interface.keyboard.key function.
c'WLC_BIT_LED_NUM :: Num a => a Source
c'WLC_BIT_LED_CAPS :: Num a => a Source
c'WLC_BIT_LED_SCROLL :: Num a => a Source
type C'wlc_key_state = CUInt Source
State in interface.keyboard.key function.
c'WLC_KEY_STATE_RELEASED :: Num a => a Source
c'WLC_KEY_STATE_PRESSED :: Num a => a Source
type C'wlc_button_state = CUInt Source
State in interface.pointer.button function.
c'WLC_BUTTON_STATE_RELEASED :: Num a => a Source
c'WLC_BUTTON_STATE_PRESSED :: Num a => a Source
type C'wlc_scroll_axis_bit = CUInt Source
Axis in interface.pointer.scroll function.
c'WLC_SCROLL_AXIS_VERTICAL :: Num a => a Source
c'WLC_SCROLL_AXIS_HORIZONTAL :: Num a => a Source
type C'wlc_touch_type = CUInt Source
Type in interface.touch.touch function
c'WLC_TOUCH_DOWN :: Num a => a Source
c'WLC_TOUCH_UP :: Num a => a Source
c'WLC_TOUCH_MOTION :: Num a => a Source
c'WLC_TOUCH_FRAME :: Num a => a Source
c'WLC_TOUCH_CANCEL :: Num a => a Source
data C'wlc_modifiers Source
State of keyboard modifiers in various functions.
Callback API
Types
Output
type C'output_created_cb = FunPtr (C'wlc_handle -> IO Bool) Source
type C'output_destroyed_cb = FunPtr (C'wlc_handle -> IO ()) Source
mk'output_created_cb :: (C'wlc_handle -> IO Bool) -> IO C'output_created_cb Source
type C'output_focus_cb = FunPtr (C'wlc_handle -> Bool -> IO ()) Source
mk'output_destroyed_cb :: (C'wlc_handle -> IO ()) -> IO C'output_destroyed_cb Source
type C'output_resolution_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO ()) Source
mk'output_focus_cb :: (C'wlc_handle -> Bool -> IO ()) -> IO C'output_focus_cb Source
type C'output_render_pre_cb = FunPtr (C'wlc_handle -> IO ()) Source
mK'output_destroyed_cb :: C'output_destroyed_cb -> C'wlc_handle -> IO () Source
mk'output_resolution_cb :: (C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO ()) -> IO C'output_resolution_cb Source
type C'output_render_post_cb = FunPtr (C'wlc_handle -> IO ()) Source
mk'output_render_pre_cb :: (C'wlc_handle -> IO ()) -> IO C'output_render_pre_cb Source
mK'output_focus_cb :: C'output_focus_cb -> C'wlc_handle -> Bool -> IO () Source
View
mk'output_render_post_cb :: (C'wlc_handle -> IO ()) -> IO C'output_render_post_cb Source
mK'output_resolution_cb :: C'output_resolution_cb -> C'wlc_handle -> Ptr C'wlc_size -> Ptr C'wlc_size -> IO () Source
type C'view_created_cb = FunPtr (C'wlc_handle -> IO Bool) Source
type C'view_destroyed_cb = FunPtr (C'wlc_handle -> IO ()) Source
mk'view_created_cb :: (C'wlc_handle -> IO Bool) -> IO C'view_created_cb Source
type C'view_focus_cb = FunPtr (C'wlc_handle -> Bool -> IO ()) Source
mk'view_destroyed_cb :: (C'wlc_handle -> IO ()) -> IO C'view_destroyed_cb Source
type C'view_move_to_output_cb = FunPtr (C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO ()) Source
mk'view_focus_cb :: (C'wlc_handle -> Bool -> IO ()) -> IO C'view_focus_cb Source
type C'view_request_geometry_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_geometry -> IO ()) Source
mK'view_destroyed_cb :: C'view_destroyed_cb -> C'wlc_handle -> IO () Source
mk'view_move_to_output_cb :: (C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO ()) -> IO C'view_move_to_output_cb Source
type C'view_request_state_cb = FunPtr (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()) Source
mK'view_focus_cb :: C'view_focus_cb -> C'wlc_handle -> Bool -> IO () Source
mk'view_request_geometry_cb :: (C'wlc_handle -> Ptr C'wlc_geometry -> IO ()) -> IO C'view_request_geometry_cb Source
type C'view_request_move_cb = FunPtr (C'wlc_handle -> Ptr C'wlc_point -> IO ()) Source
mK'view_move_to_output_cb :: C'view_move_to_output_cb -> C'wlc_handle -> C'wlc_handle -> C'wlc_handle -> IO () Source
mk'view_request_state_cb :: (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()) -> IO C'view_request_state_cb Source
type C'view_request_resize_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO ()) Source
mk'view_request_move_cb :: (C'wlc_handle -> Ptr C'wlc_point -> IO ()) -> IO C'view_request_move_cb Source
mK'view_request_geometry_cb :: C'view_request_geometry_cb -> C'wlc_handle -> Ptr C'wlc_geometry -> IO () Source
type C'view_render_pre_cb = FunPtr (C'wlc_handle -> IO ()) Source
mk'view_request_resize_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO ()) -> IO C'view_request_resize_cb Source
mK'view_request_state_cb :: C'view_request_state_cb -> C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO () Source
type C'view_render_post_cb = FunPtr (C'wlc_handle -> IO ()) Source
mk'view_render_pre_cb :: (C'wlc_handle -> IO ()) -> IO C'view_render_pre_cb Source
mK'view_request_move_cb :: C'view_request_move_cb -> C'wlc_handle -> Ptr C'wlc_point -> IO () Source
Input
mk'view_render_post_cb :: (C'wlc_handle -> IO ()) -> IO C'view_render_post_cb Source
mK'view_request_resize_cb :: C'view_request_resize_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO () Source
type C'keyboard_key_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool) Source
mK'view_render_pre_cb :: C'view_render_pre_cb -> C'wlc_handle -> IO () Source
type C'pointer_button_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool) Source
mK'view_render_post_cb :: C'view_render_post_cb -> C'wlc_handle -> IO () Source
mk'keyboard_key_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool) -> IO C'keyboard_key_cb Source
type C'pointer_scroll_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool) Source
mk'pointer_button_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool) -> IO C'pointer_button_cb Source
type C'pointer_motion_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool) Source
mK'keyboard_key_cb :: C'keyboard_key_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_key_state -> IO Bool Source
mk'pointer_scroll_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool) -> IO C'pointer_scroll_cb Source
type C'touch_cb = FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool) Source
mk'pointer_motion_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool) -> IO C'pointer_motion_cb Source
mK'pointer_button_cb :: C'pointer_button_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> CUInt -> C'wlc_button_state -> Ptr C'wlc_point -> IO Bool Source
Other
mK'pointer_scroll_cb :: C'pointer_scroll_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_scroll_axis_bit -> Double -> IO Bool Source
mk'touch_cb :: (C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool) -> IO C'touch_cb Source
type C'compositor_ready_cb = FunPtr (IO ()) Source
mK'pointer_motion_cb :: C'pointer_motion_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_point -> IO Bool Source
type C'compositor_terminate_cb = FunPtr (IO ()) Source
mK'touch_cb :: C'touch_cb -> C'wlc_handle -> CUInt -> Ptr C'wlc_modifiers -> C'wlc_touch_type -> CInt -> Ptr C'wlc_point -> IO Bool Source
Functions
Output
c'wlc_set_output_created_cb :: C'output_created_cb -> IO () Source
Output was created. Return false if you want to destroy the output. (e.g. failed to allocate data related to view)
c'wlc_set_output_destroyed_cb :: C'output_destroyed_cb -> IO () Source
Output was destroyed.
p'wlc_set_output_created_cb :: FunPtr (C'output_created_cb -> IO ()) Source
c'wlc_set_output_focus_cb :: C'output_focus_cb -> IO () Source
Output got or lost focus.
c'wlc_set_output_resolution_cb :: C'output_resolution_cb -> IO () Source
Output resolution changed.
p'wlc_set_output_focus_cb :: FunPtr (C'output_focus_cb -> IO ()) Source
c'wlc_set_output_render_pre_cb :: C'output_render_pre_cb -> IO () Source
Output pre render hook.
c'wlc_set_output_render_post_cb :: C'output_render_post_cb -> IO () Source
Output post render hook.
View
p'wlc_set_output_render_post_cb :: FunPtr (C'output_render_post_cb -> IO ()) Source
View was created. Return false if you want to destroy the view. (e.g. failed to allocate data related to view)
c'wlc_set_view_destroyed_cb :: C'view_destroyed_cb -> IO () Source
View was destroyed.
p'wlc_set_view_created_cb :: FunPtr (C'view_created_cb -> IO ()) Source
c'wlc_set_view_focus_cb :: C'view_focus_cb -> IO () Source
View got or lost focus.
p'wlc_set_view_destroyed_cb :: FunPtr (C'view_destroyed_cb -> IO ()) Source
c'wlc_set_view_move_to_output_cb :: C'view_move_to_output_cb -> IO () Source
View was moved to output.
p'wlc_set_view_focus_cb :: FunPtr (C'view_focus_cb -> IO ()) Source
c'wlc_set_view_request_geometry_cb :: C'view_request_geometry_cb -> IO () Source
Request to set given geometry for view. Apply using wlc_view_set_geometry to agree.
c'wlc_set_view_request_state_cb :: C'view_request_state_cb -> IO () Source
Request to disable or enable the given state for view. Apply using wlc_view_set_state to agree.
c'wlc_set_view_request_move_cb :: C'view_request_move_cb -> IO () Source
Request to move itself. Start a interactive move to agree.
c'wlc_set_view_request_resize_cb :: C'view_request_resize_cb -> IO () Source
Request to resize itself with the given edges. Start a interactive resize to agree.
c'wlc_set_view_render_pre_cb :: C'view_render_pre_cb -> IO () Source
View pre render hook.
c'wlc_set_view_render_post_cb :: C'view_render_post_cb -> IO () Source
View post render hook.
Input
p'wlc_set_view_render_post_cb :: FunPtr (C'view_render_post_cb -> IO ()) Source
Key event was triggered, view handle will be zero if there was no focus. Return true to prevent sending the event to clients.
p'wlc_set_keyboard_key_cb :: FunPtr (C'keyboard_key_cb -> IO ()) Source
Button event was triggered, view handle will be zero if there was no focus. Return true to prevent sending the event to clients.
p'wlc_set_pointer_button_cb :: FunPtr (C'pointer_button_cb -> IO ()) Source
Scroll event was triggered, view handle will be zero if there was no focus. Return true to prevent sending the event to clients.
p'wlc_set_pointer_scroll_cb :: FunPtr (C'pointer_scroll_cb -> IO ()) Source
Motion event was triggered, view handle will be zero if there was no focus. Apply with wlc_pointer_set_position to agree. Return true to prevent sending the event to clients.
p'wlc_set_pointer_motion_cb :: FunPtr (C'pointer_motion_cb -> IO ()) Source
Touch event was triggered, view handle will be zero if there was no focus. Return true to prevent sending the event to clients.
c'wlc_set_touch_cb :: C'touch_cb -> IO () Source
Other
p'wlc_set_touch_cb :: FunPtr (C'touch_cb -> IO ()) Source
Compositor is ready to accept clients.
c'wlc_set_compositor_terminate_cb :: C'compositor_terminate_cb -> IO () Source
Compositor is about to terminate
Core API
type C'log_handler_cb = FunPtr (C'wlc_log_type -> CString -> IO ()) Source
Creates a log handler callback
mk'log_handler_cb :: (C'wlc_log_type -> CString -> IO ()) -> IO C'log_handler_cb Source
c'wlc_log_set_handler :: C'log_handler_cb -> IO () Source
Set log handler. Can be set before wlc_init.
mK'log_handler_cb :: C'log_handler_cb -> C'wlc_log_type -> CString -> IO () Source
p'wlc_log_set_handler :: FunPtr (C'log_handler_cb -> IO ()) Source
c'wlc_init2 :: IO Bool Source
Initialize wlc. Returns false on failure.
Avoid running unverified code before wlc_init as wlc compositor may be run with higher privileges on non logind systems where compositor binary needs to be suid.
wlc_init's purpose is to initialize and drop privileges as soon as possible.
Callbacks should be set using wlc_set_*_cb functions before calling wlc_init2, failing to do so will cause any callback the init may trigger to not be called.
c'wlc_terminate :: IO () Source
Terminate wlc.
p'wlc_init2 :: FunPtr (IO Bool) Source
p'wlc_terminate :: FunPtr (IO ()) Source
Query backend wlc is using.
p'wlc_get_backend_type :: FunPtr (IO C'wlc_backend_type) Source
Exec program.
c'wlc_handle_set_user_data :: C'wlc_handle -> Ptr () -> IO () Source
c'wlc_handle_get_user_data :: C'wlc_handle -> IO (Ptr ()) Source
Get linked custom data from handle.
p'wlc_handle_set_user_data :: FunPtr (C'wlc_handle -> Ptr () -> IO ()) Source
Output API
p'wlc_handle_get_user_data :: FunPtr (C'wlc_handle -> IO (Ptr ())) Source
c'wlc_get_outputs :: Ptr CSize -> IO (Ptr C'wlc_handle) Source
Get outputs. Returned array is a direct reference, careful when moving and destroying handles.
c'wlc_get_focused_output :: IO C'wlc_handle Source
Get focused output.
p'wlc_get_outputs :: FunPtr (Ptr CSize -> IO (Ptr C'wlc_handle)) Source
p'wlc_get_focused_output :: FunPtr (IO C'wlc_handle) Source
Get output name.
c'wlc_output_get_sleep :: C'wlc_handle -> IO Bool Source
Get sleep state.
c'wlc_output_set_sleep :: C'wlc_handle -> Bool -> IO () Source
Wake up / sleep.
p'wlc_output_get_sleep :: FunPtr (C'wlc_handle -> IO Bool) Source
c'wlc_output_get_resolution :: C'wlc_handle -> IO (Ptr C'wlc_size) Source
Get resolution.
p'wlc_output_set_sleep :: FunPtr (C'wlc_handle -> Bool -> IO ()) Source
c'wlc_output_set_resolution :: C'wlc_handle -> Ptr C'wlc_size -> IO () Source
Set resolution.
c'wlc_output_get_mask :: C'wlc_handle -> IO CUInt Source
Get current visibility bitmask.
p'wlc_output_set_resolution :: FunPtr (C'wlc_handle -> Ptr C'wlc_size -> IO ()) Source
c'wlc_output_set_mask :: C'wlc_handle -> CUInt -> IO () Source
Set visibility bitmask.
p'wlc_output_get_mask :: FunPtr (C'wlc_handle -> IO CUInt) Source
p'wlc_output_set_mask :: FunPtr (C'wlc_handle -> CUInt -> IO ()) Source
Get views in stack order. Returned array is a direct reference, careful when moving and destroying handles.
c'wlc_output_get_views :: C'wlc_handle -> Ptr CSize -> IO (Ptr wlc_handle) Source
c'wlc_output_set_views :: C'wlc_handle -> Ptr C'wlc_handle -> CSize -> IO Bool Source
Set views in stack order. This will also change mutable views. Returns false on failure.
p'wlc_output_get_views :: FunPtr (C'wlc_handle -> Ptr CSize -> IO (Ptr wlc_handle)) Source
p'wlc_output_set_views :: FunPtr (C'wlc_handle -> Ptr C'wlc_handle -> CSize -> IO Bool) Source
Focus output. Pass zero for no focus.
c'wlc_output_focus :: C'wlc_handle -> IO () Source
View API
p'wlc_output_focus :: FunPtr (C'wlc_handle -> IO ()) Source
c'wlc_view_focus :: C'wlc_handle -> IO () Source
Focus view. Pass zero for no focus.
c'wlc_view_close :: C'wlc_handle -> IO () Source
Close view.
p'wlc_view_focus :: FunPtr (C'wlc_handle -> IO ()) Source
p'wlc_view_close :: FunPtr (C'wlc_handle -> IO ()) Source
Get current output.
c'wlc_view_set_output :: C'wlc_handle -> C'wlc_handle -> IO () Source
Set output. Alternatively you can wlc_output_set_views.
c'wlc_view_send_to_back :: C'wlc_handle -> IO () Source
Send behind everything.
p'wlc_view_set_output :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ()) Source
p'wlc_view_send_to_back :: FunPtr (C'wlc_handle -> IO ()) Source
Send below another view.
c'wlc_view_send_below :: C'wlc_handle -> C'wlc_handle -> IO () Source
c'wlc_view_bring_above :: C'wlc_handle -> C'wlc_handle -> IO () Source
Send above another view.
p'wlc_view_send_below :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ()) Source
c'wlc_view_bring_to_front :: C'wlc_handle -> IO () Source
Bring to front of everything.
p'wlc_view_bring_above :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ()) Source
c'wlc_view_get_mask :: C'wlc_handle -> IO CUInt Source
Get current visibility bitmask.
p'wlc_view_bring_to_front :: FunPtr (C'wlc_handle -> IO ()) Source
c'wlc_view_set_mask :: C'wlc_handle -> CUInt -> IO () Source
Set visibility bitmask.
p'wlc_view_get_mask :: FunPtr (C'wlc_handle -> IO CUInt) Source
c'wlc_view_get_geometry :: C'wlc_handle -> IO (Ptr C'wlc_geometry) Source
Get current geometry. (what client sees)
p'wlc_view_set_mask :: FunPtr (C'wlc_handle -> CUInt -> IO ()) Source
c'wlc_view_get_visible_geometry :: C'wlc_handle -> Ptr C'wlc_geometry -> IO () Source
Get visible geometry. (what wlc displays)
c'wlc_view_set_geometry :: C'wlc_handle -> CUInt -> Ptr C'wlc_geometry -> IO () Source
Set geometry. Set edges if the geometry change is caused by interactive resize.
p'wlc_view_get_visible_geometry :: FunPtr (C'wlc_handle -> Ptr C'wlc_geometry -> IO ()) Source
c'wlc_view_get_type :: C'wlc_handle -> IO CUInt Source
Get type bitfield.
p'wlc_view_set_geometry :: FunPtr (C'wlc_handle -> CUInt -> Ptr C'wlc_geometry -> IO ()) Source
p'wlc_view_get_type :: FunPtr (C'wlc_handle -> IO CUInt) Source
Set type bit. Toggle indicates whether it is set or not.
c'wlc_view_set_type :: C'wlc_handle -> C'wlc_view_type_bit -> Bool -> IO () Source
c'wlc_view_get_state :: C'wlc_handle -> IO CUInt Source
Get current state bitfield.
p'wlc_view_set_type :: FunPtr (C'wlc_handle -> C'wlc_view_type_bit -> Bool -> IO ()) Source
p'wlc_view_get_state :: FunPtr (C'wlc_handle -> IO CUInt) Source
Set state bit. Toggle indicates whether it is set or not.
c'wlc_view_set_state :: C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO () Source
c'wlc_view_get_parent :: C'wlc_handle -> IO C'wlc_handle Source
Get parent view.
p'wlc_view_set_state :: FunPtr (C'wlc_handle -> C'wlc_view_state_bit -> Bool -> IO ()) Source
c'wlc_view_set_parent :: C'wlc_handle -> C'wlc_handle -> IO () Source
Set parent view.
c'wlc_view_get_title :: C'wlc_handle -> IO CString Source
Get title.
p'wlc_view_set_parent :: FunPtr (C'wlc_handle -> C'wlc_handle -> IO ()) Source
c'wlc_view_get_class :: C'wlc_handle -> IO CString Source
Get class. (shell-surface only)
c'wlc_view_get_app_id :: C'wlc_handle -> IO CString Source
Get app id. (xdg-surface only)
Input API
p'wlc_keyboard_get_current_keys :: FunPtr (Ptr CSize -> IO (Ptr CUInt)) Source
Utility function to convert raw keycode to keysym. Passed modifiers may transform the key.
c'wlc_keyboard_get_utf32_for_key :: CUInt -> Ptr C'wlc_modifiers -> IO CUInt Source
Utility function to convert raw keycode to Unicode/UTF-32 codepoint. Passed modifiers may transform the key.
c'wlc_pointer_get_position :: Ptr C'wlc_point -> IO () Source
Get current pointer position.
c'wlc_pointer_set_position :: Ptr C'wlc_point -> IO () Source
Set current pointer position.
p'wlc_pointer_get_position :: FunPtr (Ptr C'wlc_point -> IO ()) Source
p'wlc_pointer_set_position :: FunPtr (Ptr C'wlc_point -> IO ()) Source