home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss((((3333TTTTkkkk)))) TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss((((3333TTTTkkkk))))
-
-
-
- NNNNAAAAMMMMEEEE
- Tk_GetPixels, Tk_GetScreenMM - translate between strings and screen units
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
-
- int
- TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss((((_i_n_t_e_r_p, _t_k_w_i_n, _s_t_r_i_n_g, _i_n_t_P_t_r))))
-
- int
- TTTTkkkk____GGGGeeeettttSSSSccccrrrreeeeeeeennnnMMMMMMMM((((_i_n_t_e_r_p, _t_k_w_i_n, _s_t_r_i_n_g, _d_o_u_b_l_e_P_t_r))))
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- Tcl_Interp *_i_n_t_e_r_p (in) Interpreter to use for error reporting.
-
- Tk_Window _t_k_w_i_n (in) Window whose screen geometry determines
- the conversion between absolute units
- and pixels.
-
- char *_s_t_r_i_n_g (in) String that specifies a distance on the
- screen.
-
- int *_i_n_t_P_t_r (out) Pointer to location in which to store
- converted distance in pixels.
-
- double *_d_o_u_b_l_e_P_t_r (out) Pointer to location in which to store
- converted distance in millimeters.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These two procedures take as argument a specification of distance on the
- screen (_s_t_r_i_n_g) and compute the corresponding distance either in integer
- pixels or floating-point millimeters. In either case, _s_t_r_i_n_g specifies a
- screen distance as a floating-point number followed by one of the
- following characters that indicates units:
-
- <none>
- The number specifies a distance in pixels.
-
- cccc The number specifies a distance in centimeters on the screen.
-
- iiii The number specifies a distance in inches on the screen.
-
- mmmm The number specifies a distance in millimeters on the screen.
-
- pppp The number specifies a distance in printer's points (1/72 inch) on
- the screen.
-
- TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss converts _s_t_r_i_n_g to the nearest even number of pixels and
- stores that value at *_i_n_t_P_t_r. TTTTkkkk____GGGGeeeettttSSSSccccrrrreeeeeeeennnnMMMMMMMM converts _s_t_r_i_n_g to
- millimeters and stores the double-precision floating-point result at
- *_d_o_u_b_l_e_P_t_r.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss((((3333TTTTkkkk)))) TTTTkkkk____GGGGeeeettttPPPPiiiixxxxeeeellllssss((((3333TTTTkkkk))))
-
-
-
- Both procedures return TTTTCCCCLLLL____OOOOKKKK under normal circumstances. If an error
- occurs (e.g. _s_t_r_i_n_g contains a number followed by a character that isn't
- one of the ones above) then TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned and an error message is
- left in _i_n_t_e_r_p->_r_e_s_u_l_t.
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
- centimeters, convert, inches, millimeters, pixels, points, screen units
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-