Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | List of all members
GrWindowRectsState Class Reference

#include <GrWindowRectsState.h>

Public Types

enum class  Mode : bool { kExclusive , kInclusive }
 

Public Member Functions

 GrWindowRectsState ()
 
 GrWindowRectsState (const GrWindowRectangles &windows, Mode mode)
 
bool enabled () const
 
Mode mode () const
 
const GrWindowRectangleswindows () const
 
int numWindows () const
 
void setDisabled ()
 
void set (const GrWindowRectangles &windows, Mode mode)
 
bool operator== (const GrWindowRectsState &that) const
 
bool operator!= (const GrWindowRectsState &that) const
 

Detailed Description

Definition at line 13 of file GrWindowRectsState.h.

Member Enumeration Documentation

◆ Mode

enum class GrWindowRectsState::Mode : bool
strong
Enumerator
kExclusive 
kInclusive 

Definition at line 15 of file GrWindowRectsState.h.

15 : bool {
16 kExclusive,
17 kInclusive
18 };

Constructor & Destructor Documentation

◆ GrWindowRectsState() [1/2]

GrWindowRectsState::GrWindowRectsState ( )
inline

Definition at line 20 of file GrWindowRectsState.h.

◆ GrWindowRectsState() [2/2]

GrWindowRectsState::GrWindowRectsState ( const GrWindowRectangles windows,
Mode  mode 
)
inline

Definition at line 21 of file GrWindowRectsState.h.

22 : fMode(mode)
23 , fWindows(windows) {
24 }
const GrWindowRectangles & windows() const

Member Function Documentation

◆ enabled()

bool GrWindowRectsState::enabled ( ) const
inline

Definition at line 26 of file GrWindowRectsState.h.

26{ return Mode::kInclusive == fMode || !fWindows.empty(); }

◆ mode()

Mode GrWindowRectsState::mode ( ) const
inline

Definition at line 27 of file GrWindowRectsState.h.

27{ return fMode; }

◆ numWindows()

int GrWindowRectsState::numWindows ( ) const
inline

Definition at line 29 of file GrWindowRectsState.h.

29{ return fWindows.count(); }

◆ operator!=()

bool GrWindowRectsState::operator!= ( const GrWindowRectsState that) const
inline

Definition at line 47 of file GrWindowRectsState.h.

47{ return !(*this == that); }

◆ operator==()

bool GrWindowRectsState::operator== ( const GrWindowRectsState that) const
inline

Definition at line 41 of file GrWindowRectsState.h.

41 {
42 if (fMode != that.fMode) {
43 return false;
44 }
45 return fWindows == that.fWindows;
46 }

◆ set()

void GrWindowRectsState::set ( const GrWindowRectangles windows,
Mode  mode 
)
inline

Definition at line 36 of file GrWindowRectsState.h.

36 {
37 fMode = mode;
38 fWindows = windows;
39 }

◆ setDisabled()

void GrWindowRectsState::setDisabled ( )
inline

Definition at line 31 of file GrWindowRectsState.h.

31 {
32 fMode = Mode::kExclusive;
33 fWindows.reset();
34 }

◆ windows()

const GrWindowRectangles & GrWindowRectsState::windows ( ) const
inline

Definition at line 28 of file GrWindowRectsState.h.

28{ return fWindows; }

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