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

📄 hexviewdlg.h

📁 Linux 上的socket嗅探器
💻 H
字号:
/* * * Copyright (C) 2003 Xiangbin Lee <honeycombs@sina.com> <honeycombs@263.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public 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. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation. */#ifndef _HEXVIEW_H_#define _HEXVIEW_H_#include "common.h"#define HEXMAX_CHARS  4200typedef struct _GtkHexView{    // reg signal    gint regsignal;    // font color    GdkColor m_idFontColor;    GdkColor m_idSelColor;    GdkColor m_hexFontColor;    GdkColor m_hexSelColor;    GdkColor m_txtFontColor;    GdkColor m_txtSelColor;    /* show param */    guchar hexbuffer[HEXMAX_CHARS];    gushort hexdatalen;    /* param for redraw  */    gushort chnperline; // char length per line for selected drawing    gushort sho_frombufpos; // selected chars from buffer    gushort sho_length;    // char show length    gushort old_frombufpos; // old selected chars from buffer    gushort old_length;    // old char show length    /* GtkWidget */    GtkWidget *scrolled_window;    GtkWidget *view;    GtkWidget *areaid;    GtkWidget *areahex;    GtkWidget *areatext;    GtkTextBuffer *buffer;}GtkHexView, *LPGtkHexView;GtkWidget *GtkHexView_Create(GtkHexView *lpview, GtkWidget * window);void GtkHexView_SetFontColor(GtkHexView *lpview,		GdkColor idcolor,GdkColor idselcolor,		GdkColor hexcolor,GdkColor hexselcolor,		GdkColor txtcolor,GdkColor txtselcolor		);	/* set buffer to show */void GtkHexView_SetLineCharNum(GtkHexView *lpview, gushort num, gint ifredraw);void GtkHexView_SetSelOption(GtkHexView *lpview, gushort _bufpos, gushort _slen, gint ifredraw);void GtkHexView_SetBufferData(GtkHexView *lpview, guchar *buf, gushort len, gint ifredraw);#endif

⌨️ 快捷键说明

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