Commit 7ea77ecd authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Removed out-of-date long name duplicates.

parent decb6d31
/* Copyright 1997 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* TextGadgets.h
*
* Author: Piers Wombwell
* Created: 20-Jun-96
* Updated:
*/
#ifndef _TEXTGADGETS_H
#define _TEXTGADGETS_H
//#include "TextAreaP.h"
// Horrible. Need to work this out properly and change on mode changes.
#define SCROLLBAR_SIZE 44
extern unsigned int redrawing_window;
extern int filter_toolbox_events[];
extern int filter_wimp_events[];
_kernel_oserror *TextGadgets_init(char *cmd_tail, int podule_base, void *pw);
void TextGadgets_services(int service_number, _kernel_swi_regs *r, void *pw);
_kernel_oserror *TextGadgets_final(int fatal, int podule, void *pw);
_kernel_oserror *TextGadgets_SWI_handler(int swi_no, _kernel_swi_regs *r,
void *pw);
extern void work_to_screen(BBox *box, WimpGetWindowStateBlock *state);
extern void screen_to_work(BBox *box, WimpGetWindowStateBlock *state);
extern _kernel_oserror *redraw_gadget(int window_handle, GadgetHeader *hdr);
#ifndef Service_RedrawingWindow
#define Service_RedrawingWindow 0x44ec6
#endif
#define Service_ModeChange 0x46
#define Service_WimpPalette 0x5d
#endif
/* Copyright 1997 Acorn Computers Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* utils.h
*
* The utils.c file defines various functions that might otherwise
* have been found in a library like RISC OS Lib, ie. small functions
* based on SWI calls to RISC OS.
*
*/
#ifndef UTILS_H
#define UTILS_H
#define FAILED 0
#define SUCCESS 1
#include "toolbox.h"
/*
* This structure is used to carry information about a sprite around
*/
typedef struct
{
char name[12];
int width;
int height;
int depth;
unsigned int mode;
} ROSpriteInfo;
extern MessagesFD messages;
int decompress(char **file, int *size);
int file_size(char *name) ;
_kernel_oserror * file_load(char *name, char *add) ;
void CLG(void);
char *object_name(ObjectId id);
int is_object(ObjectId id,char *name);
void warn_about_memory(void);
ObjectId named_object(char *name);
char *lookup_token(const char *t);
_kernel_oserror *sprite_area_create(void);
_kernel_oserror *sprite_area_delete(void);
_kernel_oserror *sprite_create(unsigned int width, unsigned int height,
unsigned int depth, char **name);
_kernel_oserror *sprite_delete(char *name);
_kernel_oserror *os_switch_to_sprite (ROSpriteInfo *sprinfo, int *old);
_kernel_oserror * os_switch_to_screen (int *old);
_kernel_oserror *os_set_gcol (unsigned int p1);
_kernel_oserror *os_switch_surface (ROSpriteInfo *sprinfo);
#define PLOT_MOVE 4
#define PLOT_DRAW 5
#define PLOT_BACK 7
#define PLOT_DRAW_RELATIVE 1
#define PLOT_LINE 0
#define PLOT_TRIANGLE_FILL 80
#define PLOT_RECTANGLE_FILL 96
#define PLOT_ARC 160
#define PLOT_SEGMENT 168
#define PLOT_BLOCK_COPY 190
#define PLOT_ELLIPSE 192
#define PLOT_ELLIPSE_FILL 200
_kernel_oserror *os_plot(unsigned short command, int x, int y);
_kernel_oserror * os_sprite_plot_to_screen (ROSpriteInfo *sprinfo, char *tt, long x, long y);
// Following functions are defined in riscos_graphics.s
BBox get_graphics_window(void);
void set_graphics_window(BBox box);
/* set_graphics_window_in_window ------------------------------------------
* Sets a graphics window inside existing graphics window
* Returns: 0 if new window is 0*0 pixels, else 1
*/
int set_graphics_window_in_window(BBox inside, BBox outside);
_kernel_oserror *colourtrans_set_gcol(unsigned int colour,
unsigned int flags, unsigned int action);
_kernel_oserror *colourtrans_set_font_colours(unsigned int font_handle,
unsigned int background, unsigned int foreground,
unsigned int max_offset);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment