Flutter Engine
flutter::AndroidNativeWindow Class Reference

#include <android_native_window.h>

Inheritance diagram for flutter::AndroidNativeWindow:
fml::RefCountedThreadSafe< AndroidNativeWindow > fml::internal::RefCountedThreadSafeBase

Public Types

using Handle = std::nullptr_t
 

Public Member Functions

bool IsValid () const
 
Handle handle () const
 
SkISize GetSize () const
 
- Public Member Functions inherited from fml::RefCountedThreadSafe< AndroidNativeWindow >
void Release () const
 
- Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase
void AddRef () const
 
bool HasOneRef () const
 
void AssertHasOneRef () const
 

Additional Inherited Members

- Protected Member Functions inherited from fml::RefCountedThreadSafe< AndroidNativeWindow >
 RefCountedThreadSafe ()
 
 ~RefCountedThreadSafe ()
 
- Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase
 RefCountedThreadSafeBase ()
 
 ~RefCountedThreadSafeBase ()
 
bool Release () const
 
void Adopt ()
 

Detailed Description

Definition at line 20 of file android_native_window.h.

Member Typedef Documentation

◆ Handle

using flutter::AndroidNativeWindow::Handle = std::nullptr_t

Definition at line 26 of file android_native_window.h.

Member Function Documentation

◆ GetSize()

SkISize flutter::AndroidNativeWindow::GetSize ( ) const

Definition at line 28 of file android_native_window.cc.

28  {
29 #if OS_ANDROID
30  return window_ == nullptr ? SkISize::Make(0, 0)
31  : SkISize::Make(ANativeWindow_getWidth(window_),
32  ANativeWindow_getHeight(window_));
33 #else // OS_ANDROID
34  return SkISize::Make(0, 0);
35 #endif // OS_ANDROID
36 }

◆ handle()

AndroidNativeWindow::Handle flutter::AndroidNativeWindow::handle ( ) const

Definition at line 24 of file android_native_window.cc.

24  {
25  return window_;
26 }

◆ IsValid()

bool flutter::AndroidNativeWindow::IsValid ( ) const

Definition at line 20 of file android_native_window.cc.

20  {
21  return window_ != nullptr;
22 }

The documentation for this class was generated from the following files: