FBGridLayout Class Reference


Detailed Description

More advance layout that allow organisation of control in a grid. 
    User can place a control at specific coordinates. 
    User can also setup parameters that affect whole row or column.
Inheritance diagram for FBGridLayout:
Inheritance graph
[legend]

List of all members.

Classes

class   ColDesc
class   ControlDesc
class   RowDesc

Public Member Functions

def  __init__
def  Add
def  AddRange
def  Remove
def  RemoveAll
def  SetRowHeight
def  SetRowRatio
def  SetRowSpacing
def  SetColWidth
def  SetColRatio
def  SetColSpacing

Public Attributes

  defaultspacing
  controls
  rows
  cols

Constructor & Destructor Documentation

def __init__ (   self,
  spacing = 5 
)

Member Function Documentation

def Add (   self,
  control,
  r,
  c,
  attachX = pyfbsdk.FBAttachType.kFBAttachLeft,
  attachY = pyfbsdk.FBAttachType.kFBAttachTop,
  width = None,
  height = None 
)
Add control in row r and column c.
    attachX: specifies a control horizontal attachment in a column (kFBAttachLeft, kFBAttachRight)
    attachY: specifies a control veritcal attachment in a row (kFBAttachTop, kFBAttachBottom)
    width: fixed width of a control
    height: fixed height of a control
def AddRange (   self,
  control,
  r1,
  r2,
  c1,
  c2,
  attachX = pyfbsdk.FBAttachType.kFBAttachLeft,
  attachY = pyfbsdk.FBAttachType.kFBAttachTop 
)
Add control in a range of coordinates. Control will span from row1 to row2 and from col1 to col2        
    attachX: specifies a control horizontal attachment in a column (kFBAttachLeft, kFBAttachRight)
    attachY: specifies a control veritcal attachment in a row (kFBAttachTop, kFBAttachBottom)
def Remove (   self,
  control 
)
Remove a control from the grid
def RemoveAll (   self )
Remove all controls from the grid
def SetRowHeight (   self,
  r,
  h 
)
Set row r fixed height
def SetRowRatio (   self,
  r,
  ratio 
)
Set row r ratio. this row will be allocated height according to this ratio
    when all fixed height has been allocated.
def SetRowSpacing (   self,
  r,
  spacing 
)
Set row r spacing between previous row.
def SetColWidth (   self,
  c,
  w 
)
Set col c fixed width.
def SetColRatio (   self,
  c,
  ratio 
)
Set col c ratio. this col will be allocated width according to this ratio
    when all fixed width has been allocated.
def SetColSpacing (   self,
  c,
  spacing 
)
Set col c spacing between previous col.

Member Data Documentation


FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout
FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout FBGridLayout