glirc-2.33.1: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.State.Focus

Contents

Description

The client has a primary message window whose contents are determined by a Focus. In order to provide different views of channels the Subfocus breaks down channel focus into different subviews.

Synopsis

Types

data Focus Source #

Currently focused window

Constructors

Unfocused

No network

NetworkFocus !Text

Network

ChannelFocus !Text !Identifier

Network Channel/Nick

Instances
Eq Focus Source # 
Instance details

Defined in Client.State.Focus

Methods

(==) :: Focus -> Focus -> Bool #

(/=) :: Focus -> Focus -> Bool #

Ord Focus Source #

Unfocused first, followed by focuses sorted by network. Within the same network the network focus comes first and then the channels are ordered by channel identifier

Instance details

Defined in Client.State.Focus

Methods

compare :: Focus -> Focus -> Ordering #

(<) :: Focus -> Focus -> Bool #

(<=) :: Focus -> Focus -> Bool #

(>) :: Focus -> Focus -> Bool #

(>=) :: Focus -> Focus -> Bool #

max :: Focus -> Focus -> Focus #

min :: Focus -> Focus -> Focus #

Show Focus Source # 
Instance details

Defined in Client.State.Focus

Methods

showsPrec :: Int -> Focus -> ShowS #

show :: Focus -> String #

showList :: [Focus] -> ShowS #

data Subfocus Source #

Subfocus view

Constructors

FocusMessages

Show messages

FocusInfo

Show channel metadata

FocusUsers

Show channel user list

FocusDCC

Show DCC offers list

FocusMasks !Char

Show channel mask list for given mode

FocusWindows WindowsFilter

Show client windows

FocusPalette

Show current palette

FocusMentions

Show all mentions

FocusDigraphs

Show all digraphs

FocusKeyMap

Show key bindings

FocusHelp (Maybe Text)

Show help window with optional command

FocusRtsStats

Show GHC RTS statistics

FocusIgnoreList

Show ignored masks

FocusCert

Show rendered certificate

Instances
Eq Subfocus Source # 
Instance details

Defined in Client.State.Focus

Show Subfocus Source # 
Instance details

Defined in Client.State.Focus

data WindowsFilter Source #

Filter argument for FocusWindows

Constructors

AllWindows

no filter

NetworkWindows

only network windows

ChannelWindows

only channel windows

UserWindows

only user windows

Focus operations

focusNetwork Source #

Arguments

:: Focus 
-> Maybe Text

network

Return the network associated with the current focus

Focus Prisms