diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-09-19 13:55:23 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-10-18 20:09:05 +0200 |
commit | 0f5262917fab34b44b43f63946fdf6bb0621875a (patch) | |
tree | 07e449767f00310ef038d786688f891600a01b4d /InfoScreen.h | |
parent | 29346d05616ce69e5988b3f1257c340f91299602 (diff) |
Make all required includes explicit
Information as seen by IWYU 0.12 + clang 9 on Linux
Diffstat (limited to 'InfoScreen.h')
-rw-r--r-- | InfoScreen.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/InfoScreen.h b/InfoScreen.h index 79927c47..0d80367d 100644 --- a/InfoScreen.h +++ b/InfoScreen.h @@ -1,12 +1,25 @@ #ifndef HEADER_InfoScreen #define HEADER_InfoScreen +#include <stdbool.h> + #include "FunctionBar.h" #include "IncSet.h" +#include "Macros.h" +#include "Object.h" #include "Panel.h" #include "Process.h" +#include "Vector.h" + -typedef struct InfoScreen_ InfoScreen; +typedef struct InfoScreen_ { + Object super; + const Process* process; + Panel* display; + FunctionBar* bar; + IncSet* inc; + Vector* lines; +} InfoScreen; typedef void(*InfoScreen_Scan)(InfoScreen*); typedef void(*InfoScreen_Draw)(InfoScreen*); @@ -27,15 +40,6 @@ typedef struct InfoScreenClass_ { #define InfoScreen_onErr(this_) As_InfoScreen(this_)->onErr((InfoScreen*)(this_)) #define InfoScreen_onKey(this_, ch_) As_InfoScreen(this_)->onKey((InfoScreen*)(this_), ch_) -struct InfoScreen_ { - Object super; - const Process* process; - Panel* display; - FunctionBar* bar; - IncSet* inc; - Vector* lines; -}; - InfoScreen* InfoScreen_init(InfoScreen* this, const Process* process, FunctionBar* bar, int height, const char* panelHeader); InfoScreen* InfoScreen_done(InfoScreen* this); |