xtd 0.2.0
Loading...
Searching...
No Matches
animation_update_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/event_args>
6#include <xtd/time_span>
7
9namespace xtd {
11 namespace forms {
23 public:
25
29
31
35 time_span elapsed() const {return time_span {std::chrono::duration_cast<xtd::ticks>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count()};}
38 int64 elapsed_milliseconds() const {return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count();}
41 int64 elapsed_nanoseconds() const {return elapsed_nanoseconds_;}
42
45 int32 frame_counter() const {return frame_counter_;}
47
48 private:
49 int32 frame_counter_ = 0;
50 int64 elapsed_nanoseconds_ {0};
51 };
52 }
53}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the animation update event.
Definition animation_update_event_args.h:22
int64 elapsed_nanoseconds() const
Gets elepased time in nanoseconds.
Definition animation_update_event_args.h:41
int64 elapsed_milliseconds() const
Gets elepased time in milliseconds.
Definition animation_update_event_args.h:38
int32 frame_counter() const
Gets frame counter.
Definition animation_update_event_args.h:45
time_span elapsed() const
Gets elepased time in nanoseconds.
Definition animation_update_event_args.h:35
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Represents a time interval.
Definition time_span.h:29