xcb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cbool

func Cbool[T constraints.Integer | constraints.Float](v bool) T

Types

type Display

type Display struct {
	// contains filtered or unexported fields
}

func NewDisplay

func NewDisplay() (*Display, error)

func (*Display) Destroy

func (d *Display) Destroy()

func (*Display) Poll

func (d *Display) Poll() bool

func (*Display) Wait

func (d *Display) Wait() bool

func (*Display) WaitTimeout

func (d *Display) WaitTimeout(timeout time.Duration) bool

type Output

type Output struct {
	// contains filtered or unexported fields
}

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(d *Display) (*Window, error)

func (*Window) Decorated added in v0.1.1

func (w *Window) Decorated() bool

func (*Window) Destroy

func (w *Window) Destroy()

func (*Window) DragWindow added in v0.1.1

func (w *Window) DragWindow()

func (*Window) Fullscreen

func (w *Window) Fullscreen() bool

func (*Window) InnerSize

func (w *Window) InnerSize() dpi.PhysicalSize[uint32]

func (*Window) Maximized

func (w *Window) Maximized() bool

func (*Window) SetCloseRequestedCallback

func (w *Window) SetCloseRequestedCallback(cb events.WindowCloseRequestedCallback)

func (*Window) SetCursorEnteredCallback

func (w *Window) SetCursorEnteredCallback(cb events.WindowCursorEnteredCallback)

func (*Window) SetCursorIcon

func (w *Window) SetCursorIcon(icon cursors.Icon)

func (*Window) SetCursorLeftCallback

func (w *Window) SetCursorLeftCallback(cb events.WindowCursorLeftCallback)

func (*Window) SetCursorMovedCallback

func (w *Window) SetCursorMovedCallback(cb events.WindowCursorMovedCallback)

func (*Window) SetCursorVisible

func (w *Window) SetCursorVisible(visible bool)

func (*Window) SetDecorations added in v0.1.1

func (w *Window) SetDecorations(decorate bool)

func (*Window) SetFocusedCallback

func (w *Window) SetFocusedCallback(cb events.WindowFocusedCallback)

func (*Window) SetFullscreen

func (w *Window) SetFullscreen(fullscreen bool)

func (*Window) SetInnerSize

func (w *Window) SetInnerSize(size dpi.Size[uint32])

func (*Window) SetKeyboardInputCallback

func (w *Window) SetKeyboardInputCallback(cb events.WindowKeyboardInputCallback)

func (*Window) SetMaxInnerSize

func (w *Window) SetMaxInnerSize(size dpi.Size[uint32])

func (*Window) SetMaximized

func (w *Window) SetMaximized(maximized bool)

func (*Window) SetMinInnerSize

func (w *Window) SetMinInnerSize(size dpi.Size[uint32])

func (*Window) SetMinimized

func (w *Window) SetMinimized()

func (*Window) SetModifiersChangedCallback

func (w *Window) SetModifiersChangedCallback(cb events.WindowModifiersChangedCallback)

func (*Window) SetMouseInputCallback

func (w *Window) SetMouseInputCallback(cb events.WindowMouseInputCallback)

func (*Window) SetMouseScrollCallback

func (w *Window) SetMouseScrollCallback(cb events.WindowMouseScrollCallback)

func (*Window) SetReceivedCharacterCallback

func (w *Window) SetReceivedCharacterCallback(cb events.WindowReceivedCharacterCallback)

func (*Window) SetResizedCallback

func (w *Window) SetResizedCallback(cb events.WindowResizedCallback)

func (*Window) SetTitle

func (w *Window) SetTitle(title string)

func (*Window) SetTouchInputCallback

func (w *Window) SetTouchInputCallback(cb events.WindowTouchInputCallback)

func (*Window) SetUnfocusedCallback

func (w *Window) SetUnfocusedCallback(cb events.WindowUnfocusedCallback)

func (*Window) XcbConnection

func (w *Window) XcbConnection() unsafe.Pointer

func (*Window) XcbWindow

func (w *Window) XcbWindow() uint32

func (*Window) XlibDisplay

func (w *Window) XlibDisplay() unsafe.Pointer

func (*Window) XlibWindow

func (w *Window) XlibWindow() uint32

Jump to

Keyboard shortcuts

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