mrg_ui/src/mtktextbuffer.cxx
//============================================================================
// Low-level GUI helper, returns whether the Tk tag exists in this
// textBuffer's Tk widget.
//
Low-level GUI helper, returns whether the Tk tag exists in this
textBuffer's Tk widget.
Low - level GUI helper returns whether the Tk tag exists in this textBuffer ' s Tk widget .
boolean textBuffer::tagAlive(char *tag_name)
{
    Tcl_Interp *itrp = framework.interp;
    int exists;
    if (framework.Tcl("tagExists %s %s", tk_name.str(), tag_name) == TCL_OK
	 && Tcl_GetBoolean(itrp, itrp->result, &exists) == TCL_OK) {
    }
    else {
	exists = 0;
    }
    return !!exists;
}
boolean textBuffer :: tagAlive ( char * tag_name ) { Tcl_Interp * itrp = framework . interp ; int exists ; if ( framework . Tcl ( " " , tk_name . str ( ) , tag_name ) == TCL_OK && Tcl_GetBoolean ( itrp , itrp -> result , & exists ) == TCL_OK ) { } else { exists = 0 ; } return ! ! exists ; }
Low-level GUI helper, returns whether the Tk tag exists in this
textBuffer's Tk widget.
Low - level GUI helper returns whether the Tk tag exists in this textBuffer ' s Tk widget .
// exists is set properly.