home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xtmovewidget.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  3.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XtConfigureWidget(3Xt)       XT FUNCTIONS       XtConfigureWidget(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtConfigureWidget, XtMoveWidget, XtResizeWidget - move and
  9.        resize widgets
  10.  
  11. SSYYNNTTAAXX
  12.        void XtConfigureWidget(_w, _x, _y, _w_i_d_t_h, _h_e_i_g_h_t, _b_o_r_-
  13.        _d_e_r___w_i_d_t_h)
  14.          Widget _w;
  15.          Position _x;
  16.          Position _y;
  17.          Dimension _w_i_d_t_h;
  18.          Dimension _h_e_i_g_h_t;
  19.          Dimension _b_o_r_d_e_r___w_i_d_t_h;
  20.  
  21.        void XtMoveWidget(_w, _x, _y)
  22.          Widget _w;
  23.          Position _x;
  24.          Position _y;
  25.  
  26.        void XtResizeWidget(_w, _w_i_d_t_h, _h_e_i_g_h_t, _b_o_r_d_e_r___w_i_d_t_h)
  27.          Widget _w;
  28.          Dimension _w_i_d_t_h;
  29.          Dimension _h_e_i_g_h_t;
  30.          Dimension _b_o_r_d_e_r___w_i_d_t_h;
  31.  
  32.        void XtResizeWindow(_w)
  33.          Widget _w;
  34.  
  35. AARRGGUUMMEENNTTSS
  36.        _w_i_d_t_h
  37.        _h_e_i_g_h_t
  38.        _b_o_r_d_e_r___w_i_d_t_h
  39.          Specify the new widget size.
  40.  
  41.        _w     Specifies the widget.
  42.  
  43.        _x
  44.        _y     Specify the new widget x and y coordinates.
  45.  
  46. DDEESSCCRRIIPPTTIIOONN
  47.        The _X_t_C_o_n_f_i_g_u_r_e_W_i_d_g_e_t function returns immediately if the
  48.        specified geometry fields are the same as the old values.
  49.        Otherwise, _X_t_C_o_n_f_i_g_u_r_e_W_i_d_g_e_t writes the new x, y, width,
  50.        height, and border_width values into the widget and, if
  51.        the widget is realized, makes an Xlib _X_C_o_n_f_i_g_u_r_e_W_i_n_d_o_w
  52.        call on the widget's window.
  53.  
  54.        If either the new width or height is different from its
  55.        old value, _X_t_C_o_n_f_i_g_u_r_e_W_i_d_g_e_t calls the widget's resize
  56.        procedure to notify it of the size change; otherwise, it
  57.        simply returns.
  58.  
  59.        The _X_t_M_o_v_e_W_i_d_g_e_t function returns immediately if the spec-
  60.        ified geometry fields are the same as the old values.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtConfigureWidget(3Xt)       XT FUNCTIONS       XtConfigureWidget(3Xt)
  71.  
  72.  
  73.        Otherwise, _X_t_M_o_v_e_W_i_d_g_e_t writes the new x and y values into
  74.        the widget and, if the widget is realized, issues an Xlib
  75.        _X_M_o_v_e_W_i_n_d_o_w call on the widget's window.
  76.  
  77.        The _X_t_R_e_s_i_z_e_W_i_d_g_e_t function returns immediately if the
  78.        specified geometry fields are the same as the old values.
  79.        Otherwise, _X_t_R_e_s_i_z_e_W_i_d_g_e_t writes the new width, height,
  80.        and border_width values into the widget and, if the widget
  81.        is realized, issues an _X_C_o_n_f_i_g_u_r_e_W_i_n_d_o_w call on the wid-
  82.        get's window.
  83.  
  84.        If the new width or height are different from the old val-
  85.        ues, _X_t_R_e_s_i_z_e_W_i_d_g_e_t calls the widget's resize procedure to
  86.        notify it of the size change.
  87.  
  88.        The _X_t_R_e_s_i_z_e_W_i_n_d_o_w function calls the _X_C_o_n_f_i_g_u_r_e_W_i_n_d_o_w
  89.        Xlib function to make the window of the specified widget
  90.        match its width, height, and border width.  This request
  91.        is done unconditionally because there is no way to tell if
  92.        these values match the current values.  Note that the wid-
  93.        get's resize procedure is not called.
  94.  
  95.        There are very few times to use _X_t_R_e_s_i_z_e_W_i_n_d_o_w; instead,
  96.        you should use _X_t_R_e_s_i_z_e_W_i_d_g_e_t.
  97.  
  98. SSEEEE AALLSSOO
  99.        XtMakeGeometryRequest(3Xt), XtQueryGeometry(3Xt)
  100.        _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _- _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  101.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.