wlr

package
v0.11.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package wlr implements the wlr_foreign_toplevel_management_unstable_v1 protocol

Index

Constants

View Source
const ZwlrForeignToplevelHandleV1ErrorInvalidRectangle = 0

ZwlrForeignToplevelHandleV1ErrorInvalidRectangle means the provided rectangle is invalid

View Source
const ZwlrForeignToplevelHandleV1StateActivated = 2

ZwlrForeignToplevelHandleV1StateActivated means the toplevel is active

View Source
const ZwlrForeignToplevelHandleV1StateFullscreen = 3

ZwlrForeignToplevelHandleV1StateFullscreen means the toplevel is fullscreen

View Source
const ZwlrForeignToplevelHandleV1StateMaximized = 0

ZwlrForeignToplevelHandleV1StateMaximized means the toplevel is maximized

View Source
const ZwlrForeignToplevelHandleV1StateMinimized = 1

ZwlrForeignToplevelHandleV1StateMinimized means the toplevel is minimized

Variables

View Source
var IsRunning = false

Functions

func Activate

func Activate(id wl.ProxyId)

func GetWindows

func GetWindows() windowmap

func StartWM

func StartWM(ac chan string, dc chan string)

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

type ZwlrForeignToplevelHandleV1 struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

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

AddAppIdHandler removes the AppId handler

func (*ZwlrForeignToplevelHandleV1) AddClosedHandler

AddClosedHandler removes the Closed handler

func (*ZwlrForeignToplevelHandleV1) AddDoneHandler

AddDoneHandler removes the Done handler

func (*ZwlrForeignToplevelHandleV1) AddOutputEnterHandler

AddOutputEnterHandler removes the OutputEnter handler

func (*ZwlrForeignToplevelHandleV1) AddOutputLeaveHandler

AddOutputLeaveHandler removes the OutputLeave handler

func (*ZwlrForeignToplevelHandleV1) AddParentHandler

AddParentHandler removes the Parent handler

func (*ZwlrForeignToplevelHandleV1) AddStateHandler

AddStateHandler removes the State handler

func (*ZwlrForeignToplevelHandleV1) AddTitleHandler

AddTitleHandler removes the Title handler

func (*ZwlrForeignToplevelHandleV1) Close

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

RemoveAppIdHandler adds the AppId handler

func (*ZwlrForeignToplevelHandleV1) RemoveClosedHandler

RemoveClosedHandler adds the Closed handler

func (*ZwlrForeignToplevelHandleV1) RemoveDoneHandler

RemoveDoneHandler adds the Done handler

func (*ZwlrForeignToplevelHandleV1) RemoveOutputEnterHandler

RemoveOutputEnterHandler adds the OutputEnter handler

func (*ZwlrForeignToplevelHandleV1) RemoveOutputLeaveHandler

RemoveOutputLeaveHandler adds the OutputLeave handler

func (*ZwlrForeignToplevelHandleV1) RemoveParentHandler

RemoveParentHandler adds the Parent handler

func (*ZwlrForeignToplevelHandleV1) RemoveStateHandler

RemoveStateHandler adds the State handler

func (*ZwlrForeignToplevelHandleV1) RemoveTitleHandler

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

type ZwlrForeignToplevelHandleV1OutputEnterEvent struct {
	// Output is the
	Output *wl.Output
}

ZwlrForeignToplevelHandleV1OutputEnterEvent is the toplevel entered an output

type ZwlrForeignToplevelHandleV1OutputEnterHandler

type ZwlrForeignToplevelHandleV1OutputEnterHandler interface {
	HandleZwlrForeignToplevelHandleV1OutputEnter(ZwlrForeignToplevelHandleV1OutputEnterEvent)
}

ZwlrForeignToplevelHandleV1OutputEnterHandler is the handler interface for ZwlrForeignToplevelHandleV1OutputEnterEvent

type ZwlrForeignToplevelHandleV1OutputLeaveEvent

type ZwlrForeignToplevelHandleV1OutputLeaveEvent struct {
	// Output is the
	Output *wl.Output
}

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

type ZwlrForeignToplevelManagerV1 struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

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

AddFinishedHandler removes the Finished handler

func (*ZwlrForeignToplevelManagerV1) AddToplevelHandler

AddToplevelHandler removes the Toplevel handler

func (*ZwlrForeignToplevelManagerV1) Dispatch

func (p *ZwlrForeignToplevelManagerV1) Dispatch(event *wl.Event)

Dispatch dispatches event for object ZwlrForeignToplevelManagerV1

func (*ZwlrForeignToplevelManagerV1) RemoveFinishedHandler

RemoveFinishedHandler adds the Finished handler

func (*ZwlrForeignToplevelManagerV1) RemoveToplevelHandler

RemoveToplevelHandler adds the Toplevel handler

func (*ZwlrForeignToplevelManagerV1) Stop

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL