diff options
author | Akshay <[email protected]> | 2020-02-26 06:56:37 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-02-26 06:56:37 +0000 |
commit | 39b21b4501e48da56ddbdbadc97c3ccf32746029 (patch) | |
tree | aea052dd3265a4d0ebaf372df1edf0e3c8466c5e /src/views | |
parent | ce5f500998f05fac13c6472681eedb7702055a7f (diff) |
fix null entry with bits, add remaining api
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/habitview.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/views/habitview.rs b/src/views/habitview.rs index 3ae0c90..ddeb456 100644 --- a/src/views/habitview.rs +++ b/src/views/habitview.rs | |||
@@ -41,6 +41,9 @@ impl HabitView { | |||
41 | pub fn get_title(&self) -> String { | 41 | pub fn get_title(&self) -> String { |
42 | return self.habit.get_name().to_owned(); | 42 | return self.habit.get_name().to_owned(); |
43 | } | 43 | } |
44 | pub fn get_size(&self) -> Vec2 { | ||
45 | (self.view_width, self.view_height).into() | ||
46 | } | ||
44 | } | 47 | } |
45 | 48 | ||
46 | impl View for HabitView { | 49 | impl View for HabitView { |