本文整理匯總了Golang中C.WxTextEntryPtr函數的典型用法代碼示例。如果您正苦於以下問題:Golang WxTextEntryPtr函數的具體用法?Golang WxTextEntryPtr怎麽用?Golang WxTextEntryPtr使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了WxTextEntryPtr函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: SetSelection
func (t *textEntry) SetSelection(from int, to int) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_SetSelection(p, C.long(from), C.long(to))
}
示例2: InsertionPoint
func (t *textEntry) InsertionPoint() int {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return 0
}
return int(C.wxTextEntry_GetInsertionPoint(p))
}
示例3: Hint
func (t *textEntry) Hint() string {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return ""
}
return goString(C.wxTextEntry_GetHint(p))
}
示例4: AutoComplete
func (t *textEntry) AutoComplete(choices []string) bool {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return false
}
return goBool(C.wxTextEntry_AutoComplete(p, cStringSlice(&choices)))
}
示例5: StringSelection
func (t *textEntry) StringSelection() string {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return ""
}
return goString(C.wxTextEntry_GetStringSelection(p))
}
示例6: SetHint
func (t *textEntry) SetHint(hint string) bool {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return false
}
return goBool(C.wxTextEntry_SetHint(p, cString(&hint)))
}
示例7: CanUndo
func (t *textEntry) CanUndo() bool {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return false
}
return goBool(C.wxTextEntry_CanUndo(p))
}
示例8: Cut
func (t *textEntry) Cut() {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_Cut(p)
}
示例9: SetInsertionPoint
func (t *textEntry) SetInsertionPoint(pos int) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_SetInsertionPoint(p, C.long(pos))
}
示例10: WriteText
func (t *textEntry) WriteText(text string) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_WriteText(p, cString(&text))
}
示例11: Replace
func (t *textEntry) Replace(from int, to int, value string) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_Replace(p, C.long(from), C.long(to), cString(&value))
}
示例12: SetEditable
func (t *textEntry) SetEditable(editable bool) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_SetEditable(p, cBool(editable))
}
示例13: Remove
func (t *textEntry) Remove(from int, to int) {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_Remove(p, C.long(from), C.long(to))
}
示例14: Paste
func (t *textEntry) Paste() {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return
}
C.wxTextEntry_Paste(p)
}
示例15: IsEmpty
func (t *textEntry) IsEmpty() bool {
p := C.WxTextEntryPtr(pointer(t))
if p == nil {
return false
}
return goBool(C.wxTextEntry_IsEmpty(p))
}