The open source OpenXR runtime
1// Copyright 2020-2021, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3// Author: Rylie Pavlik <rylie.pavlik@collabora.com>
4// Inline implementations: do not include on its own!
5
6#pragma once
7
8namespace wrap {
9namespace android::graphics {
10inline int32_t Point::getX() const {
11 assert(!isNull());
12 return get(Meta::data().x, object());
13}
14
15inline int32_t Point::getY() const {
16 assert(!isNull());
17 return get(Meta::data().y, object());
18}
19
20inline int32_t PixelFormat::OPAQUE() {
21 auto &data = Meta::data();
22 auto ret = get(data.OPAQUE, data.clazz());
23 return ret;
24}
25} // namespace android::graphics
26} // namespace wrap