Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Objects.ListBoxRow
Description
No description available in the introspection data.
Synopsis
- newtype ListBoxRow = ListBoxRow (ManagedPtr ListBoxRow)
- class (GObject o, IsDescendantOf ListBoxRow o) => IsListBoxRow o
- toListBoxRow :: (MonadIO m, IsListBoxRow o) => o -> m ListBoxRow
- listBoxRowChanged :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m ()
- listBoxRowGetActivatable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- listBoxRowGetHeader :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m (Maybe Widget)
- listBoxRowGetIndex :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Int32
- listBoxRowGetSelectable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- listBoxRowIsSelected :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> m Bool
- listBoxRowNew :: (HasCallStack, MonadIO m) => m ListBoxRow
- listBoxRowSetActivatable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> Bool -> m ()
- listBoxRowSetHeader :: (HasCallStack, MonadIO m, IsListBoxRow a, IsWidget b) => a -> Maybe b -> m ()
- listBoxRowSetSelectable :: (HasCallStack, MonadIO m, IsListBoxRow a) => a -> Bool -> m ()
- constructListBoxRowActivatable :: (IsListBoxRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> m Bool
- setListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m ()
- constructListBoxRowSelectable :: (IsListBoxRow o, MonadIO m) => Bool -> m (GValueConstruct o)
- getListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> m Bool
- setListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m ()
- type ListBoxRowActivateCallback = IO ()
- afterListBoxRowActivate :: (IsListBoxRow a, MonadIO m) => a -> ((?self :: a) => ListBoxRowActivateCallback) -> m SignalHandlerId
- onListBoxRowActivate :: (IsListBoxRow a, MonadIO m) => a -> ((?self :: a) => ListBoxRowActivateCallback) -> m SignalHandlerId
Exported types
newtype ListBoxRow Source #
Memory-managed wrapper type.
Constructors
ListBoxRow (ManagedPtr ListBoxRow) |
Instances
Eq ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow | |
GObject ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow | |
ManagedPtrNewtype ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow Methods | |
TypedObject ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow | |
HasParentTypes ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow | |
IsGValue (Maybe ListBoxRow) Source # | Convert |
Defined in GI.Gtk.Objects.ListBoxRow Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ListBoxRow -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ListBoxRow) # | |
type ParentTypes ListBoxRow Source # | |
Defined in GI.Gtk.Objects.ListBoxRow type ParentTypes ListBoxRow = '[Bin, Container, Widget, Object, ImplementorIface, Actionable, Buildable] |
class (GObject o, IsDescendantOf ListBoxRow o) => IsListBoxRow o Source #
Type class for types which can be safely cast to ListBoxRow
, for instance with toListBoxRow
.
Instances
(GObject o, IsDescendantOf ListBoxRow o) => IsListBoxRow o Source # | |
Defined in GI.Gtk.Objects.ListBoxRow |
toListBoxRow :: (MonadIO m, IsListBoxRow o) => o -> m ListBoxRow Source #
Cast to ListBoxRow
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, changed, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, destroy, destroyed, deviceIsShadowed, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSelected, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getActionName, getActionTargetValue, getActivatable, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHeader, getHexpand, getHexpandSet, getIndex, getInternalChild, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSelectable, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setActionName, setActionTargetValue, setActivatable, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDetailedActionName, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHeader, setHexpand, setHexpandSet, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setSelectable, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
changed
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m () |
Marks row
as changed, causing any state that depends on this
to be updated. This affects sorting, filtering and headers.
Note that calls to this method must be in sync with the data
used for the row functions. For instance, if the list is
mirroring some external data set, and *two* rows changed in the
external data set then when you call listBoxRowChanged
on the first row the sort function must only read the new data
for the first of the two changed rows, otherwise the resorting
of the rows will be wrong.
This generally means that if you don’t fully control the data
model you have to duplicate the data that affects the listbox
row functions into the row widgets themselves. Another alternative
is to call listBoxInvalidateSort
on any model change,
but that is more expensive.
Since: 3.10
getActivatable
listBoxRowGetActivatable Source #
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the ListBoxRow:activatable property for this row.
Since: 3.14
getHeader
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the current header, or |
Returns the current header of the row
. This can be used
in a ListBoxUpdateHeaderFunc
to see if there is a header
set already, and if so to update the state of it.
Since: 3.10
getIndex
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Int32 | Returns: the index of the |
Gets the current index of the row
in its ListBox
container.
Since: 3.10
getSelectable
listBoxRowGetSelectable Source #
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Gets the value of the ListBoxRow:selectable property for this row.
Since: 3.14
isSelected
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the child is currently selected in its
ListBox
container.
Since: 3.14
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m ListBoxRow | Returns: a new |
Creates a new ListBoxRow
, to be used as a child of a ListBox
.
Since: 3.10
setActivatable
listBoxRowSetActivatable Source #
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Set the ListBoxRow:activatable property for this row.
Since: 3.14
setHeader
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the current header of the row
. This is only allowed to be called
from a ListBoxUpdateHeaderFunc
. It will replace any existing
header in the row, and be shown in front of the row in the listbox.
Since: 3.10
setSelectable
listBoxRowSetSelectable Source #
Arguments
:: (HasCallStack, MonadIO m, IsListBoxRow a) | |
=> a |
|
-> Bool |
|
-> m () |
Set the ListBoxRow:selectable property for this row.
Since: 3.14
Properties
activatable
The property determines whether the ListBox::rowActivated signal will be emitted for this row.
Since: 3.14
constructListBoxRowActivatable :: (IsListBoxRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “activatable
” property. This is rarely needed directly, but it is used by new
.
getListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> m Bool Source #
Get the value of the “activatable
” property.
When overloading is enabled, this is equivalent to
get
listBoxRow #activatable
setListBoxRowActivatable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m () Source #
Set the value of the “activatable
” property.
When overloading is enabled, this is equivalent to
set
listBoxRow [ #activatable:=
value ]
selectable
The property determines whether this row can be selected.
Since: 3.14
constructListBoxRowSelectable :: (IsListBoxRow o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “selectable
” property. This is rarely needed directly, but it is used by new
.
getListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> m Bool Source #
Get the value of the “selectable
” property.
When overloading is enabled, this is equivalent to
get
listBoxRow #selectable
setListBoxRowSelectable :: (MonadIO m, IsListBoxRow o) => o -> Bool -> m () Source #
Set the value of the “selectable
” property.
When overloading is enabled, this is equivalent to
set
listBoxRow [ #selectable:=
value ]
Signals
activate
type ListBoxRowActivateCallback = IO () Source #
This is a keybinding signal, which will cause this row to be activated.
If you want to be notified when the user activates a row (by key or not),
use the ListBox::rowActivated signal on the row’s parent ListBox
.
Since: 3.10
afterListBoxRowActivate :: (IsListBoxRow a, MonadIO m) => a -> ((?self :: a) => ListBoxRowActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
listBoxRow #activate callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onListBoxRowActivate :: (IsListBoxRow a, MonadIO m) => a -> ((?self :: a) => ListBoxRowActivateCallback) -> m SignalHandlerId Source #
Connect a signal handler for the activate signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
listBoxRow #activate callback