Tk_Justify Tk_GetJustify(interp, string, justifyPtr)
char * Tk_NameOfJustify(justify)
Tcl_Interp *interp
(in) char *string
(in) int *justifyPtr
(out) Tk_Justify justify
(in) Tk_GetJustify places in *justifyPtr the justify value corresponding to string. This value will be one of the following:
Under normal circumstances the return value is TCL_OK and interp is unused. If string doesn't contain a valid justification style or an abbreviation of one of these names, then an error message is stored in interp->result, TCL_ERROR is returned, and *justifyPtr is unmodified.
Tk_NameOfJustify is the logical inverse of Tk_GetJustify. Given a justify value it returns a statically-allocated string corresponding to justify. If justify isn't a legal justify value, then ``unknown justification style'' is returned.