1 // 2 // Copyright 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 initialize()16bool NativeWindow9::initialize() 17 { 18 return true; 19 } 20 getClientRect(LPRECT rect) const21bool NativeWindow9::getClientRect(LPRECT rect) const 22 { 23 return GetClientRect(getNativeWindow(), rect) == TRUE; 24 } 25 isIconic() const26bool NativeWindow9::isIconic() const 27 { 28 return IsIconic(getNativeWindow()) == TRUE; 29 } 30 31 // static IsValidNativeWindow(EGLNativeWindowType window)32bool NativeWindow9::IsValidNativeWindow(EGLNativeWindowType window) 33 { 34 return IsWindow(window) == TRUE; 35 } 36 37 } // namespace rx 38