GtkMenuItem              package:RGtk2              R Documentation

_G_t_k_M_e_n_u_I_t_e_m

_D_e_s_c_r_i_p_t_i_o_n:

     The widget used for item in menus

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gtkMenuItemNew(show = TRUE)'
      'gtkMenuItemNewWithLabel(label, show = TRUE)'
      'gtkMenuItemNewWithMnemonic(label, show = TRUE)'
      'gtkMenuItemSetRightJustified(object, right.justified)'
      'gtkMenuItemSetSubmenu(object, submenu)'
      'gtkMenuItemSetAccelPath(object, accel.path)'
      'gtkMenuItemRemoveSubmenu(object)'
      'gtkMenuItemSelect(object)'
      'gtkMenuItemDeselect(object)'
      'gtkMenuItemActivate(object)'
      'gtkMenuItemToggleSizeRequest(object, requisition)'
      'gtkMenuItemToggleSizeAllocate(object, allocation)'
      'gtkMenuItemGetRightJustified(object)'
      'gtkMenuItemGetSubmenu(object)'
      'gtkMenuItem(label, show = TRUE)'

_H_i_e_r_a_r_c_h_y:

     GObject
        +----GInitiallyUnowned
              +----GtkObject
                    +----GtkWidget
                          +----GtkContainer
                                +----GtkBin
                                      +----GtkItem
                                            +----GtkMenuItem
                                                  +----GtkCheckMenuItem
                                                  +----GtkImageMenuItem

     +----GtkSeparatorMenuItem

     +----GtkTearoffMenuItem 

_I_n_t_e_r_f_a_c_e_s:

     GtkMenuItem implements AtkImplementorIface and  'GtkBuildable'.

_D_e_t_a_i_l_e_d _D_e_s_c_r_i_p_t_i_o_n:

     The 'GtkMenuItem' widget and the derived widgets are the only
     valid childs for menus. Their function is to correctly handle
     highlighting, alignment, events and submenus.

     As it derives from 'GtkBin' it can hold any valid child widget,
     altough only a few are really useful.

_S_t_r_u_c_t_u_r_e_s:


     '_G_t_k_M_e_n_u_I_t_e_m' _undocumented _


_C_o_n_v_e_n_i_e_n_t _C_o_n_s_t_r_u_c_t_i_o_n:

     'gtkMenuItem' is the result of collapsing the constructors of
     'GtkMenuItem' ('gtkMenuItemNew', 'gtkMenuItemNewWithLabel',
     'gtkMenuItemNewWithMnemonic') and accepts a subset of its
     arguments matching the required arguments of one of its delegate
     constructors.

_S_i_g_n_a_l_s:


     '_a_c_t_i_v_a_t_e(_m_e_n_u_i_t_e_m, _u_s_e_r._d_a_t_a)' Emitted when the item is
          activated.

          '_m_e_n_u_i_t_e_m' ['GtkMenuItem'] the object which received the
               signal.

          '_u_s_e_r._d_a_t_a' [R object] user data set when the signal handler
               was connected.


     '_a_c_t_i_v_a_t_e-_i_t_e_m(_m_e_n_u_i_t_e_m, _u_s_e_r._d_a_t_a)' Emitted when the item is
          activated, but also if the menu item has a submenu. For
          normal applications, the relevant signal is "activate".

          '_m_e_n_u_i_t_e_m' ['GtkMenuItem'] the object which received the
               signal.

          '_u_s_e_r._d_a_t_a' [R object] user data set when the signal handler
               was connected.


     '_t_o_g_g_l_e-_s_i_z_e-_a_l_l_o_c_a_t_e(_m_e_n_u_i_t_e_m, _a_r_g_1, _u_s_e_r._d_a_t_a)' _undocumented _

          '_m_e_n_u_i_t_e_m' ['GtkMenuItem'] the object which received the
               signal.

          '_a_r_g_1' [integer] 

          '_u_s_e_r._d_a_t_a' [R object] user data set when the signal handler
               was connected.


     '_t_o_g_g_l_e-_s_i_z_e-_r_e_q_u_e_s_t(_m_e_n_u_i_t_e_m, _a_r_g_1, _u_s_e_r._d_a_t_a)' _undocumented _

          '_m_e_n_u_i_t_e_m' ['GtkMenuItem'] the object which received the
               signal.

          '_a_r_g_1' [R object] 

          '_u_s_e_r._d_a_t_a' [R object] user data set when the signal handler
               was connected.


_P_r_o_p_e_r_t_i_e_s:


     '_s_u_b_m_e_n_u' ['_G_t_k_M_e_n_u' : _R_e_a_d / _W_r_i_t_e] The submenu attached to the
          menu item, or NULL if it has none.  

          Since  2.12


_S_t_y_l_e _P_r_o_p_e_r_t_i_e_s:


     '_a_r_r_o_w-_s_p_a_c_i_n_g' [_i_n_t_e_g_e_r : _R_e_a_d] Space between label and arrow. 
          Allowed values: >= 0  Default value: 10


     '_h_o_r_i_z_o_n_t_a_l-_p_a_d_d_i_n_g' [_i_n_t_e_g_e_r : _R_e_a_d] Padding to left and right of
          the menu item.  Allowed values: >= 0  Default value: 3


     '_s_e_l_e_c_t_e_d-_s_h_a_d_o_w-_t_y_p_e' ['_G_t_k_S_h_a_d_o_w_T_y_p_e' : _R_e_a_d] Shadow type when
          item is selected.  Default value: GTK_SHADOW_NONE


     '_t_o_g_g_l_e-_s_p_a_c_i_n_g' [_i_n_t_e_g_e_r : _R_e_a_d] Space between icon and label. 
          Allowed values: >= 0  Default value: 5


_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuItem.html>

