OHOS::VirtualDeviceEvent

    Graphic

    Description:

    Defines a virtual device event, which is used to receive a customized input event and call back the listening function registered.

    Since:

    1.0

    Version:

    1.0

    Public Member Function Name

    Description

    (uint16_t type, uint16_t value)

    A constructor used to create a VirtualDeviceEvent instance.

    ()

     

    A destructor used to delete the VirtualDeviceEvent instance.

    () const

    uint16_t 

    Obtains the type of the virtual device.

    GetState () const

    uint16_t 

    Obtains the state of the virtual event.

    ()

     

    A default constructor used to create an Event instance.

    (const Point &curPos)

     

    A constructor used to create an instance.

    virtual 

    A destructor used to delete the Event instance.

    () const

    const Point

    Obtains the position where an event occurs.

    () const

    const TimeType & 

    Obtains the timestamp when an event occurs.

    SetTimeStamp (const TimeType &timeStamp)

    void 

    Sets the timestamp when an event occurs.

    (size_t size)

    void  

    Overrides the new function.

    operator delete (void p)

    void