Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype ToolButton = ToolButton (ForeignPtr ToolButton)
- class GObject o => ToolButtonK o
- toToolButton :: ToolButtonK o => o -> IO ToolButton
- noToolButton :: Maybe ToolButton
- data ToolButtonGetIconNameMethodInfo
- toolButtonGetIconName :: (MonadIO m, ToolButtonK a) => a -> m Text
- data ToolButtonGetIconWidgetMethodInfo
- toolButtonGetIconWidget :: (MonadIO m, ToolButtonK a) => a -> m Widget
- data ToolButtonGetLabelMethodInfo
- toolButtonGetLabel :: (MonadIO m, ToolButtonK a) => a -> m Text
- data ToolButtonGetLabelWidgetMethodInfo
- toolButtonGetLabelWidget :: (MonadIO m, ToolButtonK a) => a -> m Widget
- data ToolButtonGetStockIdMethodInfo
- toolButtonGetStockId :: (MonadIO m, ToolButtonK a) => a -> m Text
- data ToolButtonGetUseUnderlineMethodInfo
- toolButtonGetUseUnderline :: (MonadIO m, ToolButtonK a) => a -> m Bool
- toolButtonNew :: (MonadIO m, WidgetK a) => Maybe a -> Maybe Text -> m ToolButton
- toolButtonNewFromStock :: MonadIO m => Text -> m ToolButton
- data ToolButtonSetIconNameMethodInfo
- toolButtonSetIconName :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m ()
- data ToolButtonSetIconWidgetMethodInfo
- toolButtonSetIconWidget :: (MonadIO m, ToolButtonK a, WidgetK b) => a -> Maybe b -> m ()
- data ToolButtonSetLabelMethodInfo
- toolButtonSetLabel :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m ()
- data ToolButtonSetLabelWidgetMethodInfo
- toolButtonSetLabelWidget :: (MonadIO m, ToolButtonK a, WidgetK b) => a -> Maybe b -> m ()
- data ToolButtonSetStockIdMethodInfo
- toolButtonSetStockId :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m ()
- data ToolButtonSetUseUnderlineMethodInfo
- toolButtonSetUseUnderline :: (MonadIO m, ToolButtonK a) => a -> Bool -> m ()
- data ToolButtonIconNamePropertyInfo
- clearToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> m ()
- constructToolButtonIconName :: Text -> IO ([Char], GValue)
- getToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> m Text
- setToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> Text -> m ()
- toolButtonIconName :: AttrLabelProxy "iconName"
- data ToolButtonIconWidgetPropertyInfo
- clearToolButtonIconWidget :: (MonadIO m, ToolButtonK o) => o -> m ()
- constructToolButtonIconWidget :: WidgetK a => a -> IO ([Char], GValue)
- getToolButtonIconWidget :: (MonadIO m, ToolButtonK o) => o -> m Widget
- setToolButtonIconWidget :: (MonadIO m, ToolButtonK o, WidgetK a) => o -> a -> m ()
- toolButtonIconWidget :: AttrLabelProxy "iconWidget"
- data ToolButtonLabelPropertyInfo
- clearToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> m ()
- constructToolButtonLabel :: Text -> IO ([Char], GValue)
- getToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> m Text
- setToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> Text -> m ()
- toolButtonLabel :: AttrLabelProxy "label"
- data ToolButtonLabelWidgetPropertyInfo
- clearToolButtonLabelWidget :: (MonadIO m, ToolButtonK o) => o -> m ()
- constructToolButtonLabelWidget :: WidgetK a => a -> IO ([Char], GValue)
- getToolButtonLabelWidget :: (MonadIO m, ToolButtonK o) => o -> m Widget
- setToolButtonLabelWidget :: (MonadIO m, ToolButtonK o, WidgetK a) => o -> a -> m ()
- toolButtonLabelWidget :: AttrLabelProxy "labelWidget"
- data ToolButtonStockIdPropertyInfo
- clearToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> m ()
- constructToolButtonStockId :: Text -> IO ([Char], GValue)
- getToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> m Text
- setToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> Text -> m ()
- toolButtonStockId :: AttrLabelProxy "stockId"
- data ToolButtonUseUnderlinePropertyInfo
- constructToolButtonUseUnderline :: Bool -> IO ([Char], GValue)
- getToolButtonUseUnderline :: (MonadIO m, ToolButtonK o) => o -> m Bool
- setToolButtonUseUnderline :: (MonadIO m, ToolButtonK o) => o -> Bool -> m ()
- toolButtonUseUnderline :: AttrLabelProxy "useUnderline"
- type ToolButtonClickedCallback = IO ()
- type ToolButtonClickedCallbackC = Ptr () -> Ptr () -> IO ()
- data ToolButtonClickedSignalInfo
- afterToolButtonClicked :: (GObject a, MonadIO m) => a -> ToolButtonClickedCallback -> m SignalHandlerId
- mkToolButtonClickedCallback :: ToolButtonClickedCallbackC -> IO (FunPtr ToolButtonClickedCallbackC)
- noToolButtonClickedCallback :: Maybe ToolButtonClickedCallback
- onToolButtonClicked :: (GObject a, MonadIO m) => a -> ToolButtonClickedCallback -> m SignalHandlerId
- toolButtonClickedCallbackWrapper :: ToolButtonClickedCallback -> Ptr () -> Ptr () -> IO ()
- toolButtonClickedClosure :: ToolButtonClickedCallback -> IO Closure
Exported types
newtype ToolButton Source
GObject ToolButton | |
((~) * info (ResolveToolButtonMethod t ToolButton), MethodInfo * info ToolButton p) => IsLabelProxy t (ToolButton -> p) | |
type ParentTypes ToolButton | |
type AttributeList ToolButton | |
type SignalList ToolButton |
class GObject o => ToolButtonK o Source
(GObject o, IsDescendantOf ToolButton o) => ToolButtonK o |
toToolButton :: ToolButtonK o => o -> IO ToolButton Source
Methods
toolButtonGetIconName
data ToolButtonGetIconNameMethodInfo Source
((~) * signature (m Text), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetIconNameMethodInfo a signature |
toolButtonGetIconName :: (MonadIO m, ToolButtonK a) => a -> m Text Source
toolButtonGetIconWidget
data ToolButtonGetIconWidgetMethodInfo Source
((~) * signature (m Widget), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetIconWidgetMethodInfo a signature |
toolButtonGetIconWidget :: (MonadIO m, ToolButtonK a) => a -> m Widget Source
toolButtonGetLabel
data ToolButtonGetLabelMethodInfo Source
((~) * signature (m Text), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetLabelMethodInfo a signature |
toolButtonGetLabel :: (MonadIO m, ToolButtonK a) => a -> m Text Source
toolButtonGetLabelWidget
data ToolButtonGetLabelWidgetMethodInfo Source
((~) * signature (m Widget), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetLabelWidgetMethodInfo a signature |
toolButtonGetLabelWidget :: (MonadIO m, ToolButtonK a) => a -> m Widget Source
toolButtonGetStockId
data ToolButtonGetStockIdMethodInfo Source
((~) * signature (m Text), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetStockIdMethodInfo a signature |
toolButtonGetStockId :: (MonadIO m, ToolButtonK a) => a -> m Text Source
Deprecated: (Since version 3.10)Use gtk_tool_button_get_icon_name() instead.
toolButtonGetUseUnderline
data ToolButtonGetUseUnderlineMethodInfo Source
((~) * signature (m Bool), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonGetUseUnderlineMethodInfo a signature |
toolButtonGetUseUnderline :: (MonadIO m, ToolButtonK a) => a -> m Bool Source
toolButtonNew
toolButtonNew :: (MonadIO m, WidgetK a) => Maybe a -> Maybe Text -> m ToolButton Source
toolButtonNewFromStock
toolButtonNewFromStock :: MonadIO m => Text -> m ToolButton Source
Deprecated: (Since version 3.10)Use gtk_tool_button_new() together withgtk_image_new_from_icon_name() instead.
toolButtonSetIconName
data ToolButtonSetIconNameMethodInfo Source
((~) * signature (Maybe Text -> m ()), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonSetIconNameMethodInfo a signature |
toolButtonSetIconName :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m () Source
toolButtonSetIconWidget
data ToolButtonSetIconWidgetMethodInfo Source
((~) * signature (Maybe b -> m ()), MonadIO m, ToolButtonK a, WidgetK b) => MethodInfo * ToolButtonSetIconWidgetMethodInfo a signature |
toolButtonSetIconWidget :: (MonadIO m, ToolButtonK a, WidgetK b) => a -> Maybe b -> m () Source
toolButtonSetLabel
data ToolButtonSetLabelMethodInfo Source
((~) * signature (Maybe Text -> m ()), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonSetLabelMethodInfo a signature |
toolButtonSetLabel :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m () Source
toolButtonSetLabelWidget
data ToolButtonSetLabelWidgetMethodInfo Source
((~) * signature (Maybe b -> m ()), MonadIO m, ToolButtonK a, WidgetK b) => MethodInfo * ToolButtonSetLabelWidgetMethodInfo a signature |
toolButtonSetLabelWidget :: (MonadIO m, ToolButtonK a, WidgetK b) => a -> Maybe b -> m () Source
toolButtonSetStockId
data ToolButtonSetStockIdMethodInfo Source
((~) * signature (Maybe Text -> m ()), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonSetStockIdMethodInfo a signature |
toolButtonSetStockId :: (MonadIO m, ToolButtonK a) => a -> Maybe Text -> m () Source
Deprecated: (Since version 3.10)Use gtk_tool_button_set_icon_name() instead.
toolButtonSetUseUnderline
data ToolButtonSetUseUnderlineMethodInfo Source
((~) * signature (Bool -> m ()), MonadIO m, ToolButtonK a) => MethodInfo * ToolButtonSetUseUnderlineMethodInfo a signature |
toolButtonSetUseUnderline :: (MonadIO m, ToolButtonK a) => a -> Bool -> m () Source
Properties
IconName
data ToolButtonIconNamePropertyInfo Source
AttrInfo ToolButtonIconNamePropertyInfo | |
type AttrLabel ToolButtonIconNamePropertyInfo = "icon-name" | |
type AttrGetType ToolButtonIconNamePropertyInfo = Text | |
type AttrBaseTypeConstraint ToolButtonIconNamePropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonIconNamePropertyInfo = * ~ Text | |
type AttrAllowedOps ToolButtonIconNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> m () Source
getToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> m Text Source
setToolButtonIconName :: (MonadIO m, ToolButtonK o) => o -> Text -> m () Source
toolButtonIconName :: AttrLabelProxy "iconName" Source
IconWidget
data ToolButtonIconWidgetPropertyInfo Source
AttrInfo ToolButtonIconWidgetPropertyInfo | |
type AttrLabel ToolButtonIconWidgetPropertyInfo = "icon-widget" | |
type AttrGetType ToolButtonIconWidgetPropertyInfo = Widget | |
type AttrBaseTypeConstraint ToolButtonIconWidgetPropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonIconWidgetPropertyInfo = WidgetK | |
type AttrAllowedOps ToolButtonIconWidgetPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearToolButtonIconWidget :: (MonadIO m, ToolButtonK o) => o -> m () Source
getToolButtonIconWidget :: (MonadIO m, ToolButtonK o) => o -> m Widget Source
setToolButtonIconWidget :: (MonadIO m, ToolButtonK o, WidgetK a) => o -> a -> m () Source
toolButtonIconWidget :: AttrLabelProxy "iconWidget" Source
Label
data ToolButtonLabelPropertyInfo Source
AttrInfo ToolButtonLabelPropertyInfo | |
type AttrLabel ToolButtonLabelPropertyInfo = "label" | |
type AttrGetType ToolButtonLabelPropertyInfo = Text | |
type AttrBaseTypeConstraint ToolButtonLabelPropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonLabelPropertyInfo = * ~ Text | |
type AttrAllowedOps ToolButtonLabelPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> m () Source
getToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> m Text Source
setToolButtonLabel :: (MonadIO m, ToolButtonK o) => o -> Text -> m () Source
toolButtonLabel :: AttrLabelProxy "label" Source
LabelWidget
data ToolButtonLabelWidgetPropertyInfo Source
AttrInfo ToolButtonLabelWidgetPropertyInfo | |
type AttrLabel ToolButtonLabelWidgetPropertyInfo = "label-widget" | |
type AttrGetType ToolButtonLabelWidgetPropertyInfo = Widget | |
type AttrBaseTypeConstraint ToolButtonLabelWidgetPropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonLabelWidgetPropertyInfo = WidgetK | |
type AttrAllowedOps ToolButtonLabelWidgetPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearToolButtonLabelWidget :: (MonadIO m, ToolButtonK o) => o -> m () Source
getToolButtonLabelWidget :: (MonadIO m, ToolButtonK o) => o -> m Widget Source
setToolButtonLabelWidget :: (MonadIO m, ToolButtonK o, WidgetK a) => o -> a -> m () Source
toolButtonLabelWidget :: AttrLabelProxy "labelWidget" Source
StockId
data ToolButtonStockIdPropertyInfo Source
AttrInfo ToolButtonStockIdPropertyInfo | |
type AttrLabel ToolButtonStockIdPropertyInfo = "stock-id" | |
type AttrGetType ToolButtonStockIdPropertyInfo = Text | |
type AttrBaseTypeConstraint ToolButtonStockIdPropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonStockIdPropertyInfo = * ~ Text | |
type AttrAllowedOps ToolButtonStockIdPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> m () Source
getToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> m Text Source
setToolButtonStockId :: (MonadIO m, ToolButtonK o) => o -> Text -> m () Source
toolButtonStockId :: AttrLabelProxy "stockId" Source
UseUnderline
data ToolButtonUseUnderlinePropertyInfo Source
AttrInfo ToolButtonUseUnderlinePropertyInfo | |
type AttrLabel ToolButtonUseUnderlinePropertyInfo = "use-underline" | |
type AttrGetType ToolButtonUseUnderlinePropertyInfo = Bool | |
type AttrBaseTypeConstraint ToolButtonUseUnderlinePropertyInfo = ToolButtonK | |
type AttrSetTypeConstraint ToolButtonUseUnderlinePropertyInfo = * ~ Bool | |
type AttrAllowedOps ToolButtonUseUnderlinePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getToolButtonUseUnderline :: (MonadIO m, ToolButtonK o) => o -> m Bool Source
setToolButtonUseUnderline :: (MonadIO m, ToolButtonK o) => o -> Bool -> m () Source
toolButtonUseUnderline :: AttrLabelProxy "useUnderline" Source
Signals
Clicked
type ToolButtonClickedCallback = IO () Source
type ToolButtonClickedCallbackC = Ptr () -> Ptr () -> IO () Source
afterToolButtonClicked :: (GObject a, MonadIO m) => a -> ToolButtonClickedCallback -> m SignalHandlerId Source
mkToolButtonClickedCallback :: ToolButtonClickedCallbackC -> IO (FunPtr ToolButtonClickedCallbackC) Source
onToolButtonClicked :: (GObject a, MonadIO m) => a -> ToolButtonClickedCallback -> m SignalHandlerId Source
toolButtonClickedCallbackWrapper :: ToolButtonClickedCallback -> Ptr () -> Ptr () -> IO () Source