The open source OpenXR runtime
at main 21 lines 560 B view raw
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::util { 10inline int32_t DisplayMetrics::getHeightPixels() const { 11 assert(!isNull()); 12 return get(Meta::data().heightPixels, object()); 13} 14 15inline int32_t DisplayMetrics::getWidthPixels() const { 16 assert(!isNull()); 17 return get(Meta::data().widthPixels, object()); 18} 19 20} // namespace android::util 21} // namespace wrap