chore(deps): bump purego-cef to v0.14.1
v0.14.0 pinned the CEF API 15000 contract and fixed the struct ABI corruption that made BrowserSettings.BackgroundColor land on chrome_status_bubble (transparent windowless canvas). v0.14.1 restores the global function bindings dropped by that regeneration (DictionaryValueCreate, V8ContextGetCurrentContext, all *Create factories) and fixes global factory ownership so created objects are adopted without a leaked reference. This makes the white-canvas fix in this branch effective: the opaque white BrowserSettings.BackgroundColor now actually reaches libcef.
- commit
- 902c404508da47722a324d2f14b2a4cfc04a2812
- author
- brice · · 2026-07-21 19:07 UTC
- parent
- 1dc7dd4
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
75 files · +1836 -1983
M go.mod +1 -1
| @@ -6,7 +6,7 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.4 | |
| 9 | + | github.com/bnema/purego-cef v0.14.1 | |
| 10 | 10 | github.com/bnema/purego-cef2gtk v0.8.5 | |
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5 | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4 | |
| @@ -6,7 +6,7 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.4 | 9 | + | github.com/bnema/purego-cef v0.14.1 |
| 10 | github.com/bnema/purego-cef2gtk v0.8.5 | 10 | github.com/bnema/purego-cef2gtk v0.8.5 | ||
| 11 | github.com/bnema/purego-pipewire v0.1.5 | 11 | github.com/bnema/purego-pipewire v0.1.5 | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4 | 12 | github.com/bnema/purego-sqlite v0.1.4 | ||
M go.sum +2 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +15 -2 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +323 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +24 -41 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +10 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +16 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +42 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +3 -3 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +20 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +34 -5 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +14 -1 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +45 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +72 -79 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +59 -52 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +166 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +62 -7 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +86 -871 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +92 -50 generated file: collapsed
A vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +19 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +15 -2 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +17 -4 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +14 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +14 -60 generated file: collapsed
M vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +14 -1 generated file: collapsed
A vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +130 -0 generated file: collapsed
A vendor/github.com/bnema/purego-cef/internal/capi/cef_types_component_gen.go +11 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +1 -1 generated file: collapsed
M vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +44 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +2 -0 generated file: collapsed
M vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +0 -459 generated file: collapsed
M vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +33 -107
| @@ -10,39 +10,39 @@ import ( | |||
| 10 | 10 | ) | |
| 11 | 11 | ||
| 12 | 12 | type CEFTextfieldT struct { | |
| 13 | - | _ structs.HostLayout | |
| 14 | - | Base CEFViewT | |
| 15 | - | SetPasswordInput uintptr | |
| 16 | - | IsPasswordInput uintptr | |
| 17 | - | SetReadOnly uintptr | |
| 18 | - | IsReadOnly uintptr | |
| 19 | - | GetText uintptr | |
| 20 | - | SetText uintptr | |
| 21 | - | AppendText uintptr | |
| 22 | - | InsertOrReplaceText uintptr | |
| 23 | - | HasSelection uintptr | |
| 24 | - | GetSelectedText uintptr | |
| 25 | - | SelectAll uintptr | |
| 26 | - | ClearSelection uintptr | |
| 27 | - | GetSelectedRange uintptr | |
| 28 | - | SelectRange uintptr | |
| 29 | - | GetCursorPosition uintptr | |
| 30 | - | SetTextColor uintptr | |
| 31 | - | GetTextColor uintptr | |
| 32 | - | SetSelectionTextColor uintptr | |
| 33 | - | GetSelectionTextColor uintptr | |
| 34 | - | SetSelectionBackgroundColor uintptr | |
| 35 | - | GetSelectionBackgroundColor uintptr | |
| 36 | - | SetFontList uintptr | |
| 37 | - | ApplyTextColor uintptr | |
| 38 | - | ApplyTextStyle uintptr | |
| 39 | - | IsCommandEnabled uintptr | |
| 40 | - | ExecuteCommand uintptr | |
| 41 | - | ClearEditHistory uintptr | |
| 42 | - | SetPlaceholderText uintptr | |
| 43 | - | GetPlaceholderText uintptr | |
| 44 | - | SetPlaceholderTextColor uintptr | |
| 45 | - | SetAccessibleName uintptr | |
| 13 | + | _ structs.HostLayout | |
| 14 | + | Base CEFViewT | |
| 15 | + | SetPasswordInput uintptr | |
| 16 | + | IsPasswordInput uintptr | |
| 17 | + | SetReadOnly uintptr | |
| 18 | + | IsReadOnly uintptr | |
| 19 | + | GetText uintptr | |
| 20 | + | SetText uintptr | |
| 21 | + | AppendText uintptr | |
| 22 | + | InsertOrReplaceText uintptr | |
| 23 | + | HasSelection uintptr | |
| 24 | + | GetSelectedText uintptr | |
| 25 | + | SelectAll uintptr | |
| 26 | + | ClearSelection uintptr | |
| 27 | + | GetSelectedRange uintptr | |
| 28 | + | SelectRange uintptr | |
| 29 | + | GetCursorPosition uintptr | |
| 30 | + | SetTextColorRemoved uintptr | |
| 31 | + | GetTextColorRemoved uintptr | |
| 32 | + | SetSelectionTextColorRemoved uintptr | |
| 33 | + | GetSelectionTextColorRemoved uintptr | |
| 34 | + | SetSelectionBackgroundColorRemoved uintptr | |
| 35 | + | GetSelectionBackgroundColorRemoved uintptr | |
| 36 | + | SetFontList uintptr | |
| 37 | + | ApplyTextColor uintptr | |
| 38 | + | ApplyTextStyle uintptr | |
| 39 | + | IsCommandEnabled uintptr | |
| 40 | + | ExecuteCommand uintptr | |
| 41 | + | ClearEditHistory uintptr | |
| 42 | + | SetPlaceholderText uintptr | |
| 43 | + | GetPlaceholderText uintptr | |
| 44 | + | SetPlaceholderTextColorRemoved uintptr | |
| 45 | + | SetAccessibleName uintptr | |
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | 48 | func (v *CEFTextfieldT) OverrideSetPasswordInput(fn uintptr) { v.SetPasswordInput = fn } | |
| @@ -195,70 +195,6 @@ func (v *CEFTextfieldT) CallGetCursorPosition(args ...uintptr) uintptr { | |||
| 195 | 195 | return r1 | |
| 196 | 196 | } | |
| 197 | 197 | ||
| 198 | - | func (v *CEFTextfieldT) OverrideSetTextColor(fn uintptr) { v.SetTextColor = fn } | |
| 199 | - | ||
| 200 | - | func (v *CEFTextfieldT) CallSetTextColor(args ...uintptr) uintptr { | |
| 201 | - | if v.SetTextColor == 0 { | |
| 202 | - | return 0 | |
| 203 | - | } | |
| 204 | - | r1, _, _ := purego.SyscallN(v.SetTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 205 | - | return r1 | |
| 206 | - | } | |
| 207 | - | ||
| 208 | - | func (v *CEFTextfieldT) OverrideGetTextColor(fn uintptr) { v.GetTextColor = fn } | |
| 209 | - | ||
| 210 | - | func (v *CEFTextfieldT) CallGetTextColor(args ...uintptr) uintptr { | |
| 211 | - | if v.GetTextColor == 0 { | |
| 212 | - | return 0 | |
| 213 | - | } | |
| 214 | - | r1, _, _ := purego.SyscallN(v.GetTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 215 | - | return r1 | |
| 216 | - | } | |
| 217 | - | ||
| 218 | - | func (v *CEFTextfieldT) OverrideSetSelectionTextColor(fn uintptr) { v.SetSelectionTextColor = fn } | |
| 219 | - | ||
| 220 | - | func (v *CEFTextfieldT) CallSetSelectionTextColor(args ...uintptr) uintptr { | |
| 221 | - | if v.SetSelectionTextColor == 0 { | |
| 222 | - | return 0 | |
| 223 | - | } | |
| 224 | - | r1, _, _ := purego.SyscallN(v.SetSelectionTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 225 | - | return r1 | |
| 226 | - | } | |
| 227 | - | ||
| 228 | - | func (v *CEFTextfieldT) OverrideGetSelectionTextColor(fn uintptr) { v.GetSelectionTextColor = fn } | |
| 229 | - | ||
| 230 | - | func (v *CEFTextfieldT) CallGetSelectionTextColor(args ...uintptr) uintptr { | |
| 231 | - | if v.GetSelectionTextColor == 0 { | |
| 232 | - | return 0 | |
| 233 | - | } | |
| 234 | - | r1, _, _ := purego.SyscallN(v.GetSelectionTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 235 | - | return r1 | |
| 236 | - | } | |
| 237 | - | ||
| 238 | - | func (v *CEFTextfieldT) OverrideSetSelectionBackgroundColor(fn uintptr) { | |
| 239 | - | v.SetSelectionBackgroundColor = fn | |
| 240 | - | } | |
| 241 | - | ||
| 242 | - | func (v *CEFTextfieldT) CallSetSelectionBackgroundColor(args ...uintptr) uintptr { | |
| 243 | - | if v.SetSelectionBackgroundColor == 0 { | |
| 244 | - | return 0 | |
| 245 | - | } | |
| 246 | - | r1, _, _ := purego.SyscallN(v.SetSelectionBackgroundColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 247 | - | return r1 | |
| 248 | - | } | |
| 249 | - | ||
| 250 | - | func (v *CEFTextfieldT) OverrideGetSelectionBackgroundColor(fn uintptr) { | |
| 251 | - | v.GetSelectionBackgroundColor = fn | |
| 252 | - | } | |
| 253 | - | ||
| 254 | - | func (v *CEFTextfieldT) CallGetSelectionBackgroundColor(args ...uintptr) uintptr { | |
| 255 | - | if v.GetSelectionBackgroundColor == 0 { | |
| 256 | - | return 0 | |
| 257 | - | } | |
| 258 | - | r1, _, _ := purego.SyscallN(v.GetSelectionBackgroundColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 259 | - | return r1 | |
| 260 | - | } | |
| 261 | - | ||
| 262 | 198 | func (v *CEFTextfieldT) OverrideSetFontList(fn uintptr) { v.SetFontList = fn } | |
| 263 | 199 | ||
| 264 | 200 | func (v *CEFTextfieldT) CallSetFontList(args ...uintptr) uintptr { | |
| @@ -339,16 +275,6 @@ func (v *CEFTextfieldT) CallGetPlaceholderText(args ...uintptr) uintptr { | |||
| 339 | 275 | return r1 | |
| 340 | 276 | } | |
| 341 | 277 | ||
| 342 | - | func (v *CEFTextfieldT) OverrideSetPlaceholderTextColor(fn uintptr) { v.SetPlaceholderTextColor = fn } | |
| 343 | - | ||
| 344 | - | func (v *CEFTextfieldT) CallSetPlaceholderTextColor(args ...uintptr) uintptr { | |
| 345 | - | if v.SetPlaceholderTextColor == 0 { | |
| 346 | - | return 0 | |
| 347 | - | } | |
| 348 | - | r1, _, _ := purego.SyscallN(v.SetPlaceholderTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |
| 349 | - | return r1 | |
| 350 | - | } | |
| 351 | - | ||
| 352 | 278 | func (v *CEFTextfieldT) OverrideSetAccessibleName(fn uintptr) { v.SetAccessibleName = fn } | |
| 353 | 279 | ||
| 354 | 280 | func (v *CEFTextfieldT) CallSetAccessibleName(args ...uintptr) uintptr { | |
| @@ -10,39 +10,39 @@ import ( | |||||
| 10 | ) | 10 | ) | ||
| 11 | 11 | ||||
| 12 | type CEFTextfieldT struct { | 12 | type CEFTextfieldT struct { | ||
| 13 | - | _ structs.HostLayout | 13 | + | _ structs.HostLayout |
| 14 | - | Base CEFViewT | 14 | + | Base CEFViewT |
| 15 | - | SetPasswordInput uintptr | 15 | + | SetPasswordInput uintptr |
| 16 | - | IsPasswordInput uintptr | 16 | + | IsPasswordInput uintptr |
| 17 | - | SetReadOnly uintptr | 17 | + | SetReadOnly uintptr |
| 18 | - | IsReadOnly uintptr | 18 | + | IsReadOnly uintptr |
| 19 | - | GetText uintptr | 19 | + | GetText uintptr |
| 20 | - | SetText uintptr | 20 | + | SetText uintptr |
| 21 | - | AppendText uintptr | 21 | + | AppendText uintptr |
| 22 | - | InsertOrReplaceText uintptr | 22 | + | InsertOrReplaceText uintptr |
| 23 | - | HasSelection uintptr | 23 | + | HasSelection uintptr |
| 24 | - | GetSelectedText uintptr | 24 | + | GetSelectedText uintptr |
| 25 | - | SelectAll uintptr | 25 | + | SelectAll uintptr |
| 26 | - | ClearSelection uintptr | 26 | + | ClearSelection uintptr |
| 27 | - | GetSelectedRange uintptr | 27 | + | GetSelectedRange uintptr |
| 28 | - | SelectRange uintptr | 28 | + | SelectRange uintptr |
| 29 | - | GetCursorPosition uintptr | 29 | + | GetCursorPosition uintptr |
| 30 | - | SetTextColor uintptr | 30 | + | SetTextColorRemoved uintptr |
| 31 | - | GetTextColor uintptr | 31 | + | GetTextColorRemoved uintptr |
| 32 | - | SetSelectionTextColor uintptr | 32 | + | SetSelectionTextColorRemoved uintptr |
| 33 | - | GetSelectionTextColor uintptr | 33 | + | GetSelectionTextColorRemoved uintptr |
| 34 | - | SetSelectionBackgroundColor uintptr | 34 | + | SetSelectionBackgroundColorRemoved uintptr |
| 35 | - | GetSelectionBackgroundColor uintptr | 35 | + | GetSelectionBackgroundColorRemoved uintptr |
| 36 | - | SetFontList uintptr | 36 | + | SetFontList uintptr |
| 37 | - | ApplyTextColor uintptr | 37 | + | ApplyTextColor uintptr |
| 38 | - | ApplyTextStyle uintptr | 38 | + | ApplyTextStyle uintptr |
| 39 | - | IsCommandEnabled uintptr | 39 | + | IsCommandEnabled uintptr |
| 40 | - | ExecuteCommand uintptr | 40 | + | ExecuteCommand uintptr |
| 41 | - | ClearEditHistory uintptr | 41 | + | ClearEditHistory uintptr |
| 42 | - | SetPlaceholderText uintptr | 42 | + | SetPlaceholderText uintptr |
| 43 | - | GetPlaceholderText uintptr | 43 | + | GetPlaceholderText uintptr |
| 44 | - | SetPlaceholderTextColor uintptr | 44 | + | SetPlaceholderTextColorRemoved uintptr |
| 45 | - | SetAccessibleName uintptr | 45 | + | SetAccessibleName uintptr |
| 46 | } | 46 | } | ||
| 47 | 47 | ||||
| 48 | func (v *CEFTextfieldT) OverrideSetPasswordInput(fn uintptr) { v.SetPasswordInput = fn } | 48 | func (v *CEFTextfieldT) OverrideSetPasswordInput(fn uintptr) { v.SetPasswordInput = fn } | ||
| @@ -195,70 +195,6 @@ func (v *CEFTextfieldT) CallGetCursorPosition(args ...uintptr) uintptr { | |||||
| 195 | return r1 | 195 | return r1 | ||
| 196 | } | 196 | } | ||
| 197 | 197 | ||||
| 198 | - | func (v *CEFTextfieldT) OverrideSetTextColor(fn uintptr) { v.SetTextColor = fn } | |||
| 199 | - | ||||
| 200 | - | func (v *CEFTextfieldT) CallSetTextColor(args ...uintptr) uintptr { | |||
| 201 | - | if v.SetTextColor == 0 { | |||
| 202 | - | return 0 | |||
| 203 | - | } | |||
| 204 | - | r1, _, _ := purego.SyscallN(v.SetTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 205 | - | return r1 | |||
| 206 | - | } | |||
| 207 | - | ||||
| 208 | - | func (v *CEFTextfieldT) OverrideGetTextColor(fn uintptr) { v.GetTextColor = fn } | |||
| 209 | - | ||||
| 210 | - | func (v *CEFTextfieldT) CallGetTextColor(args ...uintptr) uintptr { | |||
| 211 | - | if v.GetTextColor == 0 { | |||
| 212 | - | return 0 | |||
| 213 | - | } | |||
| 214 | - | r1, _, _ := purego.SyscallN(v.GetTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 215 | - | return r1 | |||
| 216 | - | } | |||
| 217 | - | ||||
| 218 | - | func (v *CEFTextfieldT) OverrideSetSelectionTextColor(fn uintptr) { v.SetSelectionTextColor = fn } | |||
| 219 | - | ||||
| 220 | - | func (v *CEFTextfieldT) CallSetSelectionTextColor(args ...uintptr) uintptr { | |||
| 221 | - | if v.SetSelectionTextColor == 0 { | |||
| 222 | - | return 0 | |||
| 223 | - | } | |||
| 224 | - | r1, _, _ := purego.SyscallN(v.SetSelectionTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 225 | - | return r1 | |||
| 226 | - | } | |||
| 227 | - | ||||
| 228 | - | func (v *CEFTextfieldT) OverrideGetSelectionTextColor(fn uintptr) { v.GetSelectionTextColor = fn } | |||
| 229 | - | ||||
| 230 | - | func (v *CEFTextfieldT) CallGetSelectionTextColor(args ...uintptr) uintptr { | |||
| 231 | - | if v.GetSelectionTextColor == 0 { | |||
| 232 | - | return 0 | |||
| 233 | - | } | |||
| 234 | - | r1, _, _ := purego.SyscallN(v.GetSelectionTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 235 | - | return r1 | |||
| 236 | - | } | |||
| 237 | - | ||||
| 238 | - | func (v *CEFTextfieldT) OverrideSetSelectionBackgroundColor(fn uintptr) { | |||
| 239 | - | v.SetSelectionBackgroundColor = fn | |||
| 240 | - | } | |||
| 241 | - | ||||
| 242 | - | func (v *CEFTextfieldT) CallSetSelectionBackgroundColor(args ...uintptr) uintptr { | |||
| 243 | - | if v.SetSelectionBackgroundColor == 0 { | |||
| 244 | - | return 0 | |||
| 245 | - | } | |||
| 246 | - | r1, _, _ := purego.SyscallN(v.SetSelectionBackgroundColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 247 | - | return r1 | |||
| 248 | - | } | |||
| 249 | - | ||||
| 250 | - | func (v *CEFTextfieldT) OverrideGetSelectionBackgroundColor(fn uintptr) { | |||
| 251 | - | v.GetSelectionBackgroundColor = fn | |||
| 252 | - | } | |||
| 253 | - | ||||
| 254 | - | func (v *CEFTextfieldT) CallGetSelectionBackgroundColor(args ...uintptr) uintptr { | |||
| 255 | - | if v.GetSelectionBackgroundColor == 0 { | |||
| 256 | - | return 0 | |||
| 257 | - | } | |||
| 258 | - | r1, _, _ := purego.SyscallN(v.GetSelectionBackgroundColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 259 | - | return r1 | |||
| 260 | - | } | |||
| 261 | - | ||||
| 262 | func (v *CEFTextfieldT) OverrideSetFontList(fn uintptr) { v.SetFontList = fn } | 198 | func (v *CEFTextfieldT) OverrideSetFontList(fn uintptr) { v.SetFontList = fn } | ||
| 263 | 199 | ||||
| 264 | func (v *CEFTextfieldT) CallSetFontList(args ...uintptr) uintptr { | 200 | func (v *CEFTextfieldT) CallSetFontList(args ...uintptr) uintptr { | ||
| @@ -339,16 +275,6 @@ func (v *CEFTextfieldT) CallGetPlaceholderText(args ...uintptr) uintptr { | |||||
| 339 | return r1 | 275 | return r1 | ||
| 340 | } | 276 | } | ||
| 341 | 277 | ||||
| 342 | - | func (v *CEFTextfieldT) OverrideSetPlaceholderTextColor(fn uintptr) { v.SetPlaceholderTextColor = fn } | |||
| 343 | - | ||||
| 344 | - | func (v *CEFTextfieldT) CallSetPlaceholderTextColor(args ...uintptr) uintptr { | |||
| 345 | - | if v.SetPlaceholderTextColor == 0 { | |||
| 346 | - | return 0 | |||
| 347 | - | } | |||
| 348 | - | r1, _, _ := purego.SyscallN(v.SetPlaceholderTextColor, append([]uintptr{uintptr(unsafe.Pointer(v))}, args...)...) | |||
| 349 | - | return r1 | |||
| 350 | - | } | |||
| 351 | - | ||||
| 352 | func (v *CEFTextfieldT) OverrideSetAccessibleName(fn uintptr) { v.SetAccessibleName = fn } | 278 | func (v *CEFTextfieldT) OverrideSetAccessibleName(fn uintptr) { v.SetAccessibleName = fn } | ||
| 353 | 279 | ||||
| 354 | func (v *CEFTextfieldT) CallSetAccessibleName(args ...uintptr) uintptr { | 280 | func (v *CEFTextfieldT) CallSetAccessibleName(args ...uintptr) uintptr { | ||