本文整理汇总了C++中Task::IdPair方法的典型用法代码示例。如果您正苦于以下问题:C++ Task::IdPair方法的具体用法?C++ Task::IdPair怎么用?C++ Task::IdPair使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Task
的用法示例。
在下文中一共展示了Task::IdPair方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ButtonEvent
ButtonEvent(const Task::IdPair::Primary&primary,
const InputDevicePtr &dev,
KeyEvent event, unsigned int key, Modifier mod)
: InputEvent(dev, IdPair(primary,
getSecondaryId(key, mod, dev))),
mEvent(event),
mButton(key),
mModifier(mod) {
}
示例2: MouseDownEvent
MouseDownEvent(const IdPair::Primary &priId,
const PointerDevicePtr &dev,
float xstart, float ystart, float xend, float yend,
float lastx, float lasty,
int cursorType, int button,
int pressure, int pressureMin, int pressureMax)
: MouseEvent(IdPair(priId, getSecondaryId(button)),
dev, xend, yend, cursorType) {
mButton = button;
mXStart = xstart;
mYStart = ystart;
mLastX = lastx;
mLastY = lasty;
mPressure = pressure;
mPressureMin = pressureMin;
mPressureMax = pressureMax;
}
示例3: WindowEvent
WindowEvent(const IdPair::Primary &priId, int data1, int data2)
: Task::Event(IdPair(priId, IdPair::Secondary::null())) {
mData1 = data1;
mData2 = data2;
}
示例4: MouseHoverEvent
MouseHoverEvent(const PointerDevicePtr &dev,
float x, float y, int cursorType)
: MouseEvent(IdPair(getEventId(), getSecondaryId(dev)), dev, x, y, cursorType) {
}
示例5: TextInputEvent
TextInputEvent(const InputDevicePtr &dev, char *text)
: InputEvent(dev, IdPair(getEventId(), getSecondaryId(dev))),
mText(text) {
}
示例6: AxisEvent
AxisEvent(const InputDevicePtr &dev, unsigned int axis, AxisValue value)
: InputEvent(dev, IdPair(getEventId(), getSecondaryId(dev, axis))) {
mAxis = axis;
mValue = value;
}