glirc-2.13: 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 # 

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

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 # 

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

FocusMasks !Char

Show channel mask list for given mode

FocusWindows

Show client windows

Focus operations

focusNetwork Source #

Arguments

:: Focus 
-> Maybe Text

network

Return the network associated with the current focus

Focus Prisms

Subfocus Prisms