OMLeafState 類別會設定元件的作用中狀態。
此類別在標頭檔 state.h 中進行定義。
元件 (component)
指定元件。其定義方式如下: OMComponentState* component;