MapLibre Native Core
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Typedefs
a
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerations
a
b
c
e
f
h
i
k
l
m
n
o
r
s
t
v
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Related Functions
a
b
e
i
m
o
s
t
Files
File List
File Members
All
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
namespace
mbgl
{
6
7
enum class
EventSeverity
: uint8_t {
8
Debug
,
9
Info
,
10
Warning
,
11
Error
,
12
};
13
14
enum class
Event
: uint8_t {
15
General
,
16
Setup
,
17
Shader
,
18
ParseStyle
,
19
ParseTile
,
20
Render
,
21
Style
,
22
Database
,
23
HttpRequest
,
24
Sprite
,
25
Image
,
26
OpenGL
,
27
JNI
,
28
Android
,
29
Crash
,
30
Glyph
,
31
Timing
32
};
33
34
struct
EventPermutation
{
35
const
EventSeverity
severity
;
36
const
Event
event
;
37
38
constexpr
bool
operator==
(
const
EventPermutation
&rhs)
const
{
39
return
severity
== rhs.
severity
&&
event
== rhs.
event
;
40
}
41
};
42
43
constexpr
EventSeverity
disabledEventSeverities
[] = {
44
#ifndef NDEBUG
45
EventSeverity
(-1)
// Avoid zero size array
46
#else
47
EventSeverity::Debug
48
#endif
49
};
50
51
constexpr
Event
disabledEvents
[] = {
52
Event
(-1)
// Avoid zero size array
53
};
54
55
constexpr
EventPermutation
disabledEventPermutations
[] = {
56
{
EventSeverity::Debug
,
Event::Shader
}
57
};
58
59
}
// namespace mbgl
mbgl
Definition:
actor.hpp:15
mbgl::Event
Event
Definition:
event.hpp:14
mbgl::Event::General
@ General
mbgl::Event::Crash
@ Crash
mbgl::Event::JNI
@ JNI
mbgl::Event::Sprite
@ Sprite
mbgl::Event::Render
@ Render
mbgl::Event::OpenGL
@ OpenGL
mbgl::Event::ParseStyle
@ ParseStyle
mbgl::Event::ParseTile
@ ParseTile
mbgl::Event::Glyph
@ Glyph
mbgl::Event::Shader
@ Shader
mbgl::Event::Setup
@ Setup
mbgl::Event::Style
@ Style
mbgl::Event::Image
@ Image
mbgl::Event::HttpRequest
@ HttpRequest
mbgl::Event::Timing
@ Timing
mbgl::Event::Database
@ Database
mbgl::Event::Android
@ Android
mbgl::disabledEvents
constexpr Event disabledEvents[]
Definition:
event.hpp:51
mbgl::disabledEventPermutations
constexpr EventPermutation disabledEventPermutations[]
Definition:
event.hpp:55
mbgl::disabledEventSeverities
constexpr EventSeverity disabledEventSeverities[]
Definition:
event.hpp:43
mbgl::EventSeverity
EventSeverity
Definition:
event.hpp:7
mbgl::EventSeverity::Warning
@ Warning
mbgl::EventSeverity::Info
@ Info
mbgl::EventSeverity::Error
@ Error
mbgl::EventSeverity::Debug
@ Debug
mbgl::EventPermutation
Definition:
event.hpp:34
mbgl::EventPermutation::event
const Event event
Definition:
event.hpp:36
mbgl::EventPermutation::operator==
constexpr bool operator==(const EventPermutation &rhs) const
Definition:
event.hpp:38
mbgl::EventPermutation::severity
const EventSeverity severity
Definition:
event.hpp:35
include
mbgl
util
event.hpp
MapLibre website
|
GitHub repository