MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Toggle main menu visibility
Loading...
Searching...
No Matches
include
maplibre_native_c
platform
wayland.h
Go to the documentation of this file.
1
5
6
#ifndef MAPLIBRE_NATIVE_C_PLATFORM_WAYLAND_H
7
#define MAPLIBRE_NATIVE_C_PLATFORM_WAYLAND_H
8
9
#include <stdint.h>
10
11
#include "
../base.h
"
12
#include "
../completion.h
"
13
#include "
../map.h
"
14
#include "
../render_session.h
"
15
#include "
../render_target.h
"
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
22
typedef
struct
mln_wayland_surface_descriptor
{
23
uint32_t
size
;
24
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
26
void
*
display
MLN_BINDING(
"required=true"
);
28
void
*
surface
MLN_BINDING(
"required=true"
);
29
}
mln_wayland_surface_descriptor
;
30
34
typedef
struct
mln_wayland_surface_replacement
{
35
uint32_t
size
;
36
mln_logical_size
logical_size
MLN_BINDING(
"required=true"
);
38
void
*
surface
MLN_BINDING(
"required=true"
);
39
}
mln_wayland_surface_replacement
;
40
68
MLN_BINDING(
"execution=lifecycle;platforms=freebsd,linux"
)
69
MLN_API
mln_status
mln_map_attach_wayland_surface
(
70
mln_map
map, const
mln_wayland_surface_descriptor
* descriptor,
71
mln_vulkan_device
device MLN_BINDING(
"nullable=true"
),
72
const
mln_render_session_attach_options
* options,
73
mln_render_session
* out_session MLN_BINDING(
"direction=out"
),
74
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
75
) MLN_NOEXCEPT;
76
90
MLN_BINDING(
"execution=operation;platforms=freebsd,linux"
)
91
MLN_API
mln_status
mln_render_session_set_wayland_surface_target
(
92
mln_render_session
session,
93
const
mln_wayland_surface_replacement
* replacement,
94
const
mln_completion
* completion,
mln_diagnostic
* out_diagnostic
95
) MLN_NOEXCEPT;
96
97
#ifdef __cplusplus
98
}
99
#endif
100
101
#endif
// MAPLIBRE_NATIVE_C_PLATFORM_WAYLAND_H
base.h
mln_render_session
uint64_t mln_render_session
Definition
base.h:147
mln_map
uint64_t mln_map
Definition
base.h:112
mln_vulkan_device
uint64_t mln_vulkan_device
Definition
base.h:127
mln_status
mln_status
Definition
base.h:41
completion.h
map.h
render_session.h
render_target.h
mln_completion
Definition
completion.h:66
mln_diagnostic
Definition
base.h:84
mln_logical_size
Definition
map.h:196
mln_render_session_attach_options
Definition
render_target.h:125
mln_wayland_surface_descriptor
Definition
wayland.h:22
mln_wayland_surface_descriptor::logical_size
mln_logical_size logical_size
Definition
wayland.h:24
mln_wayland_surface_descriptor::surface
void * surface
Definition
wayland.h:28
mln_wayland_surface_descriptor::display
void * display
Definition
wayland.h:26
mln_wayland_surface_descriptor::size
uint32_t size
Definition
wayland.h:23
mln_wayland_surface_replacement
Definition
wayland.h:34
mln_wayland_surface_replacement::size
uint32_t size
Definition
wayland.h:35
mln_wayland_surface_replacement::surface
void * surface
Definition
wayland.h:38
mln_wayland_surface_replacement::logical_size
mln_logical_size logical_size
Definition
wayland.h:36
mln_map_attach_wayland_surface
mln_status mln_map_attach_wayland_surface(mln_map map, const mln_wayland_surface_descriptor *descriptor, mln_vulkan_device device, const mln_render_session_attach_options *options, mln_render_session *out_session, const mln_completion *completion, mln_diagnostic *out_diagnostic)
mln_render_session_set_wayland_surface_target
mln_status mln_render_session_set_wayland_surface_target(mln_render_session session, const mln_wayland_surface_replacement *replacement, const mln_completion *completion, mln_diagnostic *out_diagnostic)
Generated by
1.18.0