nativeViewExtend (Function)

Signature: nativeViewExtend(row: int, wide: float, tall: float, share: float, traits: int, edge: int, hint: string) -> int

Description: Gives the row it names fixed extents, a flex share, state flags, a border colour and a second text. Returns -1 once the view is refused.

Parameters

  • row (int): The row nativeViewRow returned
  • wide (float): Fixed width, 0 for natural
  • tall (float): Fixed height, 0 for natural
  • share (float): Flex share
  • traits (int): State flags
  • edge (int): Border colour as 0xRRGGBBAA
  • hint (string): The second text

Returns: int

Example

let row = nativeViewRow(2, -1, -1, "Hello", 255, 0, 14.0, 4.0, 0.0, 0.0, 400)
let fitted = nativeViewExtend(row, 120.0, 0.0, 0.0, 0, 0, "")
print("row=${row}; fitted=${fitted}")
row = nativeViewRow (2, -1, -1, "Hello", 255, 0, 14.0, 4.0, 0.0, 0.0, 400)
fitted = nativeViewExtend (row, 120.0, 0.0, 0.0, 0, 0, "")
print "row=${row}; fitted=${fitted}"