1 Star 0 Fork 0

打望两江/htop-rk3582

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Header.h 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Benny Baumann 提交于 2023-11-28 15:15 . Update includes based on IWYU
#ifndef HEADER_Header
#define HEADER_Header
/*
htop - Header.h
(C) 2004-2011 Hisham H. Muhammad
Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
#include <stddef.h>
#include "HeaderLayout.h"
#include "Machine.h"
#include "Meter.h"
#include "Vector.h"
typedef struct Header_ {
Vector** columns;
Machine* host;
HeaderLayout headerLayout;
int pad;
int height;
} Header;
#define Header_forEachColumn(this_, i_) for (size_t (i_)=0, H_fEC_numColumns_ = HeaderLayout_getColumns((this_)->headerLayout); (i_) < H_fEC_numColumns_; ++(i_))
Header* Header_new(Machine* host, HeaderLayout hLayout);
void Header_delete(Header* this);
void Header_setLayout(Header* this, HeaderLayout hLayout);
void Header_populateFromSettings(Header* this);
void Header_writeBackToSettings(const Header* this);
Meter* Header_addMeterByClass(Header* this, const MeterClass* type, unsigned int param, unsigned int column);
void Header_reinit(Header* this);
void Header_draw(const Header* this);
void Header_updateData(Header* this);
int Header_calculateHeight(Header* this);
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geekpi/htop-rk3582.git
git@gitee.com:geekpi/htop-rk3582.git
geekpi
htop-rk3582
htop-rk3582
main

搜索帮助