本文整理汇总了C++中PlatformKeyboardEvent::timestamp方法的典型用法代码示例。如果您正苦于以下问题:C++ PlatformKeyboardEvent::timestamp方法的具体用法?C++ PlatformKeyboardEvent::timestamp怎么用?C++ PlatformKeyboardEvent::timestamp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlatformKeyboardEvent
的用法示例。
在下文中一共展示了PlatformKeyboardEvent::timestamp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UIEventWithKeyState
KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* view)
: UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), true, true, view, 0, key.modifiers(), InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities())
, m_keyEvent(adoptPtr(new PlatformKeyboardEvent(key)))
, m_keyIdentifier(key.keyIdentifier())
, m_code(key.code())
, m_key(key.key())
, m_location(keyLocationCode(key))
{
setPlatformTimeStamp(key.timestamp());
initLocationModifiers(m_location);
}
示例2: UIEventWithKeyState
KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* view)
: UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), true, true, view, 0, key.ctrlKey(), key.altKey(), key.shiftKey(), key.metaKey(), InputDevice::doesntFireTouchEventsInputDevice())
, m_keyEvent(adoptPtr(new PlatformKeyboardEvent(key)))
, m_keyIdentifier(key.keyIdentifier())
, m_code(key.code())
, m_key(key.key())
, m_location(keyLocationCode(key))
, m_isAutoRepeat(key.isAutoRepeat())
, m_bbIsNumLock(key.bbIsNumLock())
{
setUICreateTime(key.timestamp());
}
示例3: UIEventWithKeyState
KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* view)
: UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()),
true, true, key.timestamp(), view, 0, key.ctrlKey(), key.altKey(), key.shiftKey(), key.metaKey())
, m_keyEvent(std::make_unique<PlatformKeyboardEvent>(key))
, m_keyIdentifier(key.keyIdentifier())
, m_location(keyLocationCode(key))
, m_altGraphKey(false)
#if PLATFORM(COCOA)
#if USE(APPKIT)
, m_handledByInputMethod(key.handledByInputMethod())
, m_keypressCommands(key.commands())
#else
, m_handledByInputMethod(false)
#endif
#endif
{
}