Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
io.flutter.plugin.platform.SingleViewFakeWindowViewGroup Class Reference
Inheritance diagram for io.flutter.plugin.platform.SingleViewFakeWindowViewGroup:

Public Member Functions

 SingleViewFakeWindowViewGroup (Context context)
 

Protected Member Functions

void onLayout (boolean changed, int l, int t, int r, int b)
 
void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 

Detailed Description

Definition at line 20 of file SingleViewFakeWindowViewGroup.java.

Constructor & Destructor Documentation

◆ SingleViewFakeWindowViewGroup()

io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.SingleViewFakeWindowViewGroup ( Context  context)
inline

Definition at line 29 of file SingleViewFakeWindowViewGroup.java.

29 {
30 super(context);
31 viewBounds = new Rect();
32 childRect = new Rect();
33 }
TRect< Scalar > Rect
Definition: rect.h:769

Member Function Documentation

◆ onLayout()

void io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.onLayout ( boolean  changed,
int  l,
int  t,
int  r,
int  b 
)
inlineprotected

Definition at line 36 of file SingleViewFakeWindowViewGroup.java.

36 {
37 for (int i = 0; i < getChildCount(); i++) {
38 View child = getChildAt(i);
39 WindowManager.LayoutParams params = (WindowManager.LayoutParams) child.getLayoutParams();
40 viewBounds.set(l, t, r, b);
41 Gravity.apply(
42 params.gravity,
43 child.getMeasuredWidth(),
44 child.getMeasuredHeight(),
45 viewBounds,
46 params.x,
47 params.y,
48 childRect);
49 child.layout(childRect.left, childRect.top, childRect.right, childRect.bottom);
50 }
51 }
const EmbeddedViewParams * params
static bool b

◆ onMeasure()

void io.flutter.plugin.platform.SingleViewFakeWindowViewGroup.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
inlineprotected

Definition at line 54 of file SingleViewFakeWindowViewGroup.java.

54 {
55 for (int i = 0; i < getChildCount(); i++) {
56 View child = getChildAt(i);
57 child.measure(atMost(widthMeasureSpec), atMost(heightMeasureSpec));
58 }
59 super.onMeasure(widthMeasureSpec, heightMeasureSpec);
60 }

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