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 {
21 public:
23
27
29
33 time_span elapsed() const {return time_span {std::chrono::duration_cast<xtd::ticks>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count()};}
36 int64 elapsed_milliseconds() const {return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count();}
39 int64 elapsed_nanoseconds() const {return elapsed_nanoseconds_;}
40
43 int32 frame_counter() const {return frame_counter_;}
45
46 private:
47 int32 frame_counter_ = 0;
48 int64 elapsed_nanoseconds_ {0};
49 };
50 }
51}
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:20
int64 elapsed_nanoseconds() const
Gets elepased time in nanoseconds.
Definition animation_update_event_args.h:39
int64 elapsed_milliseconds() const
Gets elepased time in milliseconds.
Definition animation_update_event_args.h:36
int32 frame_counter() const
Gets frame counter.
Definition animation_update_event_args.h:43
time_span elapsed() const
Gets elepased time in nanoseconds.
Definition animation_update_event_args.h:33
int_least64_t int64
Represents a 64-bit signed integer.
Definition types.h:142
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
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:26