Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginUI ¶
type LoginUI struct {
// contains filtered or unexported fields
}
LoginUI holds information about the LoginUI
func NewLoginUIStruct ¶
func NewLoginUIStruct(windowWidth, windowHeight int, window *widgets.QMainWindow) (loginUIStruct LoginUI)
NewLoginUIStruct gives you a LoginUI struct with prefilled data
func NewLoginUIStructWithExistingConfig ¶
func NewLoginUIStructWithExistingConfig(configStruct config, window *widgets.QMainWindow) (loginUIStruct LoginUI)
NewLoginUIStructWithExistingConfig gives you a LoginUI struct with prefilled data and data from a previous Config
type MainUI ¶
type MainUI struct { RoomAvatar *widgets.QLabel RoomTitle *widgets.QLabel RoomTopic *widgets.QLabel MainWidget *widgets.QWidget MessageListLayout *QVBoxLayoutWithTriggerSlot // contains filtered or unexported fields }
MainUI holds information about the MainUI
func NewMainUIStruct ¶
func NewMainUIStruct(windowWidth, windowHeight int, window *widgets.QMainWindow) (mainUIStruct MainUI)
NewMainUIStruct gives you a MainUI struct with prefilled data
func NewMainUIStructWithExistingConfig ¶
func NewMainUIStructWithExistingConfig(configStruct config, window *widgets.QMainWindow) (mainUIStruct MainUI)
NewMainUIStructWithExistingConfig gives you a MainUI struct with prefilled data and data from a previous Config
func (*MainUI) SetCurrentRoom ¶
SetCurrentRoom sets the new room ID of the MainUI
type QRoomVBoxLayoutWithTriggerSlot ¶
type QRoomVBoxLayoutWithTriggerSlot struct { widgets.QVBoxLayout // contains filtered or unexported fields }
QRoomVBoxLayoutWithTriggerSlot defines the QVBoxLayout with TriggerMessage slot to add messages to the View
func NewRoomList ¶
func NewRoomList(scrollArea *widgets.QScrollArea, roomView *widgets.QWidget) (roomViewLayout *QRoomVBoxLayoutWithTriggerSlot)
NewRoomList generates a new QRoomVBoxLayoutWithTriggerSlot and adds it to the room scrollArea
func (*QRoomVBoxLayoutWithTriggerSlot) NewRoom ¶
func (roomViewLayout *QRoomVBoxLayoutWithTriggerSlot) NewRoom(room *matrix.Room, scrollArea *widgets.QScrollArea, mainUIStruct *MainUI) (err error)
NewRoom adds a new room object to the view
type QVBoxLayoutWithTriggerSlot ¶
type QVBoxLayoutWithTriggerSlot struct { widgets.QVBoxLayout // contains filtered or unexported fields }
QVBoxLayoutWithTriggerSlot defines the QVBoxLayout with TriggerMessage slot to add messages to the View
func NewMessageList ¶
func NewMessageList(scrollArea *widgets.QScrollArea, messageView *widgets.QWidget) (messageViewLayout *QVBoxLayoutWithTriggerSlot)
NewMessageList generates a new QVBoxLayoutWithTriggerSlot and adds it to the message scrollArea
func (*QVBoxLayoutWithTriggerSlot) NewMessage ¶
func (messageViewLayout *QVBoxLayoutWithTriggerSlot) NewMessage(body string, cli *gomatrix.Client, sender string, timestamp int64, scrollArea *widgets.QScrollArea, own bool, mainUIStruct *MainUI) (err error)
NewMessage adds a new message object to the view