Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
org.qtproject.qt.android.QtLayout Class Reference
+ Inheritance diagram for org.qtproject.qt.android.QtLayout:
+ Collaboration diagram for org.qtproject.qt.android.QtLayout:

Classes

class  LayoutParams
 

Public Member Functions

void setActivityDisplayRotation (int rotation)
 
void setNativeOrientation (int orientation)
 
int displayRotation ()
 
 QtLayout (Context context, Runnable startRunnable)
 
 QtLayout (Context context, AttributeSet attrs)
 
 QtLayout (Context context, AttributeSet attrs, int defStyle)
 
void moveChild (View view, int index)
 
void setLayoutParams (final View childView, final ViewGroup.LayoutParams params, final boolean forceRedraw)
 

Protected Member Functions

void onSizeChanged (int w, int h, int oldw, int oldh)
 
void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 
ViewGroup.LayoutParams generateDefaultLayoutParams ()
 
void onLayout (boolean changed, int l, int t, int r, int b)
 
boolean checkLayoutParams (ViewGroup.LayoutParams p)
 
ViewGroup.LayoutParams generateLayoutParams (ViewGroup.LayoutParams p)
 

Detailed Description

Definition at line 13 of file QtLayout.java.

Constructor & Destructor Documentation

◆ QtLayout() [1/3]

org.qtproject.qt.android.QtLayout.QtLayout ( Context  context,
Runnable  startRunnable 
)
inline

Definition at line 36 of file QtLayout.java.

References context.

◆ QtLayout() [2/3]

org.qtproject.qt.android.QtLayout.QtLayout ( Context  context,
AttributeSet  attrs 
)
inline

Definition at line 42 of file QtLayout.java.

References attrs, and context.

◆ QtLayout() [3/3]

org.qtproject.qt.android.QtLayout.QtLayout ( Context  context,
AttributeSet  attrs,
int  defStyle 
)
inline

Definition at line 47 of file QtLayout.java.

References attrs, and context.

Member Function Documentation

◆ checkLayoutParams()

boolean org.qtproject.qt.android.QtLayout.checkLayoutParams ( ViewGroup.LayoutParams  p)
inlineprotected

Definition at line 153 of file QtLayout.java.

Referenced by org.qtproject.qt.android.QtLayout.setLayoutParams().

+ Here is the caller graph for this function:

◆ displayRotation()

int org.qtproject.qt.android.QtLayout.displayRotation ( )
inline

Definition at line 31 of file QtLayout.java.

◆ generateDefaultLayoutParams()

ViewGroup.LayoutParams org.qtproject.qt.android.QtLayout.generateDefaultLayoutParams ( )
inlineprotected

Returns a set of layout parameters with a width of android.view.ViewGroup.LayoutParams#WRAP_CONTENT, a height of android.view.ViewGroup.LayoutParams#WRAP_CONTENT and with the coordinates (0, 0).

Definition at line 122 of file QtLayout.java.

◆ generateLayoutParams()

ViewGroup.LayoutParams org.qtproject.qt.android.QtLayout.generateLayoutParams ( ViewGroup.LayoutParams  p)
inlineprotected

Definition at line 159 of file QtLayout.java.

◆ moveChild()

void org.qtproject.qt.android.QtLayout.moveChild ( View  view,
int  index 
)
inline

Definition at line 207 of file QtLayout.java.

References view.

Referenced by org.qtproject.qt.android.QtActivityDelegate.bringChildToBack(), and org.qtproject.qt.android.QtActivityDelegate.bringChildToFront().

+ Here is the caller graph for this function:

◆ onLayout()

void org.qtproject.qt.android.QtLayout.onLayout ( boolean  changed,
int  l,
int  t,
int  r,
int  b 
)
inlineprotected

Definition at line 131 of file QtLayout.java.

References child, i, and QLayoutItem.layout().

+ Here is the call graph for this function:

◆ onMeasure()

void org.qtproject.qt.android.QtLayout.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
inlineprotected

Definition at line 79 of file QtLayout.java.

References child, and i.

◆ onSizeChanged()

void org.qtproject.qt.android.QtLayout.onSizeChanged ( int  w,
int  h,
int  oldw,
int  oldh 
)
inlineprotected

Definition at line 53 of file QtLayout.java.

References org.qtproject.qt.android.QtDisplayManager.getDisplayRotation(), org.qtproject.qt.android.QtDisplayManager.handleOrientationChanged(), and org.qtproject.qt.android.QtDisplayManager.setApplicationDisplayMetrics().

+ Here is the call graph for this function:

◆ setActivityDisplayRotation()

void org.qtproject.qt.android.QtLayout.setActivityDisplayRotation ( int  rotation)
inline

Definition at line 21 of file QtLayout.java.

◆ setLayoutParams()

void org.qtproject.qt.android.QtLayout.setLayoutParams ( final View  childView,
final ViewGroup.LayoutParams  params,
final boolean  forceRedraw 
)
inline

set the layout params on a child view.

Note: This function adds the child view if it's not in the layout already.

Definition at line 227 of file QtLayout.java.

References org.qtproject.qt.android.QtLayout.checkLayoutParams().

Referenced by org.qtproject.qt.android.QtActivityDelegate.openContextMenu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNativeOrientation()

void org.qtproject.qt.android.QtLayout.setNativeOrientation ( int  orientation)
inline

Definition at line 26 of file QtLayout.java.


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