Documentation ¶
Index ¶
- Constants
- func AddBgColor(msg string, color string) string
- func AddSelectedBg(msg string) string
- func AddUnSelectedBg(msg string) string
- func ConvertToEmoji(sentence string) string
- func DelBgColor(msg string) string
- func InitTalkInfo(w *wechat.Wechat, logger *log.Logger, groups []*Group)
- func NewLayout(recentUserList []UserInfo, recentGroupList []*Group, userList []UserInfo, ...)
- func Open(uri string) error
- func ShowNotify(message string) error
- func TranslateEmoji(sentence string) string
- type ChatBox
- type ChatLogRecord
- type Group
- type Layout
- type SelectEvent
- type SortItems
- type UserChangeEvent
- type UserInfo
- type UserList
- type WidgetPicker
Constants ¶
View Source
const ( SelectedMark = "(bg:red)" UnSelectedMark = "(bg:blue)" PageSize = 45 )
Variables ¶
This section is empty.
Functions ¶
func AddBgColor ¶
func AddSelectedBg ¶
func AddUnSelectedBg ¶
func ConvertToEmoji ¶
func DelBgColor ¶
func NewLayout ¶
func NewLayout( recentUserList []UserInfo, recentGroupList []*Group, userList []UserInfo, groupList []*Group, userChangeEvent chan UserChangeEvent, selectEvent chan SelectEvent, myName, myID string, msgIn chan wechat.Message, msgOut chan wechat.MessageRecord, logger *log.Logger, we *wechat.Wechat)
func ShowNotify ¶
func TranslateEmoji ¶
Types ¶
type ChatBox ¶
type ChatBox struct { MyId string MyName string Id string Notify bool // contains filtered or unexported fields }
func NewChatBox ¶
func NewChatBox(myId, myName string, baseX, baseY, width, height int, logger *log.Logger, msgIn chan wechat.Message, msgOut chan wechat.MessageRecord, groupChan chan SelectEvent) *ChatBox
func (*ChatBox) NextSelect ¶
func (l *ChatBox) NextSelect()
func (*ChatBox) PrevSelect ¶
func (l *ChatBox) PrevSelect()
type ChatLogRecord ¶
type ChatLogRecord struct {
// contains filtered or unexported fields
}
type Layout ¶
type Layout struct { Notify bool // contains filtered or unexported fields }
func (*Layout) SwitchWidget ¶
func (l *Layout) SwitchWidget()
type SelectEvent ¶
type SortItems ¶
type SortItems []SelectEvent
type UserChangeEvent ¶
type UserChangeEvent struct { }
type UserList ¶
type UserList struct {
// contains filtered or unexported fields
}
func NewUserList ¶
func (*UserList) InvokeSelect ¶
func (l *UserList) InvokeSelect()
type WidgetPicker ¶
Click to show internal directories.
Click to hide internal directories.