1 // Copyright 2019 The Chromium OS Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 /* automatically generated by rust-bindgen */ 6 7 /// @page page_xdg_shell_unstable_v6 The xdg_shell_unstable_v6 protocol 8 /// @section page_ifaces_xdg_shell_unstable_v6 Interfaces 9 /// - @subpage page_iface_zxdg_shell_v6 - create desktop-style surfaces 10 /// - @subpage page_iface_zxdg_positioner_v6 - child surface positioner 11 /// - @subpage page_iface_zxdg_surface_v6 - desktop user interface surface base interface 12 /// - @subpage page_iface_zxdg_toplevel_v6 - toplevel surface 13 /// - @subpage page_iface_zxdg_popup_v6 - short-lived, popup surfaces for menus 14 /// @section page_copyright_xdg_shell_unstable_v6 Copyright 15 /// <pre> 16 /// 17 /// Copyright © 2008-2013 Kristian Høgsberg 18 /// Copyright © 2013 Rafael Antognolli 19 /// Copyright © 2013 Jasper St. Pierre 20 /// Copyright © 2010-2013 Intel Corporation 21 /// 22 /// Permission is hereby granted, free of charge, to any person obtaining a 23 /// copy of this software and associated documentation files (the "Software"), 24 /// to deal in the Software without restriction, including without limitation 25 /// the rights to use, copy, modify, merge, publish, distribute, sublicense, 26 /// and/or sell copies of the Software, and to permit persons to whom the 27 /// Software is furnished to do so, subject to the following conditions: 28 /// 29 /// The above copyright notice and this permission notice (including the next 30 /// paragraph) shall be included in all copies or substantial portions of the 31 /// Software. 32 /// 33 /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34 /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35 /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 36 /// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37 /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 38 /// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 39 /// DEALINGS IN THE SOFTWARE. 40 /// </pre> 41 #[repr(C)] 42 #[derive(Debug, Copy, Clone)] 43 pub struct wl_output { 44 _unused: [u8; 0], 45 } 46 #[repr(C)] 47 pub struct dwl_context { 48 pub _bindgen_opaque_blob: [u64; 52usize], 49 } 50 #[repr(C)] 51 #[derive(Debug, Copy, Clone)] 52 pub struct dwl_dmabuf { 53 pub _bindgen_opaque_blob: [u64; 3usize], 54 } 55 #[repr(C)] 56 #[derive(Debug, Copy, Clone)] 57 pub struct dwl_surface { 58 pub _bindgen_opaque_blob: [u64; 12usize], 59 } 60 extern "C" { dwl_context_new() -> *mut dwl_context61 pub fn dwl_context_new() -> *mut dwl_context; 62 } 63 extern "C" { dwl_context_destroy(self_: *mut *mut dwl_context)64 pub fn dwl_context_destroy(self_: *mut *mut dwl_context); 65 } 66 extern "C" { dwl_context_setup( self_: *mut dwl_context, socket_path: *const ::std::os::raw::c_char, ) -> bool67 pub fn dwl_context_setup( 68 self_: *mut dwl_context, 69 socket_path: *const ::std::os::raw::c_char, 70 ) -> bool; 71 } 72 extern "C" { dwl_context_fd(self_: *mut dwl_context) -> ::std::os::raw::c_int73 pub fn dwl_context_fd(self_: *mut dwl_context) -> ::std::os::raw::c_int; 74 } 75 extern "C" { dwl_context_dispatch(self_: *mut dwl_context)76 pub fn dwl_context_dispatch(self_: *mut dwl_context); 77 } 78 extern "C" { dwl_context_dmabuf_new( self_: *mut dwl_context, fd: ::std::os::raw::c_int, offset: u32, stride: u32, modifiers: u64, width: u32, height: u32, fourcc: u32, ) -> *mut dwl_dmabuf79 pub fn dwl_context_dmabuf_new( 80 self_: *mut dwl_context, 81 fd: ::std::os::raw::c_int, 82 offset: u32, 83 stride: u32, 84 modifiers: u64, 85 width: u32, 86 height: u32, 87 fourcc: u32, 88 ) -> *mut dwl_dmabuf; 89 } 90 extern "C" { dwl_dmabuf_destroy(self_: *mut *mut dwl_dmabuf)91 pub fn dwl_dmabuf_destroy(self_: *mut *mut dwl_dmabuf); 92 } 93 extern "C" { dwl_context_surface_new( self_: *mut dwl_context, parent: *mut dwl_surface, shm_fd: ::std::os::raw::c_int, shm_size: usize, buffer_size: usize, width: u32, height: u32, stride: u32, ) -> *mut dwl_surface94 pub fn dwl_context_surface_new( 95 self_: *mut dwl_context, 96 parent: *mut dwl_surface, 97 shm_fd: ::std::os::raw::c_int, 98 shm_size: usize, 99 buffer_size: usize, 100 width: u32, 101 height: u32, 102 stride: u32, 103 ) -> *mut dwl_surface; 104 } 105 extern "C" { dwl_surface_destroy(self_: *mut *mut dwl_surface)106 pub fn dwl_surface_destroy(self_: *mut *mut dwl_surface); 107 } 108 extern "C" { dwl_surface_commit(self_: *mut dwl_surface)109 pub fn dwl_surface_commit(self_: *mut dwl_surface); 110 } 111 extern "C" { dwl_surface_buffer_in_use(self_: *mut dwl_surface, buffer_index: usize) -> bool112 pub fn dwl_surface_buffer_in_use(self_: *mut dwl_surface, buffer_index: usize) -> bool; 113 } 114 extern "C" { dwl_surface_flip(self_: *mut dwl_surface, buffer_index: usize)115 pub fn dwl_surface_flip(self_: *mut dwl_surface, buffer_index: usize); 116 } 117 extern "C" { dwl_surface_flip_to(self_: *mut dwl_surface, dmabuf: *mut dwl_dmabuf)118 pub fn dwl_surface_flip_to(self_: *mut dwl_surface, dmabuf: *mut dwl_dmabuf); 119 } 120 extern "C" { dwl_surface_close_requested(self_: *const dwl_surface) -> bool121 pub fn dwl_surface_close_requested(self_: *const dwl_surface) -> bool; 122 } 123 extern "C" { dwl_surface_set_position(self_: *mut dwl_surface, x: u32, y: u32)124 pub fn dwl_surface_set_position(self_: *mut dwl_surface, x: u32, y: u32); 125 } 126