gi-gtk-3.0.9: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.Switch

Contents

Description

 

Synopsis

Exported types

newtype Switch Source #

Constructors

Switch (ManagedPtr Switch) 

Instances

GObject Switch Source # 
IsObject Switch Source # 
IsWidget Switch Source # 
IsBuildable Switch Source # 
IsImplementorIface Switch Source # 
IsActivatable Switch Source # 
IsActionable Switch Source # 
IsSwitch Switch Source # 
((~) * info (ResolveSwitchMethod t Switch), MethodInfo * info Switch p) => IsLabel t (Switch -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Switch -> p #

((~) * info (ResolveSwitchMethod t Switch), MethodInfo * info Switch p) => IsLabelProxy t (Switch -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Switch -> p

HasAttributeList * Switch Source # 
type SignalList Switch Source # 
type SignalList Switch
type AttributeList Switch Source # 
type AttributeList Switch

class GObject o => IsSwitch o Source #

Instances

(GObject a, UnknownAncestorError Constraint Switch a) => IsSwitch a Source # 
IsSwitch Switch Source # 

Methods

getActive

data SwitchGetActiveMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsSwitch a) => MethodInfo * SwitchGetActiveMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy SwitchGetActiveMethodInfo a -> signature -> s

getState

data SwitchGetStateMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsSwitch a) => MethodInfo * SwitchGetStateMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy SwitchGetStateMethodInfo a -> signature -> s

new

setActive

data SwitchSetActiveMethodInfo Source #

Instances

((~) * signature (Bool -> m ()), MonadIO m, IsSwitch a) => MethodInfo * SwitchSetActiveMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy SwitchSetActiveMethodInfo a -> signature -> s

switchSetActive :: (MonadIO m, IsSwitch a) => a -> Bool -> m () Source #

setState

data SwitchSetStateMethodInfo Source #

Instances

((~) * signature (Bool -> m ()), MonadIO m, IsSwitch a) => MethodInfo * SwitchSetStateMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy SwitchSetStateMethodInfo a -> signature -> s

switchSetState :: (MonadIO m, IsSwitch a) => a -> Bool -> m () Source #

Properties

active

data SwitchActivePropertyInfo Source #

Instances

AttrInfo SwitchActivePropertyInfo Source # 

Associated Types

type AttrAllowedOps SwitchActivePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint SwitchActivePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint SwitchActivePropertyInfo :: * -> Constraint

type AttrGetType SwitchActivePropertyInfo :: *

type AttrLabel SwitchActivePropertyInfo :: Symbol

type AttrOrigin SwitchActivePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint SwitchActivePropertyInfo o => Proxy * SwitchActivePropertyInfo -> o -> IO (AttrGetType SwitchActivePropertyInfo)

attrSet :: (AttrBaseTypeConstraint SwitchActivePropertyInfo o, AttrSetTypeConstraint SwitchActivePropertyInfo b) => Proxy * SwitchActivePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint SwitchActivePropertyInfo o => Proxy * SwitchActivePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint SwitchActivePropertyInfo o, AttrSetTypeConstraint SwitchActivePropertyInfo b) => Proxy * SwitchActivePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint SwitchActivePropertyInfo Source # 
type AttrSetTypeConstraint SwitchActivePropertyInfo = * ~ Bool
type AttrOrigin SwitchActivePropertyInfo Source # 
type AttrLabel SwitchActivePropertyInfo Source # 
type AttrLabel SwitchActivePropertyInfo = "active"
type AttrGetType SwitchActivePropertyInfo Source # 
type AttrGetType SwitchActivePropertyInfo = Bool
type AttrBaseTypeConstraint SwitchActivePropertyInfo Source # 
type AttrBaseTypeConstraint SwitchActivePropertyInfo = IsSwitch
type AttrAllowedOps SwitchActivePropertyInfo Source # 
type AttrAllowedOps SwitchActivePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)))

constructSwitchActive :: IsSwitch o => Bool -> IO (GValueConstruct o) Source #

setSwitchActive :: (MonadIO m, IsSwitch o) => o -> Bool -> m () Source #

switchActive :: AttrLabelProxy "active" Source #

state

data SwitchStatePropertyInfo Source #

Instances

AttrInfo SwitchStatePropertyInfo Source # 

Associated Types

type AttrAllowedOps SwitchStatePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint SwitchStatePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint SwitchStatePropertyInfo :: * -> Constraint

type AttrGetType SwitchStatePropertyInfo :: *

type AttrLabel SwitchStatePropertyInfo :: Symbol

type AttrOrigin SwitchStatePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint SwitchStatePropertyInfo o => Proxy * SwitchStatePropertyInfo -> o -> IO (AttrGetType SwitchStatePropertyInfo)

attrSet :: (AttrBaseTypeConstraint SwitchStatePropertyInfo o, AttrSetTypeConstraint SwitchStatePropertyInfo b) => Proxy * SwitchStatePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint SwitchStatePropertyInfo o => Proxy * SwitchStatePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint SwitchStatePropertyInfo o, AttrSetTypeConstraint SwitchStatePropertyInfo b) => Proxy * SwitchStatePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint SwitchStatePropertyInfo Source # 
type AttrSetTypeConstraint SwitchStatePropertyInfo = * ~ Bool
type AttrOrigin SwitchStatePropertyInfo Source # 
type AttrLabel SwitchStatePropertyInfo Source # 
type AttrLabel SwitchStatePropertyInfo = "state"
type AttrGetType SwitchStatePropertyInfo Source # 
type AttrGetType SwitchStatePropertyInfo = Bool
type AttrBaseTypeConstraint SwitchStatePropertyInfo Source # 
type AttrBaseTypeConstraint SwitchStatePropertyInfo = IsSwitch
type AttrAllowedOps SwitchStatePropertyInfo Source # 
type AttrAllowedOps SwitchStatePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)))

constructSwitchState :: IsSwitch o => Bool -> IO (GValueConstruct o) Source #

setSwitchState :: (MonadIO m, IsSwitch o) => o -> Bool -> m () Source #

switchState :: AttrLabelProxy "state" Source #

Signals

activate

type C_SwitchActivateCallback = Ptr () -> Ptr () -> IO () Source #

data SwitchActivateSignalInfo Source #

Instances

SignalInfo SwitchActivateSignalInfo Source # 

Associated Types

type HaskellCallbackType SwitchActivateSignalInfo :: *

Methods

connectSignal :: GObject o => SignalProxy o SwitchActivateSignalInfo -> o -> HaskellCallbackType SwitchActivateSignalInfo -> SignalConnectMode -> IO SignalHandlerId

type HaskellCallbackType SwitchActivateSignalInfo Source # 

afterSwitchActivate :: (GObject a, MonadIO m) => a -> SwitchActivateCallback -> m SignalHandlerId Source #

onSwitchActivate :: (GObject a, MonadIO m) => a -> SwitchActivateCallback -> m SignalHandlerId Source #

stateSet

data SwitchStateSetSignalInfo Source #

Instances

SignalInfo SwitchStateSetSignalInfo Source # 

Associated Types

type HaskellCallbackType SwitchStateSetSignalInfo :: *

Methods

connectSignal :: GObject o => SignalProxy o SwitchStateSetSignalInfo -> o -> HaskellCallbackType SwitchStateSetSignalInfo -> SignalConnectMode -> IO SignalHandlerId

type HaskellCallbackType SwitchStateSetSignalInfo Source # 

afterSwitchStateSet :: (GObject a, MonadIO m) => a -> SwitchStateSetCallback -> m SignalHandlerId Source #

onSwitchStateSet :: (GObject a, MonadIO m) => a -> SwitchStateSetCallback -> m SignalHandlerId Source #