module Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem (
RadioMenuItem,
RadioMenuItemClass,
castToRadioMenuItem, gTypeRadioMenuItem,
toRadioMenuItem,
radioMenuItemNew,
radioMenuItemNewWithLabel,
radioMenuItemNewWithMnemonic,
radioMenuItemNewFromWidget,
radioMenuItemNewWithLabelFromWidget,
radioMenuItemNewWithMnemonicFromWidget,
radioMenuItemNewJoinGroup,
radioMenuItemNewJoinGroupWithLabel,
radioMenuItemNewJoinGroupWithMnemonic,
) where
import Control.Monad (liftM)
import System.Glib.FFI
import System.Glib.UTFString
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
import Graphics.UI.Gtk.Types
radioMenuItemNew :: IO RadioMenuItem
radioMenuItemNew =
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
gtk_radio_menu_item_new
nullPtr
radioMenuItemNewWithLabel :: GlibString string => string -> IO RadioMenuItem
radioMenuItemNewWithLabel label =
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
withUTFString label $ \labelPtr ->
gtk_radio_menu_item_new_with_label
nullPtr
labelPtr
radioMenuItemNewWithMnemonic :: GlibString string => string -> IO RadioMenuItem
radioMenuItemNewWithMnemonic label =
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
withUTFString label $ \labelPtr ->
gtk_radio_menu_item_new_with_mnemonic
nullPtr
labelPtr
radioMenuItemNewFromWidget ::
RadioMenuItem
-> IO RadioMenuItem
radioMenuItemNewFromWidget groupMember =
(\(RadioMenuItem arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_radio_menu_item_get_group argPtr1) groupMember >>= \groupPtr ->
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
gtk_radio_menu_item_new
groupPtr
radioMenuItemNewWithLabelFromWidget :: GlibString string
=> RadioMenuItem
-> string
-> IO RadioMenuItem
radioMenuItemNewWithLabelFromWidget groupMember label =
(\(RadioMenuItem arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_radio_menu_item_get_group argPtr1) groupMember >>= \groupPtr ->
withUTFString label $ \strPtr ->
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
gtk_radio_menu_item_new_with_label
groupPtr
strPtr
radioMenuItemNewWithMnemonicFromWidget :: GlibString string => RadioMenuItem
-> string
-> IO RadioMenuItem
radioMenuItemNewWithMnemonicFromWidget groupMember label =
(\(RadioMenuItem arg1) -> withForeignPtr arg1 $ \argPtr1 ->gtk_radio_menu_item_get_group argPtr1) groupMember >>= \groupPtr ->
withUTFString label $ \strPtr ->
makeNewObject mkRadioMenuItem $
liftM (castPtr :: Ptr Widget -> Ptr RadioMenuItem) $
gtk_radio_menu_item_new_with_mnemonic
groupPtr
strPtr
radioMenuItemNewJoinGroup = radioMenuItemNewFromWidget
radioMenuItemNewJoinGroupWithLabel :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
radioMenuItemNewJoinGroupWithLabel = radioMenuItemNewWithLabelFromWidget
radioMenuItemNewJoinGroupWithMnemonic :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem
radioMenuItemNewJoinGroupWithMnemonic = radioMenuItemNewWithMnemonicFromWidget
foreign import ccall unsafe "gtk_radio_menu_item_new"
gtk_radio_menu_item_new :: ((Ptr ()) -> (IO (Ptr Widget)))
foreign import ccall unsafe "gtk_radio_menu_item_new_with_label"
gtk_radio_menu_item_new_with_label :: ((Ptr ()) -> ((Ptr CChar) -> (IO (Ptr Widget))))
foreign import ccall unsafe "gtk_radio_menu_item_new_with_mnemonic"
gtk_radio_menu_item_new_with_mnemonic :: ((Ptr ()) -> ((Ptr CChar) -> (IO (Ptr Widget))))
foreign import ccall unsafe "gtk_radio_menu_item_get_group"
gtk_radio_menu_item_get_group :: ((Ptr RadioMenuItem) -> (IO (Ptr ())))