Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultEvents = []Event{ &SetEncodings{}, &SetPixelFormat{}, &FrameBufferUpdate{}, &KeyEvent{}, &PointerEvent{}, &ClientCutText{}, }
DefaultEvents is a list of the default enabled event handlers.
Functions ¶
func CloseEventHandlers ¶
CloseEventHandlers will iterate each event handler in the map and if it provides a Close function it will execute it.
This does not exist anymore, but left for convenience should it be useful in the future. The Display object handles most of the state regarding an RFB session.
Types ¶
type ClientCutText ¶
type ClientCutText struct{}
ClientCutText handles new text in the client's cut buffer.
func (*ClientCutText) Handle ¶
func (c *ClientCutText) Handle(buf *buffer.ReadWriter, d *display.Display) error
Handle handles the event.
type Event ¶
Event is an inteface implemented by client message handlers.
func GetDefaults ¶
func GetDefaults() []Event
GetDefaults returns a slice of the default event handlers.
type FrameBufferUpdate ¶
type FrameBufferUpdate struct {
// contains filtered or unexported fields
}
FrameBufferUpdate handles framebuffer update events.
func (*FrameBufferUpdate) Handle ¶
func (f *FrameBufferUpdate) Handle(buf *buffer.ReadWriter, d *display.Display) error
Handle handles the event.
type PointerEvent ¶
type PointerEvent struct{}
PointerEvent handles pointer events.
func (*PointerEvent) Handle ¶
func (s *PointerEvent) Handle(buf *buffer.ReadWriter, d *display.Display) error
Handle handles the event.
type SetEncodings ¶
type SetEncodings struct{}
SetEncodings handles the client set-encodings event.
func (*SetEncodings) Handle ¶
func (s *SetEncodings) Handle(buf *buffer.ReadWriter, d *display.Display) error
Handle handles the event.
type SetPixelFormat ¶
type SetPixelFormat struct{}
SetPixelFormat handles the client set-pixel-format event.
func (*SetPixelFormat) Handle ¶
func (s *SetPixelFormat) Handle(buf *buffer.ReadWriter, d *display.Display) error
Handle handles the event.