DCKeywordList

from panda3d.direct import DCKeywordList
class DCKeywordList

Bases:

This is a list of keywords (see DCKeyword) that may be set on a particular field.

Inheritance diagram

Inheritance diagram of DCKeywordList

compareKeywords(other: DCKeywordList) bool

Returns true if this list has the same keywords as the other list, false if some keywords differ. Order is not considered important.

getKeyword(n: int) DCKeyword

Returns the nth keyword in the list.

getKeywordByName(name: str) DCKeyword

Returns the keyword in the list with the indicated name, or NULL if there is no keyword in the list with that name.

getNumKeywords() int

Returns the number of keywords in the list.

hasKeyword(keyword: DCKeyword) bool

Returns true if this list includes the indicated keyword, false otherwise.

hasKeyword(name: str) bool

Returns true if this list includes the indicated keyword, false otherwise.