Documentation
¶
Index ¶
- type Bitmap
- type RdpClient
- func (g *RdpClient) Close()
- func (g *RdpClient) Height() int
- func (g *RdpClient) KeyDown(sc int)
- func (g *RdpClient) KeyUp(sc int)
- func (g *RdpClient) Login(domain string, user string, password string) error
- func (g *RdpClient) MouseDown(button int, x, y int)
- func (g *RdpClient) MouseMove(x, y int)
- func (g *RdpClient) MouseUp(button int, x, y int)
- func (g *RdpClient) MouseWheel(scroll int)
- func (g *RdpClient) NotifyClipboardChanged()
- func (g *RdpClient) OnAudio(f func(rdpsnd.AudioFormat, []byte)) *RdpClient
- func (g *RdpClient) OnBitmap(paint func([]Bitmap)) *RdpClient
- func (g *RdpClient) OnClipboard(onRemote func(text string), getLocal func() string) *RdpClient
- func (g *RdpClient) OnClose(f func()) *RdpClient
- func (g *RdpClient) OnError(f func(e error)) *RdpClient
- func (g *RdpClient) OnPointerCached(f func(uint16)) *RdpClient
- func (g *RdpClient) OnPointerHide(f func()) *RdpClient
- func (g *RdpClient) OnPointerUpdate(f func(uint16, uint16, uint16, uint16, uint16, uint16, []byte, []byte)) *RdpClient
- func (g *RdpClient) OnReady(f func()) *RdpClient
- func (g *RdpClient) OnSucces(f func()) *RdpClient
- func (g *RdpClient) Reconnect(width, height int) error
- func (g *RdpClient) SetKeyboardLayout(layout string)
- func (g *RdpClient) SetKeyboardType(keyboardType string)
- func (g *RdpClient) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bitmap ¶
type RdpClient ¶
type RdpClient struct {
// contains filtered or unexported fields
}
func NewRdpClient ¶
func (*RdpClient) MouseWheel ¶
func (*RdpClient) NotifyClipboardChanged ¶ added in v0.4.8
func (g *RdpClient) NotifyClipboardChanged()
NotifyClipboardChanged tells the server that the local clipboard has changed. The UI should call this when it detects a system clipboard change (e.g. via polling or a platform clipboard-change signal).
func (*RdpClient) OnAudio ¶ added in v0.4.7
func (g *RdpClient) OnAudio(f func(rdpsnd.AudioFormat, []byte)) *RdpClient
OnAudio registers a callback for server audio data. The callback receives the AudioFormat describing the PCM data and the raw audio bytes. Must be called before Login.
func (*RdpClient) OnBitmap ¶
OnBitmap registers a callback for bitmap update events. For compressed bitmaps, Bitmap.Data is borrowed from an internal pool and is valid only for the duration of the paint call. If you need to retain the raw pixel data beyond paint, copy it or call bm.RGBA() inside paint.
func (*RdpClient) OnClipboard ¶ added in v0.4.8
OnClipboard registers callbacks for bidirectional clipboard sharing.
- onRemote is called with the text when the RDP server's clipboard content is received (server → client).
- getLocal is called to retrieve the current local clipboard text when the server requests it (client → server).
Must be called before Login.
func (*RdpClient) OnPointerCached ¶ added in v0.3.3
func (*RdpClient) OnPointerHide ¶ added in v0.3.3
func (*RdpClient) OnPointerUpdate ¶ added in v0.3.3
func (*RdpClient) SetKeyboardLayout ¶ added in v0.4.1
SetKeyboardLayout sets the keyboard layout by name (e.g. "US", "FRENCH"). Must be called before Login.
func (*RdpClient) SetKeyboardType ¶ added in v0.4.1
SetKeyboardType sets the keyboard type by name (e.g. "IBM_101_102_KEYS"). Must be called before Login.
Directories
¶
| Path | Synopsis |
|---|---|
|
cliprdr
Package cliprdr handler.go implements a cross-platform CLIPRDR (Clipboard Virtual Channel Extension, MS-RDPECLIP) handler for bidirectional text clipboard sharing between RDP client and server.
|
Package cliprdr handler.go implements a cross-platform CLIPRDR (Clipboard Virtual Channel Extension, MS-RDPECLIP) handler for bidirectional text clipboard sharing between RDP client and server. |
|
rail
rail.go
|
rail.go |
|
rdpsnd
Package rdpsnd implements the RDPSND (Audio Output Virtual Channel Extension) protocol (MS-RDPEA) for server-to-client audio redirection.
|
Package rdpsnd implements the RDPSND (Audio Output Virtual Channel Extension) protocol (MS-RDPEA) for server-to-client audio redirection. |
|
protocol
|
|