home *** CD-ROM | disk | FTP | other *** search
Wrap
TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333)))) _________________________________________________________________ NNNNAAAAMMMMEEEE Tk_GetAnchor, Tk_NameOfAnchor - translate between strings and anchor positions SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>> Tk_Anchor TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((_i_n_t_e_r_p, _s_t_r_i_n_g, _a_n_c_h_o_r_P_t_r)))) char * TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr((((_a_n_c_h_o_r)))) AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS Tcl_Interp *_i_n_t_e_r_p (in) Interpreter to use for error reporting. char *_s_t_r_i_n_g (in) String containing name of anchor point: one of ``n'', ``ne'', ``e'', ``se'', ``s'', ``sw'', ``w'', ``nw'', or ``center''. int *_a_n_c_h_o_r_P_t_r (out) Pointer to location in which to store anchor position corresponding to _s_t_r_i_n_g. Tk_Anchor _a_n_c_h_o_r (in) Anchor position, e.g. TTTTCCCCLLLL____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR. _________________________________________________________________ DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr places in *_a_n_c_h_o_r_P_t_r an anchor position (enumerated type TTTTkkkk____AAAAnnnncccchhhhoooorrrr) corresponding to _s_t_r_i_n_g, which will be one of TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNEEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____EEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSEEEE, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSS, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____SSSSWWWW, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____WWWW, TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNNWWWW, or TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____CCCCEEEENNNNTTTTEEEERRRR. Anchor positions are typically used for indicating a point on an object that will be used to position that object, e.g. TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN means position the top center point of the object at a particular place. Under normal circumstances the return value is TTTTCCCCLLLL____OOOOKKKK and _i_n_t_e_r_p is unused. If _s_t_r_i_n_g doesn't contain a valid anchor position or an abbreviation of one of these names, then an error message is stored in _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_a_n_c_h_o_r_P_t_r is unmodified. Page 1 (printed 7/23/95) TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr((((3333)))) TTTTkkkk____NNNNaaaammmmeeeeOOOOffffAAAAnnnncccchhhhoooorrrr is the logical inverse of TTTTkkkk____GGGGeeeettttAAAAnnnncccchhhhoooorrrr. Given an anchor position such as TTTTKKKK____AAAANNNNCCCCHHHHOOOORRRR____NNNN it returns a statically-allocated string corresponding to _a_n_c_h_o_r. If _a_n_c_h_o_r isn't a legal anchor value, then ``unknown anchor position'' is returned. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS anchor position Page 2 (printed 7/23/95)