xgb: github.com/BurntSushi/xgb/xinerama Index | Files

package xinerama

import "github.com/BurntSushi/xgb/xinerama"

Package xinerama is the X client API for the XINERAMA extension.

Index

Package Files

xinerama.go

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XINERAMA extension.

func ScreenInfoListBytes Uses

func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int

ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.

func ScreenInfoRead Uses

func ScreenInfoRead(buf []byte, v *ScreenInfo) int

ScreenInfoRead reads a byte slice into a ScreenInfo value.

func ScreenInfoReadList Uses

func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int

ScreenInfoReadList reads a byte slice into a list of ScreenInfo values.

type GetScreenCountCookie Uses

type GetScreenCountCookie struct {
    *xgb.Cookie
}

GetScreenCountCookie is a cookie used only for GetScreenCount requests.

func GetScreenCount Uses

func GetScreenCount(c *xgb.Conn, Window xproto.Window) GetScreenCountCookie

GetScreenCount sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenCountCookie.Reply()

func GetScreenCountUnchecked Uses

func GetScreenCountUnchecked(c *xgb.Conn, Window xproto.Window) GetScreenCountCookie

GetScreenCountUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetScreenCountCookie) Reply Uses

func (cook GetScreenCountCookie) Reply() (*GetScreenCountReply, error)

Reply blocks and returns the reply data for a GetScreenCount request.

type GetScreenCountReply Uses

type GetScreenCountReply struct {
    Sequence    uint16 // sequence number of the request for this reply
    Length      uint32 // number of bytes in this reply
    ScreenCount byte
    Window      xproto.Window
}

GetScreenCountReply represents the data returned from a GetScreenCount request.

type GetScreenSizeCookie Uses

type GetScreenSizeCookie struct {
    *xgb.Cookie
}

GetScreenSizeCookie is a cookie used only for GetScreenSize requests.

func GetScreenSize Uses

func GetScreenSize(c *xgb.Conn, Window xproto.Window, Screen uint32) GetScreenSizeCookie

GetScreenSize sends a checked request. If an error occurs, it will be returned with the reply by calling GetScreenSizeCookie.Reply()

func GetScreenSizeUnchecked Uses

func GetScreenSizeUnchecked(c *xgb.Conn, Window xproto.Window, Screen uint32) GetScreenSizeCookie

GetScreenSizeUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetScreenSizeCookie) Reply Uses

func (cook GetScreenSizeCookie) Reply() (*GetScreenSizeReply, error)

Reply blocks and returns the reply data for a GetScreenSize request.

type GetScreenSizeReply Uses

type GetScreenSizeReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Width  uint32
    Height uint32
    Window xproto.Window
    Screen uint32
}

GetScreenSizeReply represents the data returned from a GetScreenSize request.

type GetStateCookie Uses

type GetStateCookie struct {
    *xgb.Cookie
}

GetStateCookie is a cookie used only for GetState requests.

func GetState Uses

func GetState(c *xgb.Conn, Window xproto.Window) GetStateCookie

GetState sends a checked request. If an error occurs, it will be returned with the reply by calling GetStateCookie.Reply()

func GetStateUnchecked Uses

func GetStateUnchecked(c *xgb.Conn, Window xproto.Window) GetStateCookie

GetStateUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (GetStateCookie) Reply Uses

func (cook GetStateCookie) Reply() (*GetStateReply, error)

Reply blocks and returns the reply data for a GetState request.

type GetStateReply Uses

type GetStateReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    State    byte
    Window   xproto.Window
}

GetStateReply represents the data returned from a GetState request.

type IsActiveCookie Uses

type IsActiveCookie struct {
    *xgb.Cookie
}

IsActiveCookie is a cookie used only for IsActive requests.

func IsActive Uses

func IsActive(c *xgb.Conn) IsActiveCookie

IsActive sends a checked request. If an error occurs, it will be returned with the reply by calling IsActiveCookie.Reply()

func IsActiveUnchecked Uses

func IsActiveUnchecked(c *xgb.Conn) IsActiveCookie

IsActiveUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (IsActiveCookie) Reply Uses

func (cook IsActiveCookie) Reply() (*IsActiveReply, error)

Reply blocks and returns the reply data for a IsActive request.

type IsActiveReply Uses

type IsActiveReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    State uint32
}

IsActiveReply represents the data returned from a IsActive request.

type QueryScreensCookie Uses

type QueryScreensCookie struct {
    *xgb.Cookie
}

QueryScreensCookie is a cookie used only for QueryScreens requests.

func QueryScreens Uses

func QueryScreens(c *xgb.Conn) QueryScreensCookie

QueryScreens sends a checked request. If an error occurs, it will be returned with the reply by calling QueryScreensCookie.Reply()

func QueryScreensUnchecked Uses

func QueryScreensUnchecked(c *xgb.Conn) QueryScreensCookie

QueryScreensUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryScreensCookie) Reply Uses

func (cook QueryScreensCookie) Reply() (*QueryScreensReply, error)

Reply blocks and returns the reply data for a QueryScreens request.

type QueryScreensReply Uses

type QueryScreensReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Number uint32
    // padding: 20 bytes
    ScreenInfo []ScreenInfo // size: xgb.Pad((int(Number) * 8))
}

QueryScreensReply represents the data returned from a QueryScreens request.

type QueryVersionCookie Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

func QueryVersion(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie

QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()

func QueryVersionUnchecked Uses

func QueryVersionUnchecked(c *xgb.Conn, Major byte, Minor byte) QueryVersionCookie

QueryVersionUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (QueryVersionCookie) Reply Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

type QueryVersionReply Uses

type QueryVersionReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Major uint16
    Minor uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

type ScreenInfo Uses

type ScreenInfo struct {
    XOrg   int16
    YOrg   int16
    Width  uint16
    Height uint16
}

func (ScreenInfo) Bytes Uses

func (v ScreenInfo) Bytes() []byte

Bytes writes a ScreenInfo value to a byte slice.

Package xinerama imports 2 packages (graph) and is imported by 20 packages. Updated 2016-11-06. Refresh now. Tools for package owners.