Repository navigation
Expand file tree
/
Copy pathsliderclass.c
More file actions
80 lines (74 loc) · 1.69 KB
/
Copy pathsliderclass.c
File metadata and controls
80 lines (74 loc) · 1.69 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* @(#) $Header$
*
* BGUI library
* sliderclass.c
*
* (C) Copyright 1998 Manuel Lemos.
* (C) Copyright 1996-1997 Ian J. Einman.
* (C) Copyright 1993-1996 Jaba Development.
* (C) Copyright 1993-1996 Jan van den Baard.
* All Rights Reserved.
*
* $Log$
* Revision 42.2 2004/06/16 20:16:48 verhaegs
* Use METHODPROTO, METHOD_END and REGFUNCPROTOn where needed.
*
* Revision 42.1 2000/05/15 19:27:02 stegerg
* another hundreds of REG() macro replacements in func headers/protos.
*
* Revision 42.0 2000/05/09 22:10:13 mlemos
* Bumped to revision 42.0 before handing BGUI to AROS team
*
* Revision 41.11 2000/05/09 19:55:07 mlemos
* Merged with the branch Manuel_Lemos_fixes.
*
* Revision 41.10 1998/02/25 21:13:08 mlemos
* Bumping to 41.10
*
* Revision 1.1 1998/02/25 17:09:46 mlemos
* Ian sources
*
*
*/
#include "include/classdefs.h"
/// OM_NEW
/*
* Create a shiny new object.
*/
METHOD(SliderClassNew, struct opSet *, ops)
{
struct TagItem *tags;
IPTR rc;
tags = DefTagList(BGUI_SLIDER_GADGET, ops->ops_AttrList);
/*
* First we let the superclass get us an object.
*/
if ((rc = NewSuperObject(cl, obj, tags)))
{
AsmDoSuperMethod(cl, (Object *)rc, OM_SET, tags, NULL);
};
FreeTagItems(tags);
return rc;
}
METHOD_END
///
///Class initialization.
/*
* Class function table.
*/
STATIC DPFUNC ClassFunc[] =
{
{ OM_NEW, SliderClassNew, },
{ DF_END, NULL },
};
/*
* Class initialization.
*/
makeproto Class *InitSliderClass(void)
{
return BGUI_MakeClass(CLASS_SuperClassBGUI, BGUI_PROP_GADGET,
CLASS_DFTable, ClassFunc,
TAG_DONE);
}
///