1 // 2 // Copyright (c) 2016 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // NativeWindow9.cpp: Defines NativeWindow9, a class for managing and 8 // performing operations on an EGLNativeWindowType for the D3D9 renderer. 9 10 #include "libANGLE/renderer/d3d/d3d9/NativeWindow9.h" 11 12 namespace rx 13 { NativeWindow9(EGLNativeWindowType window)14NativeWindow9::NativeWindow9(EGLNativeWindowType window) : NativeWindowD3D(window) 15 { 16 } 17 initialize()18bool NativeWindow9::initialize() 19 { 20 return true; 21 } 22 getClientRect(LPRECT rect) const23bool NativeWindow9::getClientRect(LPRECT rect) const 24 { 25 return GetClientRect(getNativeWindow(), rect) == TRUE; 26 } 27 isIconic() const28bool NativeWindow9::isIconic() const 29 { 30 return IsIconic(getNativeWindow()) == TRUE; 31 } 32 33 // static IsValidNativeWindow(EGLNativeWindowType window)34bool NativeWindow9::IsValidNativeWindow(EGLNativeWindowType window) 35 { 36 return IsWindow(window) == TRUE; 37 } 38 39 } // namespace rx 40