The TutOption* functions are used to work with options. These functions allow you to create new options, destroy existing options, retrieve the values of options, and set the values of options.
The functions are used to create and look up callback functions which are executed when the value of an option changes.
TutOptionChangeCbCreate create a callback that is called when the option value changes
T_CB TutOptionChangeCbCreate(option
,change_func
,arg
) T_OPTIONoption
; T_OPTION_CHANGE_CB_FUNCchange_func
; T_CB_ARGarg
;
TutOptionChangeCbLookup look up the option change callback
T_CB TutOptionChangeCbLookup(option
,change_func
,arg
) T_OPTIONoption
; T_OPTION_CHANGE_CB_FUNCchange_func
; T_CB_ARGarg
;
TutOptionCreate create a new option
TutOptionDestroy destroy an existing option
TutOptionGetBool determine the value of a boolean option
TutOptionGetEnum determine the value of an enumerated option
TutOptionGetEnumList determine the value of an enumerated list option
T_BOOL TutOptionGetEnumList(option
,enum_list_val_return
) T_OPTIONoption
; T_STR_LIST *enum_list_val_return
;
TutOptionGetKnown retrieve the known state for an option
TutOptionGetName return the name of the option
TutOptionGetNum determine the value of a numeric option
TutOptionGetReadOnly retrieve read-only property of option
TutOptionGetRequired retrieve required property of option
TutOptionGetStr determine the value of a string option
TutOptionGetStrList determine the value of a string list option
T_BOOL TutOptionGetStrList(option
,str_list_val_return
) T_OPTIONoption
; T_STR_LIST *str_list_val_return
;
TutOptionGetType return the type of the option
TutOptionGetVerifyFunc retrieve the verify function
T_BOOL TutOptionGetVerifyFunc(option
,verify_func_return
) T_OPTIONoption
; T_OPTION_VERIFY_FUNC*verify_func_return
;
TutOptionLegValAdd add a legal value to an enumerated option
TutOptionLookup look up an option by name
TutOptionNamedLookup look up a named option by name
TutOptionSetBool set the value of a boolean option
TutOptionSetEnum set the value of an enumerated option
TutOptionSetEnumList set the value of an enumerated list option
TutOptionSetNum set the value of a numeric option
TutOptionSetReadOnly set whether or not an option is read only
TutOptionSetRequired set whether or not an option is required
TutOptionSetStr set the value of a string option
TutOptionSetStrList set the value of a string list option
TutOptionSetUnknown set the value of the option to UNKNOWN
TutOptionSetVerifyFunc create a function to verify that the option’s value is acceptable
T_BOOL TutOptionSetVerifyFunc(option
,verify_func
,arg
) T_OPTIONoption
; T_OPTION_VERIFY_FUNCverify_func
; T_PTRarg
;
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |