proxmark3/client/src/proxgui.h

54 lines
1.4 KiB
C
Raw Normal View History

//-----------------------------------------------------------------------------
// Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
//
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//-----------------------------------------------------------------------------
// GUI functions
//-----------------------------------------------------------------------------
2019-04-11 07:16:25 +08:00
#ifndef __PROXGUI_H
#define __PROXGUI_H
#ifdef __cplusplus
extern "C" {
#endif
2017-07-28 03:32:15 +08:00
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
2017-07-28 03:32:15 +08:00
void ShowGraphWindow(void);
void HideGraphWindow(void);
void RepaintGraphWindow(void);
2021-07-08 15:53:50 +08:00
// hook up picture viewer
void ShowPictureWindow(char *fn);
void HidePictureWindow(void);
void RepaintPictureWindow(void);
void MainGraphics(void);
void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool stayInCommandLoop);
void ExitGraphics(void);
2017-07-28 03:32:15 +08:00
extern double g_CursorScaleFactor;
extern char g_CursorScaleFactorUnit[11];
extern double g_PlotGridX, g_PlotGridY, g_PlotGridXdefault, g_PlotGridYdefault, g_GridOffset;
extern uint32_t g_CursorCPos, g_CursorDPos, g_GraphStart, g_GraphStop;
extern int CommandFinished;
extern int offline;
extern bool g_GridLocked;
2017-07-28 03:32:15 +08:00
#define GRAPH_SAVE 1
#define GRAPH_RESTORE 0
#ifndef FILE_PATH_SIZE
#define FILE_PATH_SIZE 1000
#endif
#ifdef __cplusplus
}
#endif
2019-04-11 07:16:25 +08:00
#endif