FBAddRegionParam Class Reference
 
 
 
FBAddRegionParam Class Reference

#include <mainpage.h>


Class Description

This class provides a placeholder to put values necessary to create a Region with FBLayout.AddRegion(). Each region components: X, Y, Width and Height needs its own FBAddRegionParam. ex:

x = FBAddRegionParam(0,FBAttachType.kFBAttachLeft,"")
y = FBAddRegionParam(0,FBAttachType.kFBAttachTop,"")
w = FBAddRegionParam(0,FBAttachType.kFBAttachRight,"")
h = FBAddRegionParam(25,FBAttachType.kFBAttachNone,"")
mainLyt.AddRegion("main","main", x, y, w, h)

Public Member Functions

def  __reduce__ ()
def  __init__ ()

Public Attributes

object  mPos
object  mType
object  mRelative
object  mMult

Member Function Documentation

def __reduce__ ( )
__init__ ( )

Python Docstring:

__init__( (object)arg1, (object)arg2, (FBAttachType)arg3, (str)arg4 [, (float)arg5]) -> None 

Initialize a region params.

Parameters:
pPos Offset in pixel according depending on the use of FBAddRegionParam (X, Y, W or H)
pType Type of Attachment.
pRelative Name of Region to attach relative to.
pMult Multiplier of relative value.

Member Data Documentation

Read Property: (FBPropertyInt) Offset in pixel according depending on the use of FBAddRegionParam (X, Y, W or H).

Read Property: (FBAttachType) Type of Attachment.

Read Property: (str) Name of Region to attach relative to.

Read Property: (FBPropertyFloat) Multiplier of relative value.