Skip to content
Bielen Pierre edited this page Jul 13, 2019 · 2 revisions

Constructor

  • newBox(title.s,*color,x,y)
    • title -> String -> Title
    • color -> Instance of Colors
    • x -> Integer -> position X
    • y -> Integer -> position Y

Destructor

  • free()

Getters

  • getColors() return -> Instance of Colors
  • getPosX() return -> Integer -> position X
  • getPosY() return -> Integer -> position X
  • getWidht() return -> Integer -> width
  • getHeight() return -> Integer -> height
  • getSelectedColor() return -> Integer -> color used when it's selected
  • getData() return -> your personal data (Integer or Pointer)
  • getTitle() return -> Instance of Title
  • getLeftIcon() return -> Instance of Icon
  • getRightIcon() return -> Instance of Icon
  • getMargins() return -> Instance of Margins

Setters

  • setPosX(x)
    • x -> Integer -> position x
  • setPosY(y)
    • y -> Integer -> position y
  • setSelectedColor(color)
    • color -> Integer -> color with alpha
  • setData(myData)
    • myData -> Integer -> data as you want
  • setLeftIcon(icon)
  • setRightIcon(icon)

Public methods

  • addLeftContent(content)
    • instance of Content child
  • addRightContent(content)
    • instance of Content child
Clone this wiki locally