Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cimgui_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5610,14 +5610,26 @@ func (self ImFont) SetFallbackChar(v ImWchar) {
C.ImFont_SetFallbackChar(self.handle(), C.ImWchar(v))
}

func (self ImFont) GetFallbackChar() ImWchar {
return (ImWchar)(C.ImFont_GetFallbackChar(self.handle()))
}

func (self ImFont) SetEllipsisChar(v ImWchar) {
C.ImFont_SetEllipsisChar(self.handle(), C.ImWchar(v))
}

func (self ImFont) GetEllipsisChar() ImWchar {
return (ImWchar)(C.ImFont_GetEllipsisChar(self.handle()))
}

func (self ImFont) SetDotChar(v ImWchar) {
C.ImFont_SetDotChar(self.handle(), C.ImWchar(v))
}

func (self ImFont) GetDotChar() ImWchar {
return (ImWchar)(C.ImFont_GetDotChar(self.handle()))
}

func (self ImFont) SetDirtyLookupTables(v bool) {
C.ImFont_SetDirtyLookupTables(self.handle(), C.bool(v))
}
Expand Down Expand Up @@ -5950,6 +5962,10 @@ func (self ImFontConfig) SetEllipsisChar(v ImWchar) {
C.ImFontConfig_SetEllipsisChar(self.handle(), C.ImWchar(v))
}

func (self ImFontConfig) GetEllipsisChar() ImWchar {
return (ImWchar)(C.ImFontConfig_GetEllipsisChar(self.handle()))
}

func (self ImFontConfig) SetDstFont(v ImFont) {
C.ImFontConfig_SetDstFont(self.handle(), v.handle())
}
Expand Down Expand Up @@ -8801,6 +8817,10 @@ func (self ImGuiInputTextCallbackData) SetEventChar(v ImWchar) {
C.ImGuiInputTextCallbackData_SetEventChar(self.handle(), C.ImWchar(v))
}

func (self ImGuiInputTextCallbackData) GetEventChar() ImWchar {
return (ImWchar)(C.ImGuiInputTextCallbackData_GetEventChar(self.handle()))
}

func (self ImGuiInputTextCallbackData) SetEventKey(v Key) {
C.ImGuiInputTextCallbackData_SetEventKey(self.handle(), C.ImGuiKey(v))
}
Expand Down
1 change: 1 addition & 0 deletions cmd/codegen/gengo.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ import "unsafe"
"char*": constCharReturnW,
"const char*": constCharReturnW,
"const ImWchar*": constWCharPtrReturnW,
"ImWchar": imWcharReturnW,
"float": floatReturnW,
"double": doubleReturnW,
"int": intReturnW,
Expand Down
6 changes: 6 additions & 0 deletions cmd/codegen/return_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ func constWCharPtrReturnW() (returnType string, returnStmt string) {
return
}

func imWcharReturnW() (returnType string, returnStmt string) {
returnType = "ImWchar"
returnStmt = "return (ImWchar)(%s)"
return
}

func imVec4PtrReturnW() (returnType string, returnStmt string) {
returnType = "ImVec4"
returnStmt = "return newImVec4FromCPtr(%s)"
Expand Down