@nodegui/nodegui
Version:
A cross-platform library to build native desktop apps.
33 lines (32 loc) • 1.22 kB
TypeScript
import { NativeElement } from '../../core/Component';
export declare abstract class QEvent {
native: NativeElement;
constructor(native: NativeElement);
/**
* Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
* Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget
*/
accept(): void;
/**
* Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
* Clearing the accept parameter indicates that the event receiver does not want the event.
* Unwanted events might be propagated to the parent widget.
*/
ignore(): void;
isAccepted(): boolean;
/**
* Sets the accept flag of the event object
*/
setAccepted(accepted: boolean): void;
/**
* Returns true if the event originated outside the application (a system event); otherwise returns false.
*
* The return value of this function is not defined for paint events.
*/
spontaneous(): boolean;
/**
* Returns the event type
* @returns {Number} This is QEvent::Type
*/
type(): number;
}