abstract class vaseGui::WidgetGroup

sys::Obj
  vaseGui::Widget
    vaseGui::WidgetGroup

@Js
@Serializable { collection=true }

WidgetGroup is a Widget Container

add

@Operator
virtual This add(Widget child)

Add a child widget. If child is already parented throw ArgErr. Return this.

childrenSize

Int childrenSize()

num of children

doPaint

protected virtual override Void doPaint(Graphics g)

each

Void each(Func<Void,Widget,Int> f)

Iterate the children widgets.

findAt

virtual override Widget? findAt(Int x, Int y)

findById

virtual override Widget? findById(Str id)

find widget by id in this group

gestureEvent

protected virtual override Void gestureEvent(GestureEvent e)

process gesture event

getChild

Widget? getChild(Int i)

get by index

indexSame

Int indexSame(Widget child)

keyEvent

protected virtual override Void keyEvent(KeyEvent e)

layoutChildren

protected abstract override Void layoutChildren(Bool force)

layout the children

make

new make()

motionEvent

protected virtual override Void motionEvent(MotionEvent e)

process motion event

moveToTop

Void moveToTop(Widget child)

move child to top.

onMounted

protected virtual override Void onMounted()

callback on mounted

paintChildren

protected virtual Void paintChildren(Graphics g)

paint children widget

prefContentSize

protected abstract override Size prefContentSize(Int hintsWidth := -1, Int hintsHeight := -1)

get the prefer content size

remove

This remove(Widget? child, Bool doRelayout := true)

Remove a child widget

removeAll

virtual This removeAll()

Remove all child widgets. Return this.

resetStyle

virtual override Void resetStyle()