Documentation ¶
Overview ¶
Package wlr implements the wlr_foreign_toplevel_management_unstable_v1 protocol
Index ¶
- Constants
- Variables
- func Activate(id wl.ProxyId)
- func GetWindows() windowmap
- func StartWM(ac chan string, dc chan string)
- type Window
- func (h *Window) HandleZwlrForeignToplevelHandleV1AppId(e ZwlrForeignToplevelHandleV1AppIdEvent)
- func (h *Window) HandleZwlrForeignToplevelHandleV1Closed(e ZwlrForeignToplevelHandleV1ClosedEvent)
- func (h *Window) HandleZwlrForeignToplevelHandleV1Title(e ZwlrForeignToplevelHandleV1TitleEvent)
- func (*Window) HandleZwlrForeignToplevelManagerV1Toplevel(e ZwlrForeignToplevelManagerV1ToplevelEvent)
- type ZwlrForeignToplevelHandleV1
- func (p *ZwlrForeignToplevelHandleV1) Activate(Seat *wl.Seat) error
- func (p *ZwlrForeignToplevelHandleV1) AddAppIdHandler(h ZwlrForeignToplevelHandleV1AppIdHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddClosedHandler(h ZwlrForeignToplevelHandleV1ClosedHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddDoneHandler(h ZwlrForeignToplevelHandleV1DoneHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddOutputEnterHandler(h ZwlrForeignToplevelHandleV1OutputEnterHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddOutputLeaveHandler(h ZwlrForeignToplevelHandleV1OutputLeaveHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddParentHandler(h ZwlrForeignToplevelHandleV1ParentHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddStateHandler(h ZwlrForeignToplevelHandleV1StateHandler)
- func (p *ZwlrForeignToplevelHandleV1) AddTitleHandler(h ZwlrForeignToplevelHandleV1TitleHandler)
- func (p *ZwlrForeignToplevelHandleV1) Close() error
- func (p *ZwlrForeignToplevelHandleV1) Destroy() error
- func (p *ZwlrForeignToplevelHandleV1) Dispatch(event *wl.Event)
- func (p *ZwlrForeignToplevelHandleV1) RemoveAppIdHandler(h ZwlrForeignToplevelHandleV1AppIdHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveClosedHandler(h ZwlrForeignToplevelHandleV1ClosedHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveDoneHandler(h ZwlrForeignToplevelHandleV1DoneHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveOutputEnterHandler(h ZwlrForeignToplevelHandleV1OutputEnterHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveOutputLeaveHandler(h ZwlrForeignToplevelHandleV1OutputLeaveHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveParentHandler(h ZwlrForeignToplevelHandleV1ParentHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveStateHandler(h ZwlrForeignToplevelHandleV1StateHandler)
- func (p *ZwlrForeignToplevelHandleV1) RemoveTitleHandler(h ZwlrForeignToplevelHandleV1TitleHandler)
- func (p *ZwlrForeignToplevelHandleV1) SetFullscreen(Output *wl.Output) error
- func (p *ZwlrForeignToplevelHandleV1) SetMaximized() error
- func (p *ZwlrForeignToplevelHandleV1) SetMinimized() error
- func (p *ZwlrForeignToplevelHandleV1) SetRectangle(Surface *wl.Surface, X int32, Y int32, Width int32, Height int32) error
- func (p *ZwlrForeignToplevelHandleV1) UnsetFullscreen() error
- func (p *ZwlrForeignToplevelHandleV1) UnsetMaximized() error
- func (p *ZwlrForeignToplevelHandleV1) UnsetMinimized() error
- type ZwlrForeignToplevelHandleV1AppIdEvent
- type ZwlrForeignToplevelHandleV1AppIdHandler
- type ZwlrForeignToplevelHandleV1ClosedEvent
- type ZwlrForeignToplevelHandleV1ClosedHandler
- type ZwlrForeignToplevelHandleV1DoneEvent
- type ZwlrForeignToplevelHandleV1DoneHandler
- type ZwlrForeignToplevelHandleV1OutputEnterEvent
- type ZwlrForeignToplevelHandleV1OutputEnterHandler
- type ZwlrForeignToplevelHandleV1OutputLeaveEvent
- type ZwlrForeignToplevelHandleV1OutputLeaveHandler
- type ZwlrForeignToplevelHandleV1ParentEvent
- type ZwlrForeignToplevelHandleV1ParentHandler
- type ZwlrForeignToplevelHandleV1StateEvent
- type ZwlrForeignToplevelHandleV1StateHandler
- type ZwlrForeignToplevelHandleV1TitleEvent
- type ZwlrForeignToplevelHandleV1TitleHandler
- type ZwlrForeignToplevelManagerV1
- func (p *ZwlrForeignToplevelManagerV1) AddFinishedHandler(h ZwlrForeignToplevelManagerV1FinishedHandler)
- func (p *ZwlrForeignToplevelManagerV1) AddToplevelHandler(h ZwlrForeignToplevelManagerV1ToplevelHandler)
- func (p *ZwlrForeignToplevelManagerV1) Dispatch(event *wl.Event)
- func (p *ZwlrForeignToplevelManagerV1) RemoveFinishedHandler(h ZwlrForeignToplevelManagerV1FinishedHandler)
- func (p *ZwlrForeignToplevelManagerV1) RemoveToplevelHandler(h ZwlrForeignToplevelManagerV1ToplevelHandler)
- func (p *ZwlrForeignToplevelManagerV1) Stop() error
- type ZwlrForeignToplevelManagerV1FinishedEvent
- type ZwlrForeignToplevelManagerV1FinishedHandler
- type ZwlrForeignToplevelManagerV1ToplevelEvent
- type ZwlrForeignToplevelManagerV1ToplevelHandler
Constants ¶
const ZwlrForeignToplevelHandleV1ErrorInvalidRectangle = 0
ZwlrForeignToplevelHandleV1ErrorInvalidRectangle means the provided rectangle is invalid
const ZwlrForeignToplevelHandleV1StateActivated = 2
ZwlrForeignToplevelHandleV1StateActivated means the toplevel is active
const ZwlrForeignToplevelHandleV1StateFullscreen = 3
ZwlrForeignToplevelHandleV1StateFullscreen means the toplevel is fullscreen
const ZwlrForeignToplevelHandleV1StateMaximized = 0
ZwlrForeignToplevelHandleV1StateMaximized means the toplevel is maximized
const ZwlrForeignToplevelHandleV1StateMinimized = 1
ZwlrForeignToplevelHandleV1StateMinimized means the toplevel is minimized
Variables ¶
var IsRunning = false
Functions ¶
func GetWindows ¶
func GetWindows() windowmap
Types ¶
type Window ¶
type Window struct { Toplevel *ZwlrForeignToplevelHandleV1 AppId string Title string AddChan chan string DeleteChan chan string // contains filtered or unexported fields }
func (*Window) HandleZwlrForeignToplevelHandleV1AppId ¶
func (h *Window) HandleZwlrForeignToplevelHandleV1AppId(e ZwlrForeignToplevelHandleV1AppIdEvent)
func (*Window) HandleZwlrForeignToplevelHandleV1Closed ¶
func (h *Window) HandleZwlrForeignToplevelHandleV1Closed(e ZwlrForeignToplevelHandleV1ClosedEvent)
func (*Window) HandleZwlrForeignToplevelHandleV1Title ¶
func (h *Window) HandleZwlrForeignToplevelHandleV1Title(e ZwlrForeignToplevelHandleV1TitleEvent)
func (*Window) HandleZwlrForeignToplevelManagerV1Toplevel ¶
func (*Window) HandleZwlrForeignToplevelManagerV1Toplevel(e ZwlrForeignToplevelManagerV1ToplevelEvent)
type ZwlrForeignToplevelHandleV1 ¶
ZwlrForeignToplevelHandleV1 an opened toplevel
func NewZwlrForeignToplevelHandleV1 ¶
func NewZwlrForeignToplevelHandleV1(ctx *wl.Context) *ZwlrForeignToplevelHandleV1
NewZwlrForeignToplevelHandleV1 is a constructor for the ZwlrForeignToplevelHandleV1 object
func (*ZwlrForeignToplevelHandleV1) Activate ¶
func (p *ZwlrForeignToplevelHandleV1) Activate(Seat *wl.Seat) error
Activate activate the toplevel
func (*ZwlrForeignToplevelHandleV1) AddAppIdHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddAppIdHandler(h ZwlrForeignToplevelHandleV1AppIdHandler)
AddAppIdHandler removes the AppId handler
func (*ZwlrForeignToplevelHandleV1) AddClosedHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddClosedHandler(h ZwlrForeignToplevelHandleV1ClosedHandler)
AddClosedHandler removes the Closed handler
func (*ZwlrForeignToplevelHandleV1) AddDoneHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddDoneHandler(h ZwlrForeignToplevelHandleV1DoneHandler)
AddDoneHandler removes the Done handler
func (*ZwlrForeignToplevelHandleV1) AddOutputEnterHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddOutputEnterHandler(h ZwlrForeignToplevelHandleV1OutputEnterHandler)
AddOutputEnterHandler removes the OutputEnter handler
func (*ZwlrForeignToplevelHandleV1) AddOutputLeaveHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddOutputLeaveHandler(h ZwlrForeignToplevelHandleV1OutputLeaveHandler)
AddOutputLeaveHandler removes the OutputLeave handler
func (*ZwlrForeignToplevelHandleV1) AddParentHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddParentHandler(h ZwlrForeignToplevelHandleV1ParentHandler)
AddParentHandler removes the Parent handler
func (*ZwlrForeignToplevelHandleV1) AddStateHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddStateHandler(h ZwlrForeignToplevelHandleV1StateHandler)
AddStateHandler removes the State handler
func (*ZwlrForeignToplevelHandleV1) AddTitleHandler ¶
func (p *ZwlrForeignToplevelHandleV1) AddTitleHandler(h ZwlrForeignToplevelHandleV1TitleHandler)
AddTitleHandler removes the Title handler
func (*ZwlrForeignToplevelHandleV1) Close ¶
func (p *ZwlrForeignToplevelHandleV1) Close() error
Close request that the toplevel be closed
func (*ZwlrForeignToplevelHandleV1) Destroy ¶
func (p *ZwlrForeignToplevelHandleV1) Destroy() error
Destroy destroy the zwlr_foreign_toplevel_handle_v1 object
func (*ZwlrForeignToplevelHandleV1) Dispatch ¶
func (p *ZwlrForeignToplevelHandleV1) Dispatch(event *wl.Event)
Dispatch dispatches event for object ZwlrForeignToplevelHandleV1
func (*ZwlrForeignToplevelHandleV1) RemoveAppIdHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveAppIdHandler(h ZwlrForeignToplevelHandleV1AppIdHandler)
RemoveAppIdHandler adds the AppId handler
func (*ZwlrForeignToplevelHandleV1) RemoveClosedHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveClosedHandler(h ZwlrForeignToplevelHandleV1ClosedHandler)
RemoveClosedHandler adds the Closed handler
func (*ZwlrForeignToplevelHandleV1) RemoveDoneHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveDoneHandler(h ZwlrForeignToplevelHandleV1DoneHandler)
RemoveDoneHandler adds the Done handler
func (*ZwlrForeignToplevelHandleV1) RemoveOutputEnterHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveOutputEnterHandler(h ZwlrForeignToplevelHandleV1OutputEnterHandler)
RemoveOutputEnterHandler adds the OutputEnter handler
func (*ZwlrForeignToplevelHandleV1) RemoveOutputLeaveHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveOutputLeaveHandler(h ZwlrForeignToplevelHandleV1OutputLeaveHandler)
RemoveOutputLeaveHandler adds the OutputLeave handler
func (*ZwlrForeignToplevelHandleV1) RemoveParentHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveParentHandler(h ZwlrForeignToplevelHandleV1ParentHandler)
RemoveParentHandler adds the Parent handler
func (*ZwlrForeignToplevelHandleV1) RemoveStateHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveStateHandler(h ZwlrForeignToplevelHandleV1StateHandler)
RemoveStateHandler adds the State handler
func (*ZwlrForeignToplevelHandleV1) RemoveTitleHandler ¶
func (p *ZwlrForeignToplevelHandleV1) RemoveTitleHandler(h ZwlrForeignToplevelHandleV1TitleHandler)
RemoveTitleHandler adds the Title handler
func (*ZwlrForeignToplevelHandleV1) SetFullscreen ¶
func (p *ZwlrForeignToplevelHandleV1) SetFullscreen(Output *wl.Output) error
SetFullscreen request that the toplevel be fullscreened
func (*ZwlrForeignToplevelHandleV1) SetMaximized ¶
func (p *ZwlrForeignToplevelHandleV1) SetMaximized() error
SetMaximized requests that the toplevel be maximized
func (*ZwlrForeignToplevelHandleV1) SetMinimized ¶
func (p *ZwlrForeignToplevelHandleV1) SetMinimized() error
SetMinimized requests that the toplevel be minimized
func (*ZwlrForeignToplevelHandleV1) SetRectangle ¶
func (p *ZwlrForeignToplevelHandleV1) SetRectangle(Surface *wl.Surface, X int32, Y int32, Width int32, Height int32) error
SetRectangle the rectangle which represents the toplevel
func (*ZwlrForeignToplevelHandleV1) UnsetFullscreen ¶
func (p *ZwlrForeignToplevelHandleV1) UnsetFullscreen() error
UnsetFullscreen request that the toplevel be unfullscreened
func (*ZwlrForeignToplevelHandleV1) UnsetMaximized ¶
func (p *ZwlrForeignToplevelHandleV1) UnsetMaximized() error
UnsetMaximized requests that the toplevel be unmaximized
func (*ZwlrForeignToplevelHandleV1) UnsetMinimized ¶
func (p *ZwlrForeignToplevelHandleV1) UnsetMinimized() error
UnsetMinimized requests that the toplevel be unminimized
type ZwlrForeignToplevelHandleV1AppIdEvent ¶
type ZwlrForeignToplevelHandleV1AppIdEvent struct { // AppId is the AppId string }
ZwlrForeignToplevelHandleV1AppIdEvent is the app-id change
type ZwlrForeignToplevelHandleV1AppIdHandler ¶
type ZwlrForeignToplevelHandleV1AppIdHandler interface {
HandleZwlrForeignToplevelHandleV1AppId(ZwlrForeignToplevelHandleV1AppIdEvent)
}
ZwlrForeignToplevelHandleV1AppIdHandler is the handler interface for ZwlrForeignToplevelHandleV1AppIdEvent
type ZwlrForeignToplevelHandleV1ClosedEvent ¶
type ZwlrForeignToplevelHandleV1ClosedEvent struct{}
ZwlrForeignToplevelHandleV1ClosedEvent is the this toplevel has been destroyed
type ZwlrForeignToplevelHandleV1ClosedHandler ¶
type ZwlrForeignToplevelHandleV1ClosedHandler interface {
HandleZwlrForeignToplevelHandleV1Closed(ZwlrForeignToplevelHandleV1ClosedEvent)
}
ZwlrForeignToplevelHandleV1ClosedHandler is the handler interface for ZwlrForeignToplevelHandleV1ClosedEvent
type ZwlrForeignToplevelHandleV1DoneEvent ¶
type ZwlrForeignToplevelHandleV1DoneEvent struct{}
ZwlrForeignToplevelHandleV1DoneEvent is the all information about the toplevel has been sent
type ZwlrForeignToplevelHandleV1DoneHandler ¶
type ZwlrForeignToplevelHandleV1DoneHandler interface {
HandleZwlrForeignToplevelHandleV1Done(ZwlrForeignToplevelHandleV1DoneEvent)
}
ZwlrForeignToplevelHandleV1DoneHandler is the handler interface for ZwlrForeignToplevelHandleV1DoneEvent
type ZwlrForeignToplevelHandleV1OutputEnterEvent ¶
ZwlrForeignToplevelHandleV1OutputEnterEvent is the toplevel entered an output
type ZwlrForeignToplevelHandleV1OutputEnterHandler ¶
type ZwlrForeignToplevelHandleV1OutputEnterHandler interface {
HandleZwlrForeignToplevelHandleV1OutputEnter(ZwlrForeignToplevelHandleV1OutputEnterEvent)
}
ZwlrForeignToplevelHandleV1OutputEnterHandler is the handler interface for ZwlrForeignToplevelHandleV1OutputEnterEvent
type ZwlrForeignToplevelHandleV1OutputLeaveEvent ¶
ZwlrForeignToplevelHandleV1OutputLeaveEvent is the toplevel left an output
type ZwlrForeignToplevelHandleV1OutputLeaveHandler ¶
type ZwlrForeignToplevelHandleV1OutputLeaveHandler interface {
HandleZwlrForeignToplevelHandleV1OutputLeave(ZwlrForeignToplevelHandleV1OutputLeaveEvent)
}
ZwlrForeignToplevelHandleV1OutputLeaveHandler is the handler interface for ZwlrForeignToplevelHandleV1OutputLeaveEvent
type ZwlrForeignToplevelHandleV1ParentEvent ¶
type ZwlrForeignToplevelHandleV1ParentEvent struct { // Parent is the Parent *ZwlrForeignToplevelHandleV1 }
ZwlrForeignToplevelHandleV1ParentEvent is the parent change
type ZwlrForeignToplevelHandleV1ParentHandler ¶
type ZwlrForeignToplevelHandleV1ParentHandler interface {
HandleZwlrForeignToplevelHandleV1Parent(ZwlrForeignToplevelHandleV1ParentEvent)
}
ZwlrForeignToplevelHandleV1ParentHandler is the handler interface for ZwlrForeignToplevelHandleV1ParentEvent
type ZwlrForeignToplevelHandleV1StateEvent ¶
type ZwlrForeignToplevelHandleV1StateEvent struct { // State is the State []int32 }
ZwlrForeignToplevelHandleV1StateEvent is the the toplevel state changed
type ZwlrForeignToplevelHandleV1StateHandler ¶
type ZwlrForeignToplevelHandleV1StateHandler interface {
HandleZwlrForeignToplevelHandleV1State(ZwlrForeignToplevelHandleV1StateEvent)
}
ZwlrForeignToplevelHandleV1StateHandler is the handler interface for ZwlrForeignToplevelHandleV1StateEvent
type ZwlrForeignToplevelHandleV1TitleEvent ¶
type ZwlrForeignToplevelHandleV1TitleEvent struct { // Title is the Title string }
ZwlrForeignToplevelHandleV1TitleEvent is the title change
type ZwlrForeignToplevelHandleV1TitleHandler ¶
type ZwlrForeignToplevelHandleV1TitleHandler interface {
HandleZwlrForeignToplevelHandleV1Title(ZwlrForeignToplevelHandleV1TitleEvent)
}
ZwlrForeignToplevelHandleV1TitleHandler is the handler interface for ZwlrForeignToplevelHandleV1TitleEvent
type ZwlrForeignToplevelManagerV1 ¶
ZwlrForeignToplevelManagerV1 list and control opened apps
func NewZwlrForeignToplevelManagerV1 ¶
func NewZwlrForeignToplevelManagerV1(ctx *wl.Context) *ZwlrForeignToplevelManagerV1
NewZwlrForeignToplevelManagerV1 is a constructor for the ZwlrForeignToplevelManagerV1 object
func (*ZwlrForeignToplevelManagerV1) AddFinishedHandler ¶
func (p *ZwlrForeignToplevelManagerV1) AddFinishedHandler(h ZwlrForeignToplevelManagerV1FinishedHandler)
AddFinishedHandler removes the Finished handler
func (*ZwlrForeignToplevelManagerV1) AddToplevelHandler ¶
func (p *ZwlrForeignToplevelManagerV1) AddToplevelHandler(h ZwlrForeignToplevelManagerV1ToplevelHandler)
AddToplevelHandler removes the Toplevel handler
func (*ZwlrForeignToplevelManagerV1) Dispatch ¶
func (p *ZwlrForeignToplevelManagerV1) Dispatch(event *wl.Event)
Dispatch dispatches event for object ZwlrForeignToplevelManagerV1
func (*ZwlrForeignToplevelManagerV1) RemoveFinishedHandler ¶
func (p *ZwlrForeignToplevelManagerV1) RemoveFinishedHandler(h ZwlrForeignToplevelManagerV1FinishedHandler)
RemoveFinishedHandler adds the Finished handler
func (*ZwlrForeignToplevelManagerV1) RemoveToplevelHandler ¶
func (p *ZwlrForeignToplevelManagerV1) RemoveToplevelHandler(h ZwlrForeignToplevelManagerV1ToplevelHandler)
RemoveToplevelHandler adds the Toplevel handler
func (*ZwlrForeignToplevelManagerV1) Stop ¶
func (p *ZwlrForeignToplevelManagerV1) Stop() error
Stop stop sending events
type ZwlrForeignToplevelManagerV1FinishedEvent ¶
type ZwlrForeignToplevelManagerV1FinishedEvent struct{}
ZwlrForeignToplevelManagerV1FinishedEvent is the the compositor has finished with the toplevel manager
type ZwlrForeignToplevelManagerV1FinishedHandler ¶
type ZwlrForeignToplevelManagerV1FinishedHandler interface {
HandleZwlrForeignToplevelManagerV1Finished(ZwlrForeignToplevelManagerV1FinishedEvent)
}
ZwlrForeignToplevelManagerV1FinishedHandler is the handler interface for ZwlrForeignToplevelManagerV1FinishedEvent
type ZwlrForeignToplevelManagerV1ToplevelEvent ¶
type ZwlrForeignToplevelManagerV1ToplevelEvent struct { // Toplevel is the Toplevel *ZwlrForeignToplevelHandleV1 }
ZwlrForeignToplevelManagerV1ToplevelEvent is the a toplevel has been created
type ZwlrForeignToplevelManagerV1ToplevelHandler ¶
type ZwlrForeignToplevelManagerV1ToplevelHandler interface {
HandleZwlrForeignToplevelManagerV1Toplevel(ZwlrForeignToplevelManagerV1ToplevelEvent)
}
ZwlrForeignToplevelManagerV1ToplevelHandler is the handler interface for ZwlrForeignToplevelManagerV1ToplevelEvent