Create
A static factory method that allocates and initializes a selector control.
Declaration
static OSSharedPtr<IOUserVideoSelectorControl> Create(IOUserVideoDriver *in_driver, bool in_is_settable, IOUserVideoObjectPropertyElement in_control_element, IOUserVideoObjectPropertyScope in_control_scope, IOUserVideoClassID in_control_class_id);Parameters
- in_driver:
The IOUserVideoDriver that owns this object.
- in_is_settable:
A Boolean value indicating if the control value can be set
- in_control_element:
The IOUserVideoObjectPropertyElement for the control
- in_control_scope:
The IOUserVideoObjectPropertyScope for the control
- in_control_class_id:
The IOUserVideoClassID of the control
Return Value
OSSharedPtr to an IOUserVideoSelectorControl if it was successfully allocated and initialized
Discussion
If IOUserVideoSelectorControl is subclassed to override behavior, don’t use this method to allocate or initialize the custom subclass.