Commit 609d3219 authored by ROOL's avatar ROOL 🤖
Browse files

This commit was manufactured by cvs2git to create tag 'initial'.

Sprout from master 1999-11-16 14:48:43 UTC Stewart Brodie <sbrodie@gitlab.riscosopen.org> '  Import of assembler headers which declare Toolbox SWI symbols.'
Delete:
    !MkClean,fd7
    !MkExpHdr,fd7
    !MkExpLib,fd7
    Makefile
    VersionNum
    c/debug
    c/mem
    c/messages
    c/objsupport
    c/rmensure
    c/slist
    c/string32
    h/colpicker
    h/const
    h/debug
    h/macros
    h/mem
    h/messages
    h/objsupport
    h/os
    h/rmensure
    h/services
    h/slist
    h/string32
    h/style
    h/toolboxmem
    h/twimp
    objects/h/DCS
    objects/h/Quit
    objects/h/colourdbox
    objects/h/colourmenu
    objects/h/fileinfo
    objects/h/fontdbox
    objects/h/fontmenu
    objects/h/generic
    objects/h/iconbar
    objects/h/menu
    objects/h/printdbox
    objects/h/proginfo
    objects/h/saveas
    objects/h/scale
    objects/h/toolbox
    objects/h/window
    s/toolboxmem
parent cb30a819
This diff is collapsed.
/* Copyright 1996 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.
*/
/* File: scale.h
* Purpose: Scale Objects
* Author: Timothy G Roddis
* History: 15-Feb-94: TGR: created
*
*/
#ifndef __Scale_h
#define __Scale_h
#ifndef __os_h
#include "os.h"
#endif
#ifndef __window_h
#include "objects.window.h"
#endif
#ifndef __wimp_h
#include "twimp.h"
#endif
/* Scale SWI calls *******************************************************************************/
#define Scale_SWIChunkBase 0x82c00
#define Scale_ObjectClass Scale_SWIChunkBase
#define Scale_ClassSWI (Scale_SWIChunkBase + 0)
#define Scale_PostFilter (Scale_SWIChunkBase + 1)
#define Scale_PreFilter (Scale_SWIChunkBase + 2)
/* Scale Templates *******************************************************************************/
/* flags */
#define Scale_GenerateShowEvent 0x00000001
#define Scale_GenerateHideEvent 0x00000002
#define Scale_IncludeScaleToFit 0x00000004
/* templates */
typedef struct
{
int flags;
int min_value;
int max_value;
int step_size;
char *title;
int max_title;
char *window;
int std_value[4];
} ScaleTemplate;
/* component IDs */
#define Scale_ComponentIDBase (Scale_SWIChunkBase<<4)
#define Scale_NumberRange_Scale (Scale_ComponentIDBase + 0)
#define Scale_ActionButton_StdValue(A) (Scale_ComponentIDBase + (A+1)) /* Valid for 1 <= A <= 3 */
#define Scale_ActionButton_Cancel (Scale_ComponentIDBase + 5)
#define Scale_ActionButton_Scale (Scale_ComponentIDBase + 6)
#define Scale_ActionButton_ScaleToFit (Scale_ComponentIDBase + 9) /* why this isn't 7 as I originally had it, I don't know */
/* Scale Methods *********************************************************************************/
#define Scale_GetWindowID 0
#define Scale_SetValue 1
#define Scale_GetValue 2
#define Scale_SetBounds 3
#define Scale_GetBounds 4
#define Scale_SetTitle 5
#define Scale_GetTitle 6
/* Scale Toolbox Events **************************************************************************/
#define Scale_AboutToBeShown Scale_SWIChunkBase
#define Scale_DialogueCompleted (Scale_SWIChunkBase + 1)
#define Scale_ApplyFactor (Scale_SWIChunkBase + 2)
typedef struct {
ToolboxEventHeader hdr;
int show_type;
union {
struct {
int x,y;
} coords;
WindowShowObjectBlock full;
} info;
} Scale_AboutToBeShown_Event;
typedef struct {
ToolboxEventHeader hdr;
} Scale_DialogueCompleted_Event;
typedef struct {
ToolboxEventHeader hdr;
unsigned int factor;
} Scale_ApplyFactor_Event;
/* Scale Errors **********************************************************************************/
#define Scale_ErrorBase (Program_Error | 0x0080B700)
#define Scale_AllocFailed (Scale_ErrorBase+0x01)
#define Scale_ShortBuffer (Scale_ErrorBase+0x02)
#define Scale_NoSuchTask (Scale_ErrorBase+0x11)
#define Scale_NoSuchMethod (Scale_ErrorBase+0x12)
#define Scale_NoSuchMiscOpMethod (Scale_ErrorBase+0x13)
#define Scale_TasksActive (Scale_ErrorBase+0x00)
#endif
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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