⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gkrellm-public-proto.h

📁 系统任务管理器
💻 H
📖 第 1 页 / 共 2 页
字号:
/* GKrellM|  Copyright (C) 1999-2006 Bill Wilson||  Author:  Bill Wilson    billw@gkrellm.net|  Latest versions might be found at:  http://gkrellm.net||  This program is free software which I release under the GNU General Public|  License. You may redistribute and/or modify this program under the terms|  of that license as published by the Free Software Foundation; either|  version 2 of the License, or (at your option) any later version.||  This program is distributed in the hope that it will be useful,|  but WITHOUT ANY WARRANTY; without even the implied warranty of|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the|  GNU General Public License for more details.  Version 2 is in the|  COPYRIGHT file in the top level directory of this distribution.| |  To get a copy of the GNU General Puplic License, write to the Free Software|  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//* Public GKrellM function prototypes available for all monitors and plugins */  /* Data structure allocation  */GkrellmChart *gkrellm_chart_new0(void);GkrellmChartconfig *gkrellm_chartconfig_new0(void);GkrellmPanel *gkrellm_panel_new0(void);GkrellmKrell *gkrellm_krell_new0(void);GkrellmDecal *gkrellm_decal_new0(void);GkrellmLabel *gkrellm_label_new0(void);GkrellmStyle *gkrellm_style_new0(void);GkrellmStyle *gkrellm_copy_style(GkrellmStyle *);void		gkrellm_copy_style_values(GkrellmStyle *, GkrellmStyle *);GkrellmTextstyle *gkrellm_textstyle_new0(void);GkrellmTextstyle *gkrellm_copy_textstyle(GkrellmTextstyle *);  /* Chart functions  */void		gkrellm_chart_create(GtkWidget *, GkrellmMonitor *,						GkrellmChart *, GkrellmChartconfig **);void		gkrellm_chart_destroy(GkrellmChart *);void		gkrellm_chart_hide(GkrellmChart *, gboolean);void		gkrellm_chart_show(GkrellmChart *, gboolean);gboolean	gkrellm_chart_enable_visibility(GkrellmChart *cp, gboolean,						gboolean *);gboolean	gkrellm_is_chart_visible(GkrellmChart *);void		gkrellm_set_draw_chart_function(GkrellmChart *,						void (*func)(), gpointer);void		gkrellm_draw_chart_to_screen(GkrellmChart *);gint		gkrellm_draw_chart_label(GkrellmChart *, GkrellmTextstyle *,						gint, gint,gchar *);void		gkrellm_draw_chart_text(GkrellmChart *, gint, gchar *);void		gkrellm_chart_reuse_text_format(GkrellmChart *cp);void		gkrellm_reset_chart(GkrellmChart *);void		gkrellm_reset_and_draw_chart(GkrellmChart *);void		gkrellm_refresh_chart(GkrellmChart *);void		gkrellm_rescale_chart(GkrellmChart *);void		gkrellm_clear_chart(GkrellmChart *);void		gkrellm_clear_chart_pixmap(GkrellmChart *);void		gkrellm_clean_bg_src_pixmap(GkrellmChart *);void		gkrellm_draw_chart_grid_line(GkrellmChart *, GdkPixmap *, gint);void		gkrellm_chart_bg_piximage_override(GkrellmChart *,						GkrellmPiximage *, GkrellmPiximage *);gint		gkrellm_chart_width(void);void		gkrellm_set_chart_height_default(GkrellmChart *, gint);void		gkrellm_set_chart_height(GkrellmChart *, gint);gint		gkrellm_get_chart_scalemax(GkrellmChart *);void		gkrellm_render_data_pixmap(GkrellmPiximage *, GdkPixmap **,						GdkColor *, gint);void		gkrellm_render_data_grid_pixmap(GkrellmPiximage *,						GdkPixmap **, GdkColor *);  /* ChartData functions  */GkrellmChartdata *gkrellm_add_chartdata(GkrellmChart *, GdkPixmap **,					GdkPixmap *, gchar *);GkrellmChartdata *gkrellm_add_default_chartdata(GkrellmChart *, gchar *);void		gkrellm_alloc_chartdata(GkrellmChart *);void		gkrellm_store_chartdata(GkrellmChart *, gulong, ...);void		gkrellm_draw_chartdata(GkrellmChart *);void		gkrellm_monotonic_chartdata(GkrellmChartdata *, gboolean);gboolean	gkrellm_get_chartdata_hide(GkrellmChartdata *);gint		gkrellm_get_current_chartdata(GkrellmChartdata *);gint		gkrellm_get_chartdata_data(GkrellmChartdata *, gint);void		gkrellm_set_chartdata_draw_style(GkrellmChartdata *, gint);void		gkrellm_set_chartdata_draw_style_default(GkrellmChartdata *, gint);void		gkrellm_set_chartdata_flags(GkrellmChartdata *, gint);void		gkrellm_scale_chartdata(GkrellmChartdata *, gint, gint);void		gkrellm_offset_chartdata(GkrellmChartdata *, gint);  /* ChartConfig functions  */void		gkrellm_chartconfig_window_create(GkrellmChart *);void		gkrellm_chartconfig_window_destroy(GkrellmChart *);void		gkrellm_chartconfig_grid_resolution_adjustment(						GkrellmChartconfig *, gboolean, gfloat, gfloat, gfloat,						gfloat, gfloat, gint, gint);void		gkrellm_set_chartconfig_grid_resolution(GkrellmChartconfig *,						gint);gint		gkrellm_get_chartconfig_grid_resolution(GkrellmChartconfig *);void		gkrellm_chartconfig_grid_resolution_connect(						GkrellmChartconfig *, void (*fn)(), gpointer);void		gkrellm_set_chartconfig_flags(GkrellmChartconfig *, gint);void		gkrellm_chartconfig_grid_resolution_label(						GkrellmChartconfig *, gchar *);void		gkrellm_set_chartconfig_auto_grid_resolution(						GkrellmChartconfig *, gboolean);void		gkrellm_set_chartconfig_auto_resolution_stick(						GkrellmChartconfig *, gboolean);void		gkrellm_set_chartconfig_sequence_125(GkrellmChartconfig *,						gboolean);void		gkrellm_set_chartconfig_fixed_grids(GkrellmChartconfig *, gint);gint		gkrellm_get_chartconfig_fixed_grids(GkrellmChartconfig *);void		gkrellm_chartconfig_fixed_grids_connect(GkrellmChartconfig *,						void (*fn)(), gpointer);gint		gkrellm_get_chartconfig_height(GkrellmChartconfig *);void		gkrellm_chartconfig_height_connect(GkrellmChartconfig *,						void (*fn)(), gpointer);void		gkrellm_chartconfig_callback_block(GkrellmChartconfig *, gboolean);void		gkrellm_save_chartconfig(FILE *, GkrellmChartconfig *,						gchar *, gchar *);void		gkrellm_load_chartconfig(GkrellmChartconfig **, gchar *, gint);void		gkrellm_chartconfig_destroy(GkrellmChartconfig **);  /* Panel functions  */void		gkrellm_panel_configure(GkrellmPanel *, gchar *, GkrellmStyle *);void		gkrellm_panel_configure_add_height(GkrellmPanel *, gint);void		gkrellm_panel_configure_set_height(GkrellmPanel *p, gint h);gint		gkrellm_panel_configure_get_height(GkrellmPanel *p);void		gkrellm_panel_create(GtkWidget *, GkrellmMonitor *,GkrellmPanel *);void		gkrellm_panel_destroy(GkrellmPanel *);void		gkrellm_panel_hide(GkrellmPanel *);void		gkrellm_panel_show(GkrellmPanel *);gboolean	gkrellm_panel_enable_visibility(GkrellmPanel *p, gboolean,						gboolean *);gboolean	gkrellm_is_panel_visible(GkrellmPanel *);void		gkrellm_panel_keep_lists(GkrellmPanel *, gboolean);void		gkrellm_draw_panel_label(GkrellmPanel *);void		gkrellm_panel_label_on_top_of_decals(GkrellmPanel *, gboolean);void		gkrellm_draw_panel_layers(GkrellmPanel *);void		gkrellm_draw_panel_layers_force(GkrellmPanel *);void		gkrellm_panel_bg_piximage_override(GkrellmPanel *,						GkrellmPiximage *);void		gkrellm_panel_label_get_position(GkrellmStyle *style,						gint *x_position, gint *y_off);  /* Krell functions  */GkrellmKrell *gkrellm_create_krell(GkrellmPanel *, GkrellmPiximage *,						GkrellmStyle *);void		gkrellm_set_krell_full_scale(GkrellmKrell *, gint, gint);void		gkrellm_set_style_krell_values(GkrellmStyle *, gint, gint, gint,						gint, gint, gint, gint);void		gkrellm_set_style_krell_values_default(GkrellmStyle *s, gint yoff,						gint depth, gint x_hot, gint expand, gint ema,						gint left_margin, gint right_margin);void		gkrellm_set_style_slider_values_default(GkrellmStyle *s, gint yoff,						gint left_margin, gint right_margin);void		gkrellm_set_krell_margins(GkrellmPanel *, GkrellmKrell *k,						gint, gint);void		gkrellm_set_krell_expand(GkrellmStyle *, gchar *);void		gkrellm_update_krell(GkrellmPanel *, GkrellmKrell *, gulong);void		gkrellm_monotonic_krell_values(GkrellmKrell *k, gboolean);void		gkrellm_destroy_krell_list(GkrellmPanel *);void		gkrellm_destroy_krell(GkrellmKrell *);void		gkrellm_move_krell_yoff(GkrellmPanel *, GkrellmKrell *, gint);void		gkrellm_remove_krell(GkrellmPanel *, GkrellmKrell *);void		gkrellm_insert_krell(GkrellmPanel *, GkrellmKrell *, gboolean);void		gkrellm_insert_krell_nth(GkrellmPanel *, GkrellmKrell *, gint);  /* Decal and Decalbutton functions  */GkrellmDecal *gkrellm_create_decal_text(GkrellmPanel *p, gchar *string,						GkrellmTextstyle *ts, GkrellmStyle *style,						gint x, gint y, gint w);GkrellmDecal *gkrellm_create_decal_text_markup(GkrellmPanel *p, gchar *string,						GkrellmTextstyle *ts, GkrellmStyle *style,						gint x, gint y, gint w);GkrellmDecal *gkrellm_create_decal_text_with_height(GkrellmPanel *p,						GkrellmTextstyle *ts, GkrellmStyle *style,						gint x, gint y, gint w, gint h, gint y_pad);GkrellmDecal *gkrellm_create_decal_pixmap(GkrellmPanel *, GdkPixmap *,						GdkBitmap *, gint, GkrellmStyle *, gint, gint);GkrellmDecal *gkrellm_make_scaled_decal_pixmap(GkrellmPanel *p,						GkrellmPiximage *im, GkrellmStyle *style, gint depth,						gint x, gint y, gint w, gint h);void		gkrellm_decal_get_size(GkrellmDecal *d, gint *w, gint *h);void		gkrellm_draw_decal_pixmap(GkrellmPanel *, GkrellmDecal *, gint);void		gkrellm_draw_decal_text(GkrellmPanel *, GkrellmDecal *, gchar *,						gint);void		gkrellm_draw_decal_markup(GkrellmPanel *, GkrellmDecal *, gchar *);void		gkrellm_decal_text_get_offset(GkrellmDecal *d, gint *x, gint *y);void		gkrellm_decal_text_set_offset(GkrellmDecal *d, gint x, gint y);void		gkrellm_decal_text_clear(GkrellmDecal *d);void		gkrellm_decal_text_insert(GkrellmDecal *d, gchar *s,						GkrellmTextstyle *ts, gint x_off, gint y_off);void		gkrellm_decal_text_markup_insert(GkrellmDecal *d, gchar *s,						GkrellmTextstyle *ts, gint x_off, gint y_off);void		gkrellm_decal_text_nth_inserted_set_offset(GkrellmDecal *d,						gint n, gint x_off, gint y_off);void		gkrellm_decal_text_nth_inserted_get_offset(GkrellmDecal *d,						gint n, gint *x_off, gint *y_off);void		gkrellm_decal_scroll_text_align_center(GkrellmDecal *d,						gboolean center);void		gkrellm_decal_scroll_text_horizontal_loop(GkrellmDecal *d,						gboolean loop);void		gkrellm_decal_scroll_text_vertical_loop(GkrellmDecal *d,						gboolean loop);void		gkrellm_decal_scroll_text_get_size(GkrellmDecal *d,						gint *w, gint *h);void		gkrellm_decal_scroll_text_set_markup(GkrellmPanel *p,						GkrellmDecal *d, gchar *text);void		gkrellm_decal_scroll_text_set_text(GkrellmPanel *p,						GkrellmDecal *d, gchar *text);void		gkrellm_draw_decal_on_chart(GkrellmChart *, GkrellmDecal *,						gint, gint);void		gkrellm_move_decal(GkrellmPanel *, GkrellmDecal *, gint, gint);void		gkrellm_decal_on_top_layer(GkrellmDecal *, gboolean);void		gkrellm_destroy_decal(GkrellmDecal *);void		gkrellm_make_decal_visible(GkrellmPanel *, GkrellmDecal *);void		gkrellm_make_decal_invisible(GkrellmPanel *, GkrellmDecal *);gint		gkrellm_is_decal_visible(GkrellmDecal *);void		gkrellm_remove_decal(GkrellmPanel *, GkrellmDecal *);void		gkrellm_insert_decal(GkrellmPanel *, GkrellmDecal *, gboolean);void		gkrellm_insert_decal_nth(GkrellmPanel *, GkrellmDecal *, gint);void		gkrellm_destroy_decal_list(GkrellmPanel *);void		gkrellm_set_decal_button_index(GkrellmDecalbutton *, gint);GkrellmDecalbutton *gkrellm_make_decal_button(GkrellmPanel *, GkrellmDecal *,						void (*func)(), void *, gint, gint);GkrellmDecalbutton *gkrellm_make_overlay_button(GkrellmPanel *,						void (*func)(), void *, gint, gint, gint, gint,						GkrellmPiximage *, GkrellmPiximage *);GkrellmDecalbutton *gkrellm_put_decal_in_panel_button(GkrellmPanel *,						GkrellmDecal *, void (*func)(), void *,						GkrellmMargin *);GkrellmDecalbutton *gkrellm_put_decal_in_meter_button(GkrellmPanel *,						GkrellmDecal *, void (*func)(), void *,						GkrellmMargin *);GkrellmDecalbutton *gkrellm_put_label_in_panel_button(GkrellmPanel *,						void (*func)(), void *, gint pad);GkrellmDecalbutton *gkrellm_put_label_in_meter_button(GkrellmPanel *,						void (*func)(), void *, gint pad);GkrellmDecalbutton *gkrellm_make_scaled_button(GkrellmPanel *p,						GkrellmPiximage *im, void (*func)(), void *data,						gboolean auto_hide, gboolean set_default_border,						gint depth, gint cur_index, gint pressed_index,						gint x, gint y, gint w, gint h); GkrellmDecalbutton *gkrellm_decal_is_button(GkrellmDecal *);void		gkrellm_set_in_button_callback(GkrellmDecalbutton *,						gint (*func)(), gpointer data);gboolean	gkrellm_in_button(GkrellmDecalbutton *button, GdkEventButton *);gboolean	gkrellm_in_decal(GkrellmDecal *, GdkEventButton *);void		gkrellm_decal_button_connect(GkrellmDecalbutton *, void (*func)(),						void *);void		gkrellm_decal_button_right_connect(GkrellmDecalbutton *,						void (*func)(), void *);void		gkrellm_set_button_sensitive(GkrellmDecalbutton *, gboolean);void		gkrellm_hide_button(GkrellmDecalbutton *);void		gkrellm_show_button(GkrellmDecalbutton *);void		gkrellm_destroy_button(GkrellmDecalbutton *);  /* Pixops  */gboolean	gkrellm_load_piximage(gchar *, gchar **,						GkrellmPiximage **, gchar *);gboolean	gkrellm_load_piximage_from_inline(gchar *, const guint8 *,						GkrellmPiximage **, gchar *, gboolean);GkrellmPiximage *gkrellm_piximage_new_from_inline(const guint8 *data,						gboolean);GkrellmPiximage	*gkrellm_piximage_new_from_file(gchar *fname);GkrellmPiximage	*gkrellm_piximage_new_from_xpm_data(gchar **data);void		gkrellm_set_piximage_border(GkrellmPiximage *piximage,						GkrellmBorder *border);gboolean	gkrellm_scale_pixbuf_to_pixmap(GdkPixbuf *src_pixbuf,						GdkPixmap **pixmap, GdkBitmap **mask,						gint w_dst, gint h_dst);GdkPixbuf	*gkrellm_scale_piximage_to_pixbuf(GkrellmPiximage *piximage,						gint w_dst, gint h_dst);gboolean	gkrellm_scale_piximage_to_pixmap(GkrellmPiximage *, GdkPixmap **,						GdkBitmap **, gint, gint);void		gkrellm_paste_piximage(GkrellmPiximage *src_piximage,						GdkDrawable *drawable,						gint x_dst, gint y_dst, gint w_dst, gint h_dst);void		gkrellm_paste_pixbuf(GdkPixbuf *src_pixbuf, GdkDrawable *drawable,						gint x_dst, gint y_dst, gint w_dst, gint h_dst);gboolean	gkrellm_scale_theme_background(GkrellmPiximage *piximage,						GdkPixmap **pixmap, GdkBitmap **mask,						gint w_dst, gint h_dst);void		gkrellm_destroy_piximage(GkrellmPiximage *piximage);GkrellmPiximage	*gkrellm_clone_piximage(GkrellmPiximage *src_piximage);gboolean	gkrellm_clone_pixmap(GdkPixmap **, GdkPixmap **);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -