1component(n)                      [incr Tcl]                      component(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       itcl::component  -  define components for extendedclass, widget or wid‐
9       getadaptor
10
11       Parts of this description are "borrowed" from Tcl extension [snit],  as
12       the functionality is mostly identical.
13

WARNING!

15       This  is  new  functionality  in  [incr  Tcl]  where  the API can still
16       change!!
17

SYNOPSIS

19       public component comp ?-inherit?
20       protected component comp ?-inherit?
21       private component comp ?-inherit?
22______________________________________________________________________________
23
24

DESCRIPTION

26       The component command is used inside an  [incr Tcl]  extendedclass/wid‐
27       get/widgetadaptor definition to define components.
28
29       Explicitly  declares a component called comp, and automatically defines
30       the component's instance variable.
31
32       If the -inherit option  is  specified  then  all  unknown  methods  and
33       options  will be delegated to this component. The name -inherit implies
34       that instances of this new type inherit, in a sense,  the  methods  and
35       options of the component. That is, -inherit yes is equivalent to:
36
37              component mycomp
38              delegate option * to mycomp
39              delegate method * to mycomp
40
41

KEYWORDS

43       component, widget, widgetadaptor, extendedclass
44
45
46
47itcl                                  4.0                         component(n)
Impressum