Index: doc/Object.man =================================================================== diff -u -re1afe57982f40b4886fa025fb48e2f0cc833c026 -ra2fc04fd98cd2b3474742190887d1258a70ec164 --- doc/Object.man (.../Object.man) (revision e1afe57982f40b4886fa025fb48e2f0cc833c026) +++ doc/Object.man (.../Object.man) (revision a2fc04fd98cd2b3474742190887d1258a70ec164) @@ -5,6 +5,10 @@ [keywords NX] [keywords "mixin class"] +[vset SCOPE "object"] +[vset CMD "::obj"] +[vset SCOPEMODIFIER "object"] + [copyright {2014 Stefan Sobernig , Gustaf Neumann }] [titledesc {nx::Object API Reference}] @@ -315,7 +319,7 @@ Evaluates a special Tcl script for the scope of [arg obj] in the style of Tcl's [cmd eval]. There are, however, notable differences to the -standard [cmd eval]: In this script, the colon-prefix notation to +standard [cmd eval]: In this script, the colon-prefix notation is available to dispatch to methods and to access variables of [arg obj]. Script-local variables, which are thrown away once the evaluation of the script has completed, can be defined to store intermediate results. @@ -592,70 +596,8 @@ [list_end] -[list_begin commands] +[include property.man.inc] -[cmd_def property] - -[list_begin definitions] - -[call [arg obj] [const object] [cmd property] [opt "-accessor public|private|protected"] [opt "-configurable [arg trueFalse]"] [opt -incremental] [opt "-class [arg className]"] [opt -nocomplain] [arg spec] [opt [arg initBlock]]] - -Defines a per-object <<@gls property>>. For every property, a <<@gls -slotobject>> is created. A property also provides for a pair of -getter and setter methods, automatically. - -[list_begin options] - -[opt_def [option -accessor] "public|private|protected"] - -If set, a getter/setter method having the specified call-protection -level ([const public], [const private], or [const protected]) will be -defined automatically. -[para] -Type: an empty string (""), meaning no getter/setter method will be provided for the property -[para] -Default value: an empty string (""), meaning no getter/setter method will be provided for the property - -[list_end] - -[list_begin arguments] - - -[arg_def boolean -configurable in] -If set to [const true], the property can be configured through [cmd configure] and [cmd cget], respectively. If [const false], the property's value can be accessed and modified via the getter/setter method, if available (see [arg -accessor]), or by using the object variable managed by the property directly. -[para] -Default value: [const true] - -[arg_def switch -incremental in] ... - -[arg_def "" "-class [arg className]" in] Allows for specifying a slot class, from which the slot object realizing the property is instantiated. -[para] -Default value: [cmd ::nx::VariableSlot] - -[arg_def switch -nocomplain in] -If set, an existing object variable by the property name will not -be overwritten. Instead, an error exception is thrown. - -[arg_def "" spec in] - -The property specification can be a list of, at -least, one or two elements, maximum. The first element -specifies the property name, optionally followed by -parameter types after a colon delimiter. If provided, -the second element sets the default value for this -property. - -[arg_def "" initblock in] - -A script which is evaluated for the scope of the property's slot -object during its initialization. - -[list_end] - - - -[list_end] - [cmd_def alias] [list_begin definitions] @@ -735,7 +677,6 @@ [list_end] -[list_end] [section {Internally called Methods}]