public Method

TreeCtrl.get_children(parent)

Return the children of parent as an array of TreeItemIDs.

Source Code

# File wx/classes/treectrl.rb, line 9
def get_children(parent)
  kids = [ get_first_child(parent) ]
  return [] if kids[0].zero?

  while kid = get_next_sibling(kids.last) and not kid.zero?
    kids << kid
  end
  kids
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.