~ubuntu-branches/ubuntu/trusty/vice/trusty

« back to all changes in this revision

Viewing changes to src/arch/riscos/ui.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2013-07-28 20:38:23 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: package-import@ubuntu.com-20130728203823-w495rps5wuykespp
Tags: upstream-2.4.dfsg
ImportĀ upstreamĀ versionĀ 2.4.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * ui.h - RISC OS GUI.
3
 
 *
4
 
 * Written by
5
 
 *  Andreas Dehmel <zarquon@t-online.de>
6
 
 *
7
 
 * This file is part of VICE, the Versatile Commodore Emulator.
8
 
 * See README for copyright notice.
9
 
 *
10
 
 *  This program is free software; you can redistribute it and/or modify
11
 
 *  it under the terms of the GNU General Public License as published by
12
 
 *  the Free Software Foundation; either version 2 of the License, or
13
 
 *  (at your option) any later version.
14
 
 *
15
 
 *  This program is distributed in the hope that it will be useful,
16
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 
 *  GNU General Public License for more details.
19
 
 *
20
 
 *  You should have received a copy of the GNU General Public License
21
 
 *  along with this program; if not, write to the Free Software
22
 
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23
 
 *  02111-1307  USA.
24
 
 *
25
 
 */
26
 
 
27
 
#ifndef VICE_UI_RO_H
28
 
#define VICE_UI_RO_H
29
 
 
30
 
#include "vice.h"
31
 
 
32
 
#include "resources.h"
33
 
#include "types.h"
34
 
#include "uiapi.h"
35
 
 
36
 
struct conf_iconid_s;
37
 
struct conf_item_s;
38
 
struct wimp_msg_desc_s;
39
 
struct disp_desc_s;
40
 
 
41
 
typedef unsigned int ui_window_t;
42
 
 
43
 
/* Function type for setting a value */
44
 
typedef int (*set_varstr_function)(const char *name, const char *val);
45
 
typedef int (*set_varint_function)(const char *name, int val);
46
 
 
47
 
extern int ui_init_named_app(const char *appname, const char *iconname);
48
 
 
49
 
extern void ui_poll(int dopoll);
50
 
extern int ui_poll_core(int *block);
51
 
 
52
 
extern void ui_message(const char *format,...);
53
 
extern void ui_show_text(const char *title, const char *text, int width, int height);
54
 
extern void ui_exit(void);
55
 
 
56
 
extern void ui_display_speed(int percent, int framerate, int warp_flag);
57
 
extern void ui_toggle_drive_status(int state);
58
 
extern void ui_display_paused(int flag);
59
 
extern void ui_display_drive_dir(int number, const char *dir_name);
60
 
 
61
 
extern void ui_open_emu_window(RO_Window *win, int *b);
62
 
extern void ui_close_emu_window(RO_Window *win, int *b);
63
 
extern void ui_show_emu_scale(void);
64
 
 
65
 
extern void ui_set_drive_leds(unsigned int led, int status);
66
 
 
67
 
extern void ui_toggle_truedrv_emulation(void);
68
 
extern void ui_toggle_sid_emulation(void);
69
 
 
70
 
extern void ui_activate_monitor(void);
71
 
 
72
 
extern void ui_set_sound_volume(void);
73
 
 
74
 
extern int ui_flip_iterate_and_attach(int dir);
75
 
 
76
 
extern int ui_make_last_screenshot(void);
77
 
extern int ui_save_last_snapshot(void);
78
 
extern void ui_trigger_snapshot_load(void);
79
 
 
80
 
extern void ui_set_icons_grey(RO_Window *win, const struct conf_iconid_s *desc, int state);
81
 
 
82
 
extern struct wimp_msg_desc_s *ui_emulator_init_prologue(const char *icon);
83
 
extern int ui_emulator_init_epilogue(struct wimp_msg_desc_s *msg);
84
 
extern int ui_load_template(const char *tempname, RO_Window **wptr, struct wimp_msg_desc_s *msg);
85
 
extern void ui_create_emulator_menu(int *block);
86
 
extern int ui_open_centered_or_raise_block(RO_Window *win, int *block);
87
 
extern void ui_setup_menu_display(const struct disp_desc_s *dd);
88
 
extern void ui_set_menu_display_core_string(const struct disp_desc_s *dd, set_varstr_function func, int number);
89
 
extern void ui_set_menu_display_core_int(const struct disp_desc_s *dd, set_varint_function func, int number);
90
 
extern void ui_update_menu_disp_strshow(const struct disp_desc_s *dd, const char *val);
91
 
extern void ui_setup_config_item(struct conf_item_s *ci);
92
 
extern void ui_update_rom_names(void);
93
 
extern const char *ui_check_for_syspath(const char *path);
94
 
 
95
 
extern RO_Screen ScreenMode;
96
 
 
97
 
extern RO_Window *EmuWindow;
98
 
extern RO_Window *EmuPane;
99
 
extern RO_Window *ImgContWindow;
100
 
extern RO_Window *MessageWindow;
101
 
extern RO_Window *InfoWindow;
102
 
extern RO_Window *CreateDiscWindow;
103
 
 
104
 
extern RO_Caret LastCaret;
105
 
 
106
 
extern int EmuZoom;
107
 
extern int FrameBufferUpdate;
108
 
extern int ModeChanging;
109
 
extern int UseEigen;
110
 
extern int EmuPaused;
111
 
extern int SingleTasking;
112
 
extern int CycleBasedSound;
113
 
 
114
 
extern int DriveLEDStates[4];
115
 
extern int DriveTrackNumbers[4];
116
 
 
117
 
#endif