Documentation
¶
Index ¶
- Variables
- type WpViewport
- func (obj *WpViewport) Base() *wire.Object
- func (obj *WpViewport) Destroy() error
- func (obj *WpViewport) Dispatch(msg *wire.Message) error
- func (obj *WpViewport) SetDestination(width int32, height int32) error
- func (obj *WpViewport) SetSource(x wire.Fixed, y wire.Fixed, width wire.Fixed, height wire.Fixed) error
- type WpViewportError
- type WpViewporter
- type WpViewporterError
Constants ¶
This section is empty.
Variables ¶
View Source
var WpViewportInterface = &wire.Interface{ Name: "wp_viewport", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "set_source", Since: 1, Args: []wire.Arg{{Name: "x", Type: wire.ArgFixed}, {Name: "y", Type: wire.ArgFixed}, {Name: "width", Type: wire.ArgFixed}, {Name: "height", Type: wire.ArgFixed}}}, {Name: "set_destination", Since: 1, Args: []wire.Arg{{Name: "width", Type: wire.ArgInt}, {Name: "height", Type: wire.ArgInt}}}, }, }
View Source
var WpViewporterInterface = &wire.Interface{ Name: "wp_viewporter", Version: 1, Requests: []wire.MessageSpec{ {Name: "destroy", Since: 1, Destructor: true}, {Name: "get_viewport", Since: 1, Args: []wire.Arg{{Name: "id", Type: wire.ArgNewID, Interface: "wp_viewport"}, {Name: "surface", Type: wire.ArgObject, Interface: "wl_surface"}}}, }, }
Functions ¶
This section is empty.
Types ¶
type WpViewport ¶
type WpViewport struct {
// contains filtered or unexported fields
}
func CreateWpViewport ¶
func NewWpViewport ¶
func NewWpViewport(p wire.Peer, version uint32) (*WpViewport, error)
func (*WpViewport) Base ¶
func (obj *WpViewport) Base() *wire.Object
func (*WpViewport) Destroy ¶
func (obj *WpViewport) Destroy() error
func (*WpViewport) SetDestination ¶
func (obj *WpViewport) SetDestination(width int32, height int32) error
type WpViewportError ¶
type WpViewportError uint32
const ( WpViewportErrorBadValue WpViewportError = 0 WpViewportErrorBadSize WpViewportError = 1 WpViewportErrorOutOfBuffer WpViewportError = 2 WpViewportErrorNoSurface WpViewportError = 3 )
func (WpViewportError) Valid ¶
func (v WpViewportError) Valid(version uint32) bool
type WpViewporter ¶
type WpViewporter struct {
// contains filtered or unexported fields
}
func CreateWpViewporter ¶
func NewWpViewporter ¶
func NewWpViewporter(p wire.Peer, version uint32) (*WpViewporter, error)
func (*WpViewporter) Base ¶
func (obj *WpViewporter) Base() *wire.Object
func (*WpViewporter) Destroy ¶
func (obj *WpViewporter) Destroy() error
func (*WpViewporter) GetViewport ¶
func (obj *WpViewporter) GetViewport(surface *wayland.WlSurface) (*WpViewport, error)
type WpViewporterError ¶
type WpViewporterError uint32
const (
WpViewporterErrorViewportExists WpViewporterError = 0
)
func (WpViewporterError) Valid ¶
func (v WpViewporterError) Valid(version uint32) bool
Click to show internal directories.
Click to hide internal directories.