gadgets 2.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
/* Copyright 2010 Castle Technology 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:    gadgets.h
 * Purpose: Text Gadgets
 *
 */

#ifndef __objects_gadgets_h
#define __objects_gadgets_h

#ifndef __toolbox_h
#include "objects/toolbox.h"
#endif


/* Gadgets SWI calls ****************************************************************************/

#define TextGadgets_SWIChunkBase    0x140180
#define TextGadgets_TextArea        (TextGadgets_SWIChunkBase + 0)
#define TextGadgets_TextField       (TextGadgets_SWIChunkBase + 1)
#define TextGadgets_ScrollList      (TextGadgets_SWIChunkBase + 2)
#define TextGadgets_Scrollbar       (TextGadgets_SWIChunkBase + 3)
#define TextGadgets_RedrawAll       (TextGadgets_SWIChunkBase + 4)
#define TextGadgets_Filter          (TextGadgets_SWIChunkBase + 5)

/* Gadgets Errors *******************************************************************************/

#define TextGadgets_ErrorBase       (Program_Error | 0x0081A300)

#define TextGadgets_TasksActive     (TextGadgets_ErrorBase+0x00) /* Gadgets has tasks active */
#define TextGadgets_DuffColour      (TextGadgets_ErrorBase+0x01) /* Invalid desktop colour */
#define TextGadgets_AllocFailed     (TextGadgets_ErrorBase+0x02) /* Out of memory */
#define TextGadgets_BarAllocFailed  (TextGadgets_ErrorBase+0x03) /* Out of memory for scrollbar */
#define TextGadgets_ListAllocFailed (TextGadgets_ErrorBase+0x04) /* Out of memory for scrolllist */
#define TextGadgets_AreaAllocFailed (TextGadgets_ErrorBase+0x05) /* Out of memory for textarea */
#define TextGadgets_FontScanStrange (TextGadgets_ErrorBase+0x06) /* Font_ScanString strange */
#define TextGadgets_IntMallocFail   (TextGadgets_ErrorBase+0x07) /* Int err - out of memory */
#define TextGadgets_IntNoSuchBlock  (TextGadgets_ErrorBase+0x08) /* Int err - no such block */
#define TextGadgets_IntReinitMem    (TextGadgets_ErrorBase+0x09) /* Int err - attempt to reinit block */
#define TextGadgets_IntNeverInit    (TextGadgets_ErrorBase+0x0A) /* Int err - memory not init'd */
#define TextGadgets_UKScrollbar     (TextGadgets_ErrorBase+0x0B) /* No such scrollbar */
#define TextGadgets_UKScrollList    (TextGadgets_ErrorBase+0x0C) /* No such scrollbar */
#define TextGadgets_UKTextArea      (TextGadgets_ErrorBase+0x0D) /* No such text area */
#define TextGadgets_BadIndex        (TextGadgets_ErrorBase+0x0E) /* Bad index */

#endif