A (Nicht-GUI) Basis-Versorgungsbibliothek für Pascal (Delphi/Free Pascal/Lazarus).
class procedure dispatch_to_main_thread(const proc : TProcedure); overload;
class procedure dispatch_to_main_thread(const proc_method : TThreadMethod); overload;
Versendet die Ausführung einer Methode oder eines Prozeduraufrufs in die Haupt -Thread -Warteschlange.
class procedure ensure_in_main_thread(const proc : TProcedure); overload;
class procedure ensure_in_main_thread(const proc_method : TThreadMethod); overload;
Gewährleistet die Ausführung einer Methode oder eines Prozeduraufrufs im Haupt -Thread. Wenn der aktuelle Thread der Haupt -Thread ist, wird die Methode oder die Prozedur direkt ohne Warteschlange ausgeführt.
procedure run(const proc : TProcedure; const after_ms : UInt64); overload;
procedure run(const proc_method : TThreadMethod; const after_ms : UInt64); overload;
Führt eine Methode oder eine Prozedur im Haupt -Thread nach einer Verzögerung (Millisekunden) aus.
procedure cancel(); overload;
procedure cancel(const proc : TProcedure); overload;
procedure cancel(const proc_method : TThreadMethod); overload;
Steckt die Ausführung einer angegebenen Methode/eines bestimmten Verfahrens oder aller Methoden/Verfahren in der Verzögerungswarteschlange ab.
procedure begin_disable();
procedure end_disable();
Akzeptiert vorübergehend keine Verzögerungsanforderung zwischen begin_disable() und end_disable() .
constructor Create(const control : TControl); reintroduce;
Der Parameter des Konstruktors gibt das Steuerelement an, um die Animation aufzunehmen.
procedure add_size_animate(const w, h : Integer; const keep_center : Boolean; const duration : Cardinal);
procedure add_expand_to_left_animate(const w : Integer; const duration : Cardinal);
procedure add_move_animate(const x, y : Integer; const duration : Cardinal);
procedure add_change_animate(const x, y, w, h : Integer; const duration : Cardinal);
Fügen Sie Animationseffekte für jeden Schritt hinzu und unterstützen Sie Änderungen an Größe, Expansion nach links, Bewegung und Änderungen (in Größe und Position).
procedure run(); overload;
procedure run(const progress_callback : TncAnimateProgressEvent); overload;
Führen Sie die Animationen aus.
procedure add_size_animate(const control : TControl; const w, h : Integer; const keep_center : Boolean; const duration : Cardinal);
procedure add_expand_to_left_animate(const control : TControl; const w : Integer; const duration : Cardinal);
procedure add_move_animate(const control : TControl; const x, y : Integer; const duration : Cardinal);
procedure add_change_animate(const control : TControl; const x, y, w, h : Integer; const duration : Cardinal);
Fügen Sie Animationseffekte hinzu, unterstützen die Größe der Größe, die Expansion nach links, Bewegungen und Änderungen (in Größe und Position).
procedure add_alpha_animate(const form : TForm; const a : Integer; const duration : Cardinal);
Fügen Sie Animationseffekt hinzu, um den Alpha -Wert des Formulars zu ändern.
procedure run(); overload;
procedure run(const progress_callback : TncAnimateProgressEvent); overload;
Führen Sie die Animationen aus.