getAncestor

fun getAncestor(type: GType): Widget?