regen stringer types
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
aa2ac23130
commit
ba36a87eb7
@ -2,7 +2,22 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[BtnLeft-1]
|
||||
_ = x[BtnMiddle-2]
|
||||
_ = x[BtnRight-4]
|
||||
_ = x[BtnFour-8]
|
||||
_ = x[BtnFive-16]
|
||||
_ = x[BtnSix-32]
|
||||
_ = x[BtnSeven-64]
|
||||
_ = x[BtnEight-128]
|
||||
_ = x[BtnNone-0]
|
||||
}
|
||||
|
||||
const (
|
||||
_Button_name_0 = "BtnNoneBtnLeftBtnMiddle"
|
||||
@ -16,17 +31,11 @@ const (
|
||||
|
||||
var (
|
||||
_Button_index_0 = [...]uint8{0, 7, 14, 23}
|
||||
_Button_index_1 = [...]uint8{0, 8}
|
||||
_Button_index_2 = [...]uint8{0, 7}
|
||||
_Button_index_3 = [...]uint8{0, 7}
|
||||
_Button_index_4 = [...]uint8{0, 6}
|
||||
_Button_index_5 = [...]uint8{0, 8}
|
||||
_Button_index_6 = [...]uint8{0, 8}
|
||||
)
|
||||
|
||||
func (i Button) String() string {
|
||||
switch {
|
||||
case 0 <= i && i <= 2:
|
||||
case i <= 2:
|
||||
return _Button_name_0[_Button_index_0[i]:_Button_index_0[i+1]]
|
||||
case i == 4:
|
||||
return _Button_name_1
|
||||
@ -41,6 +50,6 @@ func (i Button) String() string {
|
||||
case i == 128:
|
||||
return _Button_name_6
|
||||
default:
|
||||
return fmt.Sprintf("Button(%d)", i)
|
||||
return "Button(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,21 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[SetPixelFormatMsgType-0]
|
||||
_ = x[SetEncodingsMsgType-2]
|
||||
_ = x[FramebufferUpdateRequestMsgType-3]
|
||||
_ = x[KeyEventMsgType-4]
|
||||
_ = x[PointerEventMsgType-5]
|
||||
_ = x[ClientCutTextMsgType-6]
|
||||
_ = x[AteniKVMKeyEventMsgType-4]
|
||||
_ = x[AteniKVMPointerEventMsgType-5]
|
||||
}
|
||||
|
||||
const (
|
||||
_ClientMessageType_name_0 = "SetPixelFormatMsgType"
|
||||
@ -10,7 +24,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
_ClientMessageType_index_0 = [...]uint8{0, 21}
|
||||
_ClientMessageType_index_1 = [...]uint8{0, 19, 50, 65, 84, 104}
|
||||
)
|
||||
|
||||
@ -22,6 +35,6 @@ func (i ClientMessageType) String() string {
|
||||
i -= 2
|
||||
return _ClientMessageType_name_1[_ClientMessageType_index_1[i]:_ClientMessageType_index_1[i+1]]
|
||||
default:
|
||||
return fmt.Sprintf("ClientMessageType(%d)", i)
|
||||
return "ClientMessageType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ func (enc *CursorPseudoEncoding) Read(c Conn, rect *Rectangle) error {
|
||||
return err
|
||||
}
|
||||
|
||||
bitmask := make([]byte, int((rect.Width+7)/8*rect.Height))
|
||||
if err := binary.Read(c, binary.BigEndian, &bitmask); err != nil {
|
||||
enc.BitMask = make([]byte, int((rect.Width+7)/8*rect.Height))
|
||||
if err := binary.Read(c, binary.BigEndian, &enc.BitMask); err != nil {
|
||||
return err
|
||||
}
|
||||
/*
|
||||
|
@ -2,9 +2,70 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
const _EncodingType_name = "EncContinuousUpdatesPseudoEncFencePseudoEncClientRedirectEncXvpPseudoEncExtendedDesktopSizePseudoEncDesktopNamePseudoEncTightPngEncQEMUExtendedKeyEventPseudoEncQEMUPointerMotionChangePseudoEncCompressionLevel1EncCompressionLevel2EncCompressionLevel3EncCompressionLevel4EncCompressionLevel5EncCompressionLevel6EncCompressionLevel7EncCompressionLevel8EncCompressionLevel9EncCompressionLevel10EncXCursorPseudoEncCursorPseudoEncLastRectPseudoEncDesktopSizePseudoEncJPEGQualityLevelPseudo1EncJPEGQualityLevelPseudo2EncJPEGQualityLevelPseudo3EncJPEGQualityLevelPseudo4EncJPEGQualityLevelPseudo5EncJPEGQualityLevelPseudo6EncJPEGQualityLevelPseudo7EncJPEGQualityLevelPseudo8EncJPEGQualityLevelPseudo9EncJPEGQualityLevelPseudo10EncRawEncCopyRectEncRREEncCoRREEncHextileEncZlibEncTightEncZlibHexEncUltra1EncUltra2EncTRLEEncZRLEEncJPEGEncJRLEEncAtenAST2100EncAtenASTJPEGEncAtenHermonEncAtenYarkonEncAtenPilot3"
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[EncRaw-0]
|
||||
_ = x[EncCopyRect-1]
|
||||
_ = x[EncRRE-2]
|
||||
_ = x[EncCoRRE-4]
|
||||
_ = x[EncHextile-5]
|
||||
_ = x[EncZlib-6]
|
||||
_ = x[EncTight-7]
|
||||
_ = x[EncZlibHex-8]
|
||||
_ = x[EncUltra1-9]
|
||||
_ = x[EncUltra2-10]
|
||||
_ = x[EncJPEG-21]
|
||||
_ = x[EncJRLE-22]
|
||||
_ = x[EncTRLE-15]
|
||||
_ = x[EncZRLE-16]
|
||||
_ = x[EncAtenAST2100-87]
|
||||
_ = x[EncAtenASTJPEG-88]
|
||||
_ = x[EncAtenHermon-89]
|
||||
_ = x[EncAtenYarkon-96]
|
||||
_ = x[EncAtenPilot3-97]
|
||||
_ = x[EncJPEGQualityLevelPseudo10 - -23]
|
||||
_ = x[EncJPEGQualityLevelPseudo9 - -24]
|
||||
_ = x[EncJPEGQualityLevelPseudo8 - -25]
|
||||
_ = x[EncJPEGQualityLevelPseudo7 - -26]
|
||||
_ = x[EncJPEGQualityLevelPseudo6 - -27]
|
||||
_ = x[EncJPEGQualityLevelPseudo5 - -28]
|
||||
_ = x[EncJPEGQualityLevelPseudo4 - -29]
|
||||
_ = x[EncJPEGQualityLevelPseudo3 - -30]
|
||||
_ = x[EncJPEGQualityLevelPseudo2 - -31]
|
||||
_ = x[EncJPEGQualityLevelPseudo1 - -32]
|
||||
_ = x[EncCursorPseudo - -239]
|
||||
_ = x[EncXCursorPseudo - -240]
|
||||
_ = x[EncDesktopSizePseudo - -223]
|
||||
_ = x[EncLastRectPseudo - -224]
|
||||
_ = x[EncCompressionLevel10 - -247]
|
||||
_ = x[EncCompressionLevel9 - -248]
|
||||
_ = x[EncCompressionLevel8 - -249]
|
||||
_ = x[EncCompressionLevel7 - -250]
|
||||
_ = x[EncCompressionLevel6 - -251]
|
||||
_ = x[EncCompressionLevel5 - -252]
|
||||
_ = x[EncCompressionLevel4 - -253]
|
||||
_ = x[EncCompressionLevel3 - -254]
|
||||
_ = x[EncCompressionLevel2 - -255]
|
||||
_ = x[EncCompressionLevel1 - -256]
|
||||
_ = x[EncQEMUPointerMotionChangePseudo - -257]
|
||||
_ = x[EncQEMUExtendedKeyEventPseudo - -258]
|
||||
_ = x[EncTightPng - -260]
|
||||
_ = x[EncLedStatePseudo - -261]
|
||||
_ = x[EncDesktopNamePseudo - -307]
|
||||
_ = x[EncExtendedDesktopSizePseudo - -308]
|
||||
_ = x[EncXvpPseudo - -309]
|
||||
_ = x[EncClientRedirect - -311]
|
||||
_ = x[EncFencePseudo - -312]
|
||||
_ = x[EncContinuousUpdatesPseudo - -313]
|
||||
_ = x[EncAtenHermonSubrect-0]
|
||||
_ = x[EncAtenHermonRaw-1]
|
||||
}
|
||||
|
||||
const _EncodingType_name = "EncContinuousUpdatesPseudoEncFencePseudoEncClientRedirectEncXvpPseudoEncExtendedDesktopSizePseudoEncDesktopNamePseudoEncLedStatePseudoEncTightPngEncQEMUExtendedKeyEventPseudoEncQEMUPointerMotionChangePseudoEncCompressionLevel1EncCompressionLevel2EncCompressionLevel3EncCompressionLevel4EncCompressionLevel5EncCompressionLevel6EncCompressionLevel7EncCompressionLevel8EncCompressionLevel9EncCompressionLevel10EncXCursorPseudoEncCursorPseudoEncLastRectPseudoEncDesktopSizePseudoEncJPEGQualityLevelPseudo1EncJPEGQualityLevelPseudo2EncJPEGQualityLevelPseudo3EncJPEGQualityLevelPseudo4EncJPEGQualityLevelPseudo5EncJPEGQualityLevelPseudo6EncJPEGQualityLevelPseudo7EncJPEGQualityLevelPseudo8EncJPEGQualityLevelPseudo9EncJPEGQualityLevelPseudo10EncRawEncCopyRectEncRREEncCoRREEncHextileEncZlibEncTightEncZlibHexEncUltra1EncUltra2EncTRLEEncZRLEEncJPEGEncJRLEEncAtenAST2100EncAtenASTJPEGEncAtenHermonEncAtenYarkonEncAtenPilot3"
|
||||
|
||||
var _EncodingType_map = map[EncodingType]string{
|
||||
-313: _EncodingType_name[0:26],
|
||||
@ -13,57 +74,58 @@ var _EncodingType_map = map[EncodingType]string{
|
||||
-309: _EncodingType_name[57:69],
|
||||
-308: _EncodingType_name[69:97],
|
||||
-307: _EncodingType_name[97:117],
|
||||
-260: _EncodingType_name[117:128],
|
||||
-258: _EncodingType_name[128:157],
|
||||
-257: _EncodingType_name[157:189],
|
||||
-256: _EncodingType_name[189:209],
|
||||
-255: _EncodingType_name[209:229],
|
||||
-254: _EncodingType_name[229:249],
|
||||
-253: _EncodingType_name[249:269],
|
||||
-252: _EncodingType_name[269:289],
|
||||
-251: _EncodingType_name[289:309],
|
||||
-250: _EncodingType_name[309:329],
|
||||
-249: _EncodingType_name[329:349],
|
||||
-248: _EncodingType_name[349:369],
|
||||
-247: _EncodingType_name[369:390],
|
||||
-240: _EncodingType_name[390:406],
|
||||
-239: _EncodingType_name[406:421],
|
||||
-224: _EncodingType_name[421:438],
|
||||
-223: _EncodingType_name[438:458],
|
||||
-32: _EncodingType_name[458:484],
|
||||
-31: _EncodingType_name[484:510],
|
||||
-30: _EncodingType_name[510:536],
|
||||
-29: _EncodingType_name[536:562],
|
||||
-28: _EncodingType_name[562:588],
|
||||
-27: _EncodingType_name[588:614],
|
||||
-26: _EncodingType_name[614:640],
|
||||
-25: _EncodingType_name[640:666],
|
||||
-24: _EncodingType_name[666:692],
|
||||
-23: _EncodingType_name[692:719],
|
||||
0: _EncodingType_name[719:725],
|
||||
1: _EncodingType_name[725:736],
|
||||
2: _EncodingType_name[736:742],
|
||||
4: _EncodingType_name[742:750],
|
||||
5: _EncodingType_name[750:760],
|
||||
6: _EncodingType_name[760:767],
|
||||
7: _EncodingType_name[767:775],
|
||||
8: _EncodingType_name[775:785],
|
||||
9: _EncodingType_name[785:794],
|
||||
10: _EncodingType_name[794:803],
|
||||
15: _EncodingType_name[803:810],
|
||||
16: _EncodingType_name[810:817],
|
||||
21: _EncodingType_name[817:824],
|
||||
22: _EncodingType_name[824:831],
|
||||
87: _EncodingType_name[831:845],
|
||||
88: _EncodingType_name[845:859],
|
||||
89: _EncodingType_name[859:872],
|
||||
96: _EncodingType_name[872:885],
|
||||
97: _EncodingType_name[885:898],
|
||||
-261: _EncodingType_name[117:134],
|
||||
-260: _EncodingType_name[134:145],
|
||||
-258: _EncodingType_name[145:174],
|
||||
-257: _EncodingType_name[174:206],
|
||||
-256: _EncodingType_name[206:226],
|
||||
-255: _EncodingType_name[226:246],
|
||||
-254: _EncodingType_name[246:266],
|
||||
-253: _EncodingType_name[266:286],
|
||||
-252: _EncodingType_name[286:306],
|
||||
-251: _EncodingType_name[306:326],
|
||||
-250: _EncodingType_name[326:346],
|
||||
-249: _EncodingType_name[346:366],
|
||||
-248: _EncodingType_name[366:386],
|
||||
-247: _EncodingType_name[386:407],
|
||||
-240: _EncodingType_name[407:423],
|
||||
-239: _EncodingType_name[423:438],
|
||||
-224: _EncodingType_name[438:455],
|
||||
-223: _EncodingType_name[455:475],
|
||||
-32: _EncodingType_name[475:501],
|
||||
-31: _EncodingType_name[501:527],
|
||||
-30: _EncodingType_name[527:553],
|
||||
-29: _EncodingType_name[553:579],
|
||||
-28: _EncodingType_name[579:605],
|
||||
-27: _EncodingType_name[605:631],
|
||||
-26: _EncodingType_name[631:657],
|
||||
-25: _EncodingType_name[657:683],
|
||||
-24: _EncodingType_name[683:709],
|
||||
-23: _EncodingType_name[709:736],
|
||||
0: _EncodingType_name[736:742],
|
||||
1: _EncodingType_name[742:753],
|
||||
2: _EncodingType_name[753:759],
|
||||
4: _EncodingType_name[759:767],
|
||||
5: _EncodingType_name[767:777],
|
||||
6: _EncodingType_name[777:784],
|
||||
7: _EncodingType_name[784:792],
|
||||
8: _EncodingType_name[792:802],
|
||||
9: _EncodingType_name[802:811],
|
||||
10: _EncodingType_name[811:820],
|
||||
15: _EncodingType_name[820:827],
|
||||
16: _EncodingType_name[827:834],
|
||||
21: _EncodingType_name[834:841],
|
||||
22: _EncodingType_name[841:848],
|
||||
87: _EncodingType_name[848:862],
|
||||
88: _EncodingType_name[862:876],
|
||||
89: _EncodingType_name[876:889],
|
||||
96: _EncodingType_name[889:902],
|
||||
97: _EncodingType_name[902:915],
|
||||
}
|
||||
|
||||
func (i EncodingType) String() string {
|
||||
if str, ok := _EncodingType_map[i]; ok {
|
||||
return str
|
||||
}
|
||||
return fmt.Sprintf("EncodingType(%d)", i)
|
||||
return "EncodingType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
|
200
key_string.go
200
key_string.go
@ -2,7 +2,203 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[Space-32]
|
||||
_ = x[Exclaim-33]
|
||||
_ = x[QuoteDbl-34]
|
||||
_ = x[NumberSign-35]
|
||||
_ = x[Dollar-36]
|
||||
_ = x[Percent-37]
|
||||
_ = x[Ampersand-38]
|
||||
_ = x[Apostrophe-39]
|
||||
_ = x[ParenLeft-40]
|
||||
_ = x[ParenRight-41]
|
||||
_ = x[Asterisk-42]
|
||||
_ = x[Plus-43]
|
||||
_ = x[Comma-44]
|
||||
_ = x[Minus-45]
|
||||
_ = x[Period-46]
|
||||
_ = x[Slash-47]
|
||||
_ = x[Digit0-48]
|
||||
_ = x[Digit1-49]
|
||||
_ = x[Digit2-50]
|
||||
_ = x[Digit3-51]
|
||||
_ = x[Digit4-52]
|
||||
_ = x[Digit5-53]
|
||||
_ = x[Digit6-54]
|
||||
_ = x[Digit7-55]
|
||||
_ = x[Digit8-56]
|
||||
_ = x[Digit9-57]
|
||||
_ = x[Colon-58]
|
||||
_ = x[Semicolon-59]
|
||||
_ = x[Less-60]
|
||||
_ = x[Equal-61]
|
||||
_ = x[Greater-62]
|
||||
_ = x[Question-63]
|
||||
_ = x[At-64]
|
||||
_ = x[A-65]
|
||||
_ = x[B-66]
|
||||
_ = x[C-67]
|
||||
_ = x[D-68]
|
||||
_ = x[E-69]
|
||||
_ = x[F-70]
|
||||
_ = x[G-71]
|
||||
_ = x[H-72]
|
||||
_ = x[I-73]
|
||||
_ = x[J-74]
|
||||
_ = x[K-75]
|
||||
_ = x[L-76]
|
||||
_ = x[M-77]
|
||||
_ = x[N-78]
|
||||
_ = x[O-79]
|
||||
_ = x[P-80]
|
||||
_ = x[Q-81]
|
||||
_ = x[R-82]
|
||||
_ = x[S-83]
|
||||
_ = x[T-84]
|
||||
_ = x[U-85]
|
||||
_ = x[V-86]
|
||||
_ = x[W-87]
|
||||
_ = x[X-88]
|
||||
_ = x[Y-89]
|
||||
_ = x[Z-90]
|
||||
_ = x[BracketLeft-91]
|
||||
_ = x[Backslash-92]
|
||||
_ = x[BracketRight-93]
|
||||
_ = x[AsciiCircum-94]
|
||||
_ = x[Underscore-95]
|
||||
_ = x[Grave-96]
|
||||
_ = x[SmallA-97]
|
||||
_ = x[SmallB-98]
|
||||
_ = x[SmallC-99]
|
||||
_ = x[SmallD-100]
|
||||
_ = x[SmallE-101]
|
||||
_ = x[SmallF-102]
|
||||
_ = x[SmallG-103]
|
||||
_ = x[SmallH-104]
|
||||
_ = x[SmallI-105]
|
||||
_ = x[SmallJ-106]
|
||||
_ = x[SmallK-107]
|
||||
_ = x[SmallL-108]
|
||||
_ = x[SmallM-109]
|
||||
_ = x[SmallN-110]
|
||||
_ = x[SmallO-111]
|
||||
_ = x[SmallP-112]
|
||||
_ = x[SmallQ-113]
|
||||
_ = x[SmallR-114]
|
||||
_ = x[SmallS-115]
|
||||
_ = x[SmallT-116]
|
||||
_ = x[SmallU-117]
|
||||
_ = x[SmallV-118]
|
||||
_ = x[SmallW-119]
|
||||
_ = x[SmallX-120]
|
||||
_ = x[SmallY-121]
|
||||
_ = x[SmallZ-122]
|
||||
_ = x[BraceLeft-123]
|
||||
_ = x[Bar-124]
|
||||
_ = x[BraceRight-125]
|
||||
_ = x[AsciiTilde-126]
|
||||
_ = x[BackSpace-65288]
|
||||
_ = x[Tab-65289]
|
||||
_ = x[Linefeed-65290]
|
||||
_ = x[Clear-65291]
|
||||
_ = x[Return-65293]
|
||||
_ = x[Pause-65299]
|
||||
_ = x[ScrollLock-65300]
|
||||
_ = x[SysReq-65301]
|
||||
_ = x[Escape-65307]
|
||||
_ = x[Delete-65535]
|
||||
_ = x[Home-65360]
|
||||
_ = x[Left-65361]
|
||||
_ = x[Up-65362]
|
||||
_ = x[Right-65363]
|
||||
_ = x[Down-65364]
|
||||
_ = x[PageUp-65365]
|
||||
_ = x[PageDown-65366]
|
||||
_ = x[End-65367]
|
||||
_ = x[Begin-65368]
|
||||
_ = x[Select-65376]
|
||||
_ = x[Print-65376]
|
||||
_ = x[Execute-65376]
|
||||
_ = x[Insert-65376]
|
||||
_ = x[Undo-65376]
|
||||
_ = x[Redo-65376]
|
||||
_ = x[Menu-65376]
|
||||
_ = x[Find-65376]
|
||||
_ = x[Cancel-65376]
|
||||
_ = x[Help-65376]
|
||||
_ = x[Break-65376]
|
||||
_ = x[ModeSwitch-65406]
|
||||
_ = x[NumLock-65407]
|
||||
_ = x[KeypadSpace-65408]
|
||||
_ = x[KeypadTab-65417]
|
||||
_ = x[KeypadEnter-65421]
|
||||
_ = x[KeypadF1-65425]
|
||||
_ = x[KeypadF2-65426]
|
||||
_ = x[KeypadF3-65427]
|
||||
_ = x[KeypadF4-65428]
|
||||
_ = x[KeypadHome-65429]
|
||||
_ = x[KeypadLeft-65430]
|
||||
_ = x[KeypadUp-65431]
|
||||
_ = x[KeypadRight-65432]
|
||||
_ = x[KeypadDown-65433]
|
||||
_ = x[KeypadPrior-65434]
|
||||
_ = x[KeypadPageUp-65435]
|
||||
_ = x[KeypadNext-65436]
|
||||
_ = x[KeypadPageDown-65437]
|
||||
_ = x[KeypadEnd-65438]
|
||||
_ = x[KeypadBegin-65439]
|
||||
_ = x[KeypadInsert-65440]
|
||||
_ = x[KeypadDelete-65441]
|
||||
_ = x[KeypadMultiply-65442]
|
||||
_ = x[KeypadAdd-65443]
|
||||
_ = x[KeypadSeparator-65444]
|
||||
_ = x[KeypadSubtract-65445]
|
||||
_ = x[KeypadDecimal-65446]
|
||||
_ = x[KeypadDivide-65447]
|
||||
_ = x[Keypad0-65448]
|
||||
_ = x[Keypad1-65449]
|
||||
_ = x[Keypad2-65450]
|
||||
_ = x[Keypad3-65451]
|
||||
_ = x[Keypad4-65452]
|
||||
_ = x[Keypad5-65453]
|
||||
_ = x[Keypad6-65454]
|
||||
_ = x[Keypad7-65455]
|
||||
_ = x[Keypad8-65456]
|
||||
_ = x[Keypad9-65457]
|
||||
_ = x[KeypadEqual-65469]
|
||||
_ = x[F1-65470]
|
||||
_ = x[F2-65471]
|
||||
_ = x[F3-65472]
|
||||
_ = x[F4-65473]
|
||||
_ = x[F5-65474]
|
||||
_ = x[F6-65475]
|
||||
_ = x[F7-65476]
|
||||
_ = x[F8-65477]
|
||||
_ = x[F9-65478]
|
||||
_ = x[F10-65479]
|
||||
_ = x[F11-65480]
|
||||
_ = x[F12-65481]
|
||||
_ = x[ShiftLeft-65505]
|
||||
_ = x[ShiftRight-65506]
|
||||
_ = x[ControlLeft-65507]
|
||||
_ = x[ControlRight-65508]
|
||||
_ = x[CapsLock-65509]
|
||||
_ = x[ShiftLock-65510]
|
||||
_ = x[MetaLeft-65511]
|
||||
_ = x[MetaRight-65512]
|
||||
_ = x[AltLeft-65513]
|
||||
_ = x[AltRight-65514]
|
||||
_ = x[SuperLeft-65515]
|
||||
_ = x[SuperRight-65516]
|
||||
_ = x[HyperLeft-65517]
|
||||
_ = x[HyperRight-65518]
|
||||
}
|
||||
|
||||
const _Key_name = "SpaceExclaimQuoteDblNumberSignDollarPercentAmpersandApostropheParenLeftParenRightAsteriskPlusCommaMinusPeriodSlashDigit0Digit1Digit2Digit3Digit4Digit5Digit6Digit7Digit8Digit9ColonSemicolonLessEqualGreaterQuestionAtABCDEFGHIJKLMNOPQRSTUVWXYZBracketLeftBackslashBracketRightAsciiCircumUnderscoreGraveSmallASmallBSmallCSmallDSmallESmallFSmallGSmallHSmallISmallJSmallKSmallLSmallMSmallNSmallOSmallPSmallQSmallRSmallSSmallTSmallUSmallVSmallWSmallXSmallYSmallZBraceLeftBarBraceRightAsciiTildeBackSpaceTabLinefeedClearReturnPauseScrollLockSysReqEscapeHomeLeftUpRightDownPageUpPageDownEndBeginSelectModeSwitchNumLockKeypadSpaceKeypadTabKeypadEnterKeypadF1KeypadF2KeypadF3KeypadF4KeypadHomeKeypadLeftKeypadUpKeypadRightKeypadDownKeypadPriorKeypadPageUpKeypadNextKeypadPageDownKeypadEndKeypadBeginKeypadInsertKeypadDeleteKeypadMultiplyKeypadAddKeypadSeparatorKeypadSubtractKeypadDecimalKeypadDivideKeypad0Keypad1Keypad2Keypad3Keypad4Keypad5Keypad6Keypad7Keypad8Keypad9KeypadEqualF1F2F3F4F5F6F7F8F9F10F11F12ShiftLeftShiftRightControlLeftControlRightCapsLockShiftLockMetaLeftMetaRightAltLeftAltRightSuperLeftSuperRightHyperLeftHyperRightDelete"
|
||||
|
||||
@ -193,5 +389,5 @@ func (i Key) String() string {
|
||||
if str, ok := _Key_map[i]; ok {
|
||||
return str
|
||||
}
|
||||
return fmt.Sprintf("Key(%d)", i)
|
||||
return "Key(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
|
@ -2,7 +2,30 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[SecSubTypeUnknown-0]
|
||||
_ = x[SecSubTypeVeNCrypt01Unknown-0]
|
||||
_ = x[SecSubTypeVeNCrypt01Plain-19]
|
||||
_ = x[SecSubTypeVeNCrypt01TLSNone-20]
|
||||
_ = x[SecSubTypeVeNCrypt01TLSVNC-21]
|
||||
_ = x[SecSubTypeVeNCrypt01TLSPlain-22]
|
||||
_ = x[SecSubTypeVeNCrypt01X509None-23]
|
||||
_ = x[SecSubTypeVeNCrypt01X509VNC-24]
|
||||
_ = x[SecSubTypeVeNCrypt01X509Plain-25]
|
||||
_ = x[SecSubTypeVeNCrypt02Unknown-0]
|
||||
_ = x[SecSubTypeVeNCrypt02Plain-256]
|
||||
_ = x[SecSubTypeVeNCrypt02TLSNone-257]
|
||||
_ = x[SecSubTypeVeNCrypt02TLSVNC-258]
|
||||
_ = x[SecSubTypeVeNCrypt02TLSPlain-259]
|
||||
_ = x[SecSubTypeVeNCrypt02X509None-260]
|
||||
_ = x[SecSubTypeVeNCrypt02X509VNC-261]
|
||||
_ = x[SecSubTypeVeNCrypt02X509Plain-262]
|
||||
}
|
||||
|
||||
const (
|
||||
_SecuritySubType_name_0 = "SecSubTypeUnknown"
|
||||
@ -11,7 +34,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
_SecuritySubType_index_0 = [...]uint8{0, 17}
|
||||
_SecuritySubType_index_1 = [...]uint8{0, 25, 52, 78, 106, 134, 161, 190}
|
||||
_SecuritySubType_index_2 = [...]uint8{0, 25, 52, 78, 106, 134, 161, 190}
|
||||
)
|
||||
@ -27,6 +49,6 @@ func (i SecuritySubType) String() string {
|
||||
i -= 256
|
||||
return _SecuritySubType_name_2[_SecuritySubType_index_2[i]:_SecuritySubType_index_2[i+1]]
|
||||
default:
|
||||
return fmt.Sprintf("SecuritySubType(%d)", i)
|
||||
return "SecuritySubType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,19 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[SecTypeUnknown-0]
|
||||
_ = x[SecTypeNone-1]
|
||||
_ = x[SecTypeVNC-2]
|
||||
_ = x[SecTypeTight-16]
|
||||
_ = x[SecTypeATEN-16]
|
||||
_ = x[SecTypeVeNCrypt-19]
|
||||
}
|
||||
|
||||
const (
|
||||
_SecurityType_name_0 = "SecTypeUnknownSecTypeNoneSecTypeVNC"
|
||||
@ -12,19 +24,17 @@ const (
|
||||
|
||||
var (
|
||||
_SecurityType_index_0 = [...]uint8{0, 14, 25, 35}
|
||||
_SecurityType_index_1 = [...]uint8{0, 12}
|
||||
_SecurityType_index_2 = [...]uint8{0, 15}
|
||||
)
|
||||
|
||||
func (i SecurityType) String() string {
|
||||
switch {
|
||||
case 0 <= i && i <= 2:
|
||||
case i <= 2:
|
||||
return _SecurityType_name_0[_SecurityType_index_0[i]:_SecurityType_index_0[i+1]]
|
||||
case i == 16:
|
||||
return _SecurityType_name_1
|
||||
case i == 19:
|
||||
return _SecurityType_name_2
|
||||
default:
|
||||
return fmt.Sprintf("SecurityType(%d)", i)
|
||||
return "SecurityType(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,17 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[TightCompressionBasic-0]
|
||||
_ = x[TightCompressionFill-8]
|
||||
_ = x[TightCompressionJPEG-9]
|
||||
_ = x[TightCompressionPNG-10]
|
||||
}
|
||||
|
||||
const (
|
||||
_TightCompression_name_0 = "TightCompressionBasic"
|
||||
@ -10,7 +20,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
_TightCompression_index_0 = [...]uint8{0, 21}
|
||||
_TightCompression_index_1 = [...]uint8{0, 20, 40, 59}
|
||||
)
|
||||
|
||||
@ -22,6 +31,6 @@ func (i TightCompression) String() string {
|
||||
i -= 8
|
||||
return _TightCompression_name_1[_TightCompression_index_1[i]:_TightCompression_index_1[i+1]]
|
||||
default:
|
||||
return fmt.Sprintf("TightCompression(%d)", i)
|
||||
return "TightCompression(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,16 @@
|
||||
|
||||
package rfb
|
||||
|
||||
import "fmt"
|
||||
import "strconv"
|
||||
|
||||
func _() {
|
||||
// An "invalid array index" compiler error signifies that the constant values have changed.
|
||||
// Re-run the stringer command to generate them again.
|
||||
var x [1]struct{}
|
||||
_ = x[TightFilterCopy-0]
|
||||
_ = x[TightFilterPalette-1]
|
||||
_ = x[TightFilterGradient-2]
|
||||
}
|
||||
|
||||
const _TightFilter_name = "TightFilterCopyTightFilterPaletteTightFilterGradient"
|
||||
|
||||
@ -10,7 +19,7 @@ var _TightFilter_index = [...]uint8{0, 15, 33, 52}
|
||||
|
||||
func (i TightFilter) String() string {
|
||||
if i >= TightFilter(len(_TightFilter_index)-1) {
|
||||
return fmt.Sprintf("TightFilter(%d)", i)
|
||||
return "TightFilter(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
return _TightFilter_name[_TightFilter_index[i]:_TightFilter_index[i+1]]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user