func atomList(prop *xgb.GetPropertyReply) IdList { if prop == nil || prop.ValueLen == 0 { return nil } if uintptr(prop.Format/8) != reflect.TypeOf(xgb.Id(0)).Size() { l.Panic("Property reply has wrong format for atoms: ", prop.Format) } return (*[1 << 24]xgb.Id)(unsafe.Pointer(&prop.Value[0]))[:prop.ValueLen] }
func (w Window) Id() xgb.Id { return xgb.Id(w) }