Lines Matching refs:event
42 #include "events/event.h"
119 * @brief Defines a click event listener. You need to register this listener with the view to listen to
130 * @param event Indicates the click event.
131 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
132 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
137 virtual bool OnClick(UIView& view, const ClickEvent& event)
151 * @brief Defines a long-press event listener. You need to register this listener with the view to listen to
162 * @param event Indicates the long-press event.
163 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
164 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
169 virtual bool OnLongPress(UIView& view, const LongPressEvent& event)
183 * @brief Defines a drag event listener. You need to register this listener with the view to listen to drag events.
193 * @param event Indicates the drag event.
194 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
195 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
200 virtual bool OnDragStart(UIView& view, const DragEvent& event)
208 * @param event Indicates the drag event.
209 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
210 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
215 virtual bool OnDrag(UIView& view, const DragEvent& event)
223 * @param event Indicates the drag event.
224 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
225 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
230 virtual bool OnDragEnd(UIView& view, const DragEvent& event)
244 * @brief Defines a touch event listener. You need to register this listener with the view to listen to touch
255 * @param event Indicates the press event.
256 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
257 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
262 virtual bool OnPress(UIView& view, const PressEvent& event)
270 * @param event Indicates the release event.
271 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
272 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
277 virtual bool OnRelease(UIView& view, const ReleaseEvent& event)
283 * @brief Called when a click event on a view is canceled.
284 * @param view Indicates the view on which a click event is canceled.
285 * @param event Indicates the cancel event.
286 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
287 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
292 virtual bool OnCancel(UIView& view, const CancelEvent& event)
307 * @brief Defines a rotation event listener.
316 * @param view Indicates the view that responds to the rotation event.
317 * @param event Indicates the rotation event.
318 * @return Returns <b>true</b> if the rotation event is consumed; returns <b>false</b> otherwise.
321 virtual bool OnRotateStart(UIView& view, const RotateEvent& event)
327 * @brief Called when a rotation event occurs on a view.
328 * @param view Indicates the view that responds to the rotation event.
329 * @param event Indicates the rotation event.
330 * @return Returns <b>true</b> if the rotation event is consumed; returns <b>false</b> otherwise.
334 virtual bool OnRotate(UIView& view, const RotateEvent& event)
341 * @param view Indicates the view that responds to the rotation event.
342 * @param event Indicates the rotation event.
343 * @return Returns <b>true</b> if the rotation event is consumed; returns <b>false</b> otherwise.
346 virtual bool OnRotateEnd(UIView& view, const RotateEvent& event)
361 * @param event Indicates the rotation event.
364 virtual bool OnRotateStartEvent(const RotateEvent& event);
367 * @brief Called when a rotation event occurs on the view.
368 * @param event Indicates the rotation event.
372 virtual bool OnRotateEvent(const RotateEvent& event);
376 * @param event Indicates the rotation event.
379 virtual bool OnRotateEndEvent(const RotateEvent& event);
382 * @brief Sets a rotation event listener for the view.
383 * @param onRotateListener Indicates the pointer to the rotation event listener to set.
390 * @brief Obtains the rotation event listener for the view.
391 * @return Returns the rotation event listener.
486 * @param event Indicates the long-press event.
487 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
488 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
493 virtual bool OnLongPressEvent(const LongPressEvent& event);
497 * @param event Indicates the drag event.
498 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
499 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
504 virtual bool OnDragStartEvent(const DragEvent& event);
508 * @param event Indicates the drag event.
509 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
510 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
515 virtual bool OnDragEvent(const DragEvent& event);
519 * @param event Indicates the drag event.
520 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
521 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
526 virtual bool OnDragEndEvent(const DragEvent& event);
530 * @param event Indicates the click event.
531 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
532 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
537 virtual bool OnClickEvent(const ClickEvent& event);
541 * @param event Indicates the press event.
542 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
543 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
548 virtual bool OnPressEvent(const PressEvent& event);
552 * @param event Indicates the release event.
553 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
554 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
559 virtual bool OnReleaseEvent(const ReleaseEvent& event);
562 * @brief Called when a click event on the view is canceled.
563 * @param event Indicates the cancel event.
564 * @return Returns <b>true</b> if the event is consumed; returns <b>false</b> otherwise.
565 * (If an event is consumed, it is not transferred to the parent view. If an event is not consumed,
570 virtual bool OnCancelEvent(const CancelEvent& event);
573 * @brief Sets a drag event listener for the view.
574 * @param onDragListener Indicates the pointer to the drag event listener to set.
581 * @brief Obtains the drag event listener for the view.
582 * @return Returns the drag event listener.
589 * @brief Sets a click event listener for the view.
590 * @param onClickListener Indicates the pointer to the click event listener to set.
597 * @brief Obtains the click event listener for the view.
598 * @return Returns the click event listener.
605 * @brief Sets a long-press event listener for the view.
606 * @param onLongPressListener Indicates the pointer to the long-press event listener to set.
613 * @brief Obtains the long-press event listener for the view.
614 * @return Returns the long-press event listener.
621 * @brief Sets a touch event listener for the view.
622 * @param onTouchListener Indicates the pointer to the touch event listener to set.
629 * @brief Obtains the touch event listener for the view.
630 * @return Returns the touch event listener.
743 * @brief Sets whether to transfer the drag event to the parent view for processing when the view is being dragged.
744 * @param dragParentInstead Specifies whether to transfer the event to the parent view for processing.
745 * Value <b>true</b> means to transfer the event to the parent view for processing,
753 * @brief Obtains whether the view transfers a drag event to the parent view for processing.
754 * @return Returns <b>true</b> if the view transfers the event to the parent view for processing;
1013 * @brief Sets whether to intercept the input event. If intercepted, the view does not transfer the input event to
1015 * @param isIntercept Specifies whether to intercept the input event. Value <b>true</b> means to intercept the input
1016 * event, and <b>false</b> means the opposite.
1023 * @brief Gets whether to intercept the input event. If intercepted, the view does not transfer the input event to
1025 * @return Returns <b>true</b> if intercept the input event, and <b>false</b> means the opposite.