1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=c32cf44685b993619659ae5f6fb681e40d0b4cd9$
13 //
14
15 #include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
16 #include "libcef_dll/cpptoc/image_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
18 #include "libcef_dll/cpptoc/views/button_cpptoc.h"
19 #include "libcef_dll/cpptoc/views/menu_button_cpptoc.h"
20 #include "libcef_dll/cpptoc/views/panel_cpptoc.h"
21 #include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
22 #include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
23 #include "libcef_dll/cpptoc/views/view_cpptoc.h"
24 #include "libcef_dll/cpptoc/views/window_cpptoc.h"
25 #include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h"
26 #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
27 #include "libcef_dll/shutdown_checker.h"
28
29 // GLOBAL FUNCTIONS - Body may be edited by hand.
30
cef_label_button_create(cef_button_delegate_t * delegate,const cef_string_t * text)31 CEF_EXPORT cef_label_button_t* cef_label_button_create(
32 cef_button_delegate_t* delegate,
33 const cef_string_t* text) {
34 shutdown_checker::AssertNotShutdown();
35
36 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
37
38 // Verify param: delegate; type: refptr_diff
39 DCHECK(delegate);
40 if (!delegate)
41 return NULL;
42 // Unverified params: text
43
44 // Execute
45 CefRefPtr<CefLabelButton> _retval = CefLabelButton::CreateLabelButton(
46 CefButtonDelegateCToCpp::Wrap(delegate), CefString(text));
47
48 // Return type: refptr_same
49 return CefLabelButtonCppToC::Wrap(_retval);
50 }
51
52 namespace {
53
54 // MEMBER FUNCTIONS - Body may be edited by hand.
55
56 cef_menu_button_t* CEF_CALLBACK
label_button_as_menu_button(struct _cef_label_button_t * self)57 label_button_as_menu_button(struct _cef_label_button_t* self) {
58 shutdown_checker::AssertNotShutdown();
59
60 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
61
62 DCHECK(self);
63 if (!self)
64 return NULL;
65
66 // Execute
67 CefRefPtr<CefMenuButton> _retval =
68 CefLabelButtonCppToC::Get(self)->AsMenuButton();
69
70 // Return type: refptr_same
71 return CefMenuButtonCppToC::Wrap(_retval);
72 }
73
label_button_set_text(struct _cef_label_button_t * self,const cef_string_t * text)74 void CEF_CALLBACK label_button_set_text(struct _cef_label_button_t* self,
75 const cef_string_t* text) {
76 shutdown_checker::AssertNotShutdown();
77
78 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
79
80 DCHECK(self);
81 if (!self)
82 return;
83 // Verify param: text; type: string_byref_const
84 DCHECK(text);
85 if (!text)
86 return;
87
88 // Execute
89 CefLabelButtonCppToC::Get(self)->SetText(CefString(text));
90 }
91
92 cef_string_userfree_t CEF_CALLBACK
label_button_get_text(struct _cef_label_button_t * self)93 label_button_get_text(struct _cef_label_button_t* self) {
94 shutdown_checker::AssertNotShutdown();
95
96 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
97
98 DCHECK(self);
99 if (!self)
100 return NULL;
101
102 // Execute
103 CefString _retval = CefLabelButtonCppToC::Get(self)->GetText();
104
105 // Return type: string
106 return _retval.DetachToUserFree();
107 }
108
label_button_set_image(struct _cef_label_button_t * self,cef_button_state_t button_state,cef_image_t * image)109 void CEF_CALLBACK label_button_set_image(struct _cef_label_button_t* self,
110 cef_button_state_t button_state,
111 cef_image_t* image) {
112 shutdown_checker::AssertNotShutdown();
113
114 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
115
116 DCHECK(self);
117 if (!self)
118 return;
119 // Unverified params: image
120
121 // Execute
122 CefLabelButtonCppToC::Get(self)->SetImage(button_state,
123 CefImageCppToC::Unwrap(image));
124 }
125
126 cef_image_t* CEF_CALLBACK
label_button_get_image(struct _cef_label_button_t * self,cef_button_state_t button_state)127 label_button_get_image(struct _cef_label_button_t* self,
128 cef_button_state_t button_state) {
129 shutdown_checker::AssertNotShutdown();
130
131 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
132
133 DCHECK(self);
134 if (!self)
135 return NULL;
136
137 // Execute
138 CefRefPtr<CefImage> _retval =
139 CefLabelButtonCppToC::Get(self)->GetImage(button_state);
140
141 // Return type: refptr_same
142 return CefImageCppToC::Wrap(_retval);
143 }
144
label_button_set_text_color(struct _cef_label_button_t * self,cef_button_state_t for_state,cef_color_t color)145 void CEF_CALLBACK label_button_set_text_color(struct _cef_label_button_t* self,
146 cef_button_state_t for_state,
147 cef_color_t color) {
148 shutdown_checker::AssertNotShutdown();
149
150 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
151
152 DCHECK(self);
153 if (!self)
154 return;
155
156 // Execute
157 CefLabelButtonCppToC::Get(self)->SetTextColor(for_state, color);
158 }
159
160 void CEF_CALLBACK
label_button_set_enabled_text_colors(struct _cef_label_button_t * self,cef_color_t color)161 label_button_set_enabled_text_colors(struct _cef_label_button_t* self,
162 cef_color_t color) {
163 shutdown_checker::AssertNotShutdown();
164
165 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
166
167 DCHECK(self);
168 if (!self)
169 return;
170
171 // Execute
172 CefLabelButtonCppToC::Get(self)->SetEnabledTextColors(color);
173 }
174
label_button_set_font_list(struct _cef_label_button_t * self,const cef_string_t * font_list)175 void CEF_CALLBACK label_button_set_font_list(struct _cef_label_button_t* self,
176 const cef_string_t* font_list) {
177 shutdown_checker::AssertNotShutdown();
178
179 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
180
181 DCHECK(self);
182 if (!self)
183 return;
184 // Verify param: font_list; type: string_byref_const
185 DCHECK(font_list);
186 if (!font_list)
187 return;
188
189 // Execute
190 CefLabelButtonCppToC::Get(self)->SetFontList(CefString(font_list));
191 }
192
193 void CEF_CALLBACK
label_button_set_horizontal_alignment(struct _cef_label_button_t * self,cef_horizontal_alignment_t alignment)194 label_button_set_horizontal_alignment(struct _cef_label_button_t* self,
195 cef_horizontal_alignment_t alignment) {
196 shutdown_checker::AssertNotShutdown();
197
198 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
199
200 DCHECK(self);
201 if (!self)
202 return;
203
204 // Execute
205 CefLabelButtonCppToC::Get(self)->SetHorizontalAlignment(alignment);
206 }
207
208 void CEF_CALLBACK
label_button_set_minimum_size(struct _cef_label_button_t * self,const cef_size_t * size)209 label_button_set_minimum_size(struct _cef_label_button_t* self,
210 const cef_size_t* size) {
211 shutdown_checker::AssertNotShutdown();
212
213 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
214
215 DCHECK(self);
216 if (!self)
217 return;
218 // Verify param: size; type: simple_byref_const
219 DCHECK(size);
220 if (!size)
221 return;
222
223 // Translate param: size; type: simple_byref_const
224 CefSize sizeVal = size ? *size : CefSize();
225
226 // Execute
227 CefLabelButtonCppToC::Get(self)->SetMinimumSize(sizeVal);
228 }
229
230 void CEF_CALLBACK
label_button_set_maximum_size(struct _cef_label_button_t * self,const cef_size_t * size)231 label_button_set_maximum_size(struct _cef_label_button_t* self,
232 const cef_size_t* size) {
233 shutdown_checker::AssertNotShutdown();
234
235 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
236
237 DCHECK(self);
238 if (!self)
239 return;
240 // Verify param: size; type: simple_byref_const
241 DCHECK(size);
242 if (!size)
243 return;
244
245 // Translate param: size; type: simple_byref_const
246 CefSize sizeVal = size ? *size : CefSize();
247
248 // Execute
249 CefLabelButtonCppToC::Get(self)->SetMaximumSize(sizeVal);
250 }
251
252 cef_label_button_t* CEF_CALLBACK
label_button_as_label_button(struct _cef_button_t * self)253 label_button_as_label_button(struct _cef_button_t* self) {
254 shutdown_checker::AssertNotShutdown();
255
256 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
257
258 DCHECK(self);
259 if (!self)
260 return NULL;
261
262 // Execute
263 CefRefPtr<CefLabelButton> _retval =
264 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
265 ->AsLabelButton();
266
267 // Return type: refptr_same
268 return CefLabelButtonCppToC::Wrap(_retval);
269 }
270
label_button_set_state(struct _cef_button_t * self,cef_button_state_t state)271 void CEF_CALLBACK label_button_set_state(struct _cef_button_t* self,
272 cef_button_state_t state) {
273 shutdown_checker::AssertNotShutdown();
274
275 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
276
277 DCHECK(self);
278 if (!self)
279 return;
280
281 // Execute
282 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
283 ->SetState(state);
284 }
285
286 cef_button_state_t CEF_CALLBACK
label_button_get_state(struct _cef_button_t * self)287 label_button_get_state(struct _cef_button_t* self) {
288 shutdown_checker::AssertNotShutdown();
289
290 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
291
292 DCHECK(self);
293 if (!self)
294 return CEF_BUTTON_STATE_NORMAL;
295
296 // Execute
297 cef_button_state_t _retval =
298 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
299 ->GetState();
300
301 // Return type: simple
302 return _retval;
303 }
304
label_button_set_ink_drop_enabled(struct _cef_button_t * self,int enabled)305 void CEF_CALLBACK label_button_set_ink_drop_enabled(struct _cef_button_t* self,
306 int enabled) {
307 shutdown_checker::AssertNotShutdown();
308
309 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
310
311 DCHECK(self);
312 if (!self)
313 return;
314
315 // Execute
316 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
317 ->SetInkDropEnabled(enabled ? true : false);
318 }
319
320 void CEF_CALLBACK
label_button_set_tooltip_text(struct _cef_button_t * self,const cef_string_t * tooltip_text)321 label_button_set_tooltip_text(struct _cef_button_t* self,
322 const cef_string_t* tooltip_text) {
323 shutdown_checker::AssertNotShutdown();
324
325 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
326
327 DCHECK(self);
328 if (!self)
329 return;
330 // Verify param: tooltip_text; type: string_byref_const
331 DCHECK(tooltip_text);
332 if (!tooltip_text)
333 return;
334
335 // Execute
336 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
337 ->SetTooltipText(CefString(tooltip_text));
338 }
339
label_button_set_accessible_name(struct _cef_button_t * self,const cef_string_t * name)340 void CEF_CALLBACK label_button_set_accessible_name(struct _cef_button_t* self,
341 const cef_string_t* name) {
342 shutdown_checker::AssertNotShutdown();
343
344 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
345
346 DCHECK(self);
347 if (!self)
348 return;
349 // Verify param: name; type: string_byref_const
350 DCHECK(name);
351 if (!name)
352 return;
353
354 // Execute
355 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
356 ->SetAccessibleName(CefString(name));
357 }
358
359 cef_browser_view_t* CEF_CALLBACK
label_button_as_browser_view(struct _cef_view_t * self)360 label_button_as_browser_view(struct _cef_view_t* self) {
361 shutdown_checker::AssertNotShutdown();
362
363 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
364
365 DCHECK(self);
366 if (!self)
367 return NULL;
368
369 // Execute
370 CefRefPtr<CefBrowserView> _retval =
371 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
372 ->AsBrowserView();
373
374 // Return type: refptr_same
375 return CefBrowserViewCppToC::Wrap(_retval);
376 }
377
label_button_as_button(struct _cef_view_t * self)378 cef_button_t* CEF_CALLBACK label_button_as_button(struct _cef_view_t* self) {
379 shutdown_checker::AssertNotShutdown();
380
381 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
382
383 DCHECK(self);
384 if (!self)
385 return NULL;
386
387 // Execute
388 CefRefPtr<CefButton> _retval =
389 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
390 ->AsButton();
391
392 // Return type: refptr_same
393 return CefButtonCppToC::Wrap(_retval);
394 }
395
label_button_as_panel(struct _cef_view_t * self)396 cef_panel_t* CEF_CALLBACK label_button_as_panel(struct _cef_view_t* self) {
397 shutdown_checker::AssertNotShutdown();
398
399 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
400
401 DCHECK(self);
402 if (!self)
403 return NULL;
404
405 // Execute
406 CefRefPtr<CefPanel> _retval =
407 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
408 ->AsPanel();
409
410 // Return type: refptr_same
411 return CefPanelCppToC::Wrap(_retval);
412 }
413
414 cef_scroll_view_t* CEF_CALLBACK
label_button_as_scroll_view(struct _cef_view_t * self)415 label_button_as_scroll_view(struct _cef_view_t* self) {
416 shutdown_checker::AssertNotShutdown();
417
418 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
419
420 DCHECK(self);
421 if (!self)
422 return NULL;
423
424 // Execute
425 CefRefPtr<CefScrollView> _retval =
426 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
427 ->AsScrollView();
428
429 // Return type: refptr_same
430 return CefScrollViewCppToC::Wrap(_retval);
431 }
432
433 cef_textfield_t* CEF_CALLBACK
label_button_as_textfield(struct _cef_view_t * self)434 label_button_as_textfield(struct _cef_view_t* self) {
435 shutdown_checker::AssertNotShutdown();
436
437 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
438
439 DCHECK(self);
440 if (!self)
441 return NULL;
442
443 // Execute
444 CefRefPtr<CefTextfield> _retval =
445 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
446 ->AsTextfield();
447
448 // Return type: refptr_same
449 return CefTextfieldCppToC::Wrap(_retval);
450 }
451
452 cef_string_userfree_t CEF_CALLBACK
label_button_get_type_string(struct _cef_view_t * self)453 label_button_get_type_string(struct _cef_view_t* self) {
454 shutdown_checker::AssertNotShutdown();
455
456 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
457
458 DCHECK(self);
459 if (!self)
460 return NULL;
461
462 // Execute
463 CefString _retval =
464 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
465 ->GetTypeString();
466
467 // Return type: string
468 return _retval.DetachToUserFree();
469 }
470
471 cef_string_userfree_t CEF_CALLBACK
label_button_to_string(struct _cef_view_t * self,int include_children)472 label_button_to_string(struct _cef_view_t* self, int include_children) {
473 shutdown_checker::AssertNotShutdown();
474
475 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
476
477 DCHECK(self);
478 if (!self)
479 return NULL;
480
481 // Execute
482 CefString _retval =
483 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
484 ->ToString(include_children ? true : false);
485
486 // Return type: string
487 return _retval.DetachToUserFree();
488 }
489
label_button_is_valid(struct _cef_view_t * self)490 int CEF_CALLBACK label_button_is_valid(struct _cef_view_t* self) {
491 shutdown_checker::AssertNotShutdown();
492
493 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
494
495 DCHECK(self);
496 if (!self)
497 return 0;
498
499 // Execute
500 bool _retval =
501 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
502 ->IsValid();
503
504 // Return type: bool
505 return _retval;
506 }
507
label_button_is_attached(struct _cef_view_t * self)508 int CEF_CALLBACK label_button_is_attached(struct _cef_view_t* self) {
509 shutdown_checker::AssertNotShutdown();
510
511 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
512
513 DCHECK(self);
514 if (!self)
515 return 0;
516
517 // Execute
518 bool _retval =
519 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
520 ->IsAttached();
521
522 // Return type: bool
523 return _retval;
524 }
525
label_button_is_same(struct _cef_view_t * self,struct _cef_view_t * that)526 int CEF_CALLBACK label_button_is_same(struct _cef_view_t* self,
527 struct _cef_view_t* that) {
528 shutdown_checker::AssertNotShutdown();
529
530 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
531
532 DCHECK(self);
533 if (!self)
534 return 0;
535 // Verify param: that; type: refptr_same
536 DCHECK(that);
537 if (!that)
538 return 0;
539
540 // Execute
541 bool _retval =
542 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
543 ->IsSame(CefViewCppToC::Unwrap(that));
544
545 // Return type: bool
546 return _retval;
547 }
548
549 struct _cef_view_delegate_t* CEF_CALLBACK
label_button_get_delegate(struct _cef_view_t * self)550 label_button_get_delegate(struct _cef_view_t* self) {
551 shutdown_checker::AssertNotShutdown();
552
553 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
554
555 DCHECK(self);
556 if (!self)
557 return NULL;
558
559 // Execute
560 CefRefPtr<CefViewDelegate> _retval =
561 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
562 ->GetDelegate();
563
564 // Return type: refptr_diff
565 return CefViewDelegateCToCpp::Unwrap(_retval);
566 }
567
568 struct _cef_window_t* CEF_CALLBACK
label_button_get_window(struct _cef_view_t * self)569 label_button_get_window(struct _cef_view_t* self) {
570 shutdown_checker::AssertNotShutdown();
571
572 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
573
574 DCHECK(self);
575 if (!self)
576 return NULL;
577
578 // Execute
579 CefRefPtr<CefWindow> _retval =
580 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
581 ->GetWindow();
582
583 // Return type: refptr_same
584 return CefWindowCppToC::Wrap(_retval);
585 }
586
label_button_get_id(struct _cef_view_t * self)587 int CEF_CALLBACK label_button_get_id(struct _cef_view_t* self) {
588 shutdown_checker::AssertNotShutdown();
589
590 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
591
592 DCHECK(self);
593 if (!self)
594 return 0;
595
596 // Execute
597 int _retval =
598 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
599 ->GetID();
600
601 // Return type: simple
602 return _retval;
603 }
604
label_button_set_id(struct _cef_view_t * self,int id)605 void CEF_CALLBACK label_button_set_id(struct _cef_view_t* self, int id) {
606 shutdown_checker::AssertNotShutdown();
607
608 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
609
610 DCHECK(self);
611 if (!self)
612 return;
613
614 // Execute
615 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
616 ->SetID(id);
617 }
618
label_button_get_group_id(struct _cef_view_t * self)619 int CEF_CALLBACK label_button_get_group_id(struct _cef_view_t* self) {
620 shutdown_checker::AssertNotShutdown();
621
622 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
623
624 DCHECK(self);
625 if (!self)
626 return 0;
627
628 // Execute
629 int _retval =
630 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
631 ->GetGroupID();
632
633 // Return type: simple
634 return _retval;
635 }
636
label_button_set_group_id(struct _cef_view_t * self,int group_id)637 void CEF_CALLBACK label_button_set_group_id(struct _cef_view_t* self,
638 int group_id) {
639 shutdown_checker::AssertNotShutdown();
640
641 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
642
643 DCHECK(self);
644 if (!self)
645 return;
646
647 // Execute
648 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
649 ->SetGroupID(group_id);
650 }
651
652 struct _cef_view_t* CEF_CALLBACK
label_button_get_parent_view(struct _cef_view_t * self)653 label_button_get_parent_view(struct _cef_view_t* self) {
654 shutdown_checker::AssertNotShutdown();
655
656 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
657
658 DCHECK(self);
659 if (!self)
660 return NULL;
661
662 // Execute
663 CefRefPtr<CefView> _retval =
664 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
665 ->GetParentView();
666
667 // Return type: refptr_same
668 return CefViewCppToC::Wrap(_retval);
669 }
670
671 struct _cef_view_t* CEF_CALLBACK
label_button_get_view_for_id(struct _cef_view_t * self,int id)672 label_button_get_view_for_id(struct _cef_view_t* self, int id) {
673 shutdown_checker::AssertNotShutdown();
674
675 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
676
677 DCHECK(self);
678 if (!self)
679 return NULL;
680
681 // Execute
682 CefRefPtr<CefView> _retval =
683 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
684 ->GetViewForID(id);
685
686 // Return type: refptr_same
687 return CefViewCppToC::Wrap(_retval);
688 }
689
label_button_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)690 void CEF_CALLBACK label_button_set_bounds(struct _cef_view_t* self,
691 const cef_rect_t* bounds) {
692 shutdown_checker::AssertNotShutdown();
693
694 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
695
696 DCHECK(self);
697 if (!self)
698 return;
699 // Verify param: bounds; type: simple_byref_const
700 DCHECK(bounds);
701 if (!bounds)
702 return;
703
704 // Translate param: bounds; type: simple_byref_const
705 CefRect boundsVal = bounds ? *bounds : CefRect();
706
707 // Execute
708 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
709 ->SetBounds(boundsVal);
710 }
711
label_button_get_bounds(struct _cef_view_t * self)712 cef_rect_t CEF_CALLBACK label_button_get_bounds(struct _cef_view_t* self) {
713 shutdown_checker::AssertNotShutdown();
714
715 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
716
717 DCHECK(self);
718 if (!self)
719 return CefRect();
720
721 // Execute
722 cef_rect_t _retval =
723 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
724 ->GetBounds();
725
726 // Return type: simple
727 return _retval;
728 }
729
730 cef_rect_t CEF_CALLBACK
label_button_get_bounds_in_screen(struct _cef_view_t * self)731 label_button_get_bounds_in_screen(struct _cef_view_t* self) {
732 shutdown_checker::AssertNotShutdown();
733
734 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
735
736 DCHECK(self);
737 if (!self)
738 return CefRect();
739
740 // Execute
741 cef_rect_t _retval =
742 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
743 ->GetBoundsInScreen();
744
745 // Return type: simple
746 return _retval;
747 }
748
label_button_set_size(struct _cef_view_t * self,const cef_size_t * size)749 void CEF_CALLBACK label_button_set_size(struct _cef_view_t* self,
750 const cef_size_t* size) {
751 shutdown_checker::AssertNotShutdown();
752
753 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
754
755 DCHECK(self);
756 if (!self)
757 return;
758 // Verify param: size; type: simple_byref_const
759 DCHECK(size);
760 if (!size)
761 return;
762
763 // Translate param: size; type: simple_byref_const
764 CefSize sizeVal = size ? *size : CefSize();
765
766 // Execute
767 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
768 ->SetSize(sizeVal);
769 }
770
label_button_get_size(struct _cef_view_t * self)771 cef_size_t CEF_CALLBACK label_button_get_size(struct _cef_view_t* self) {
772 shutdown_checker::AssertNotShutdown();
773
774 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
775
776 DCHECK(self);
777 if (!self)
778 return CefSize();
779
780 // Execute
781 cef_size_t _retval =
782 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
783 ->GetSize();
784
785 // Return type: simple
786 return _retval;
787 }
788
label_button_set_position(struct _cef_view_t * self,const cef_point_t * position)789 void CEF_CALLBACK label_button_set_position(struct _cef_view_t* self,
790 const cef_point_t* position) {
791 shutdown_checker::AssertNotShutdown();
792
793 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
794
795 DCHECK(self);
796 if (!self)
797 return;
798 // Verify param: position; type: simple_byref_const
799 DCHECK(position);
800 if (!position)
801 return;
802
803 // Translate param: position; type: simple_byref_const
804 CefPoint positionVal = position ? *position : CefPoint();
805
806 // Execute
807 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
808 ->SetPosition(positionVal);
809 }
810
label_button_get_position(struct _cef_view_t * self)811 cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) {
812 shutdown_checker::AssertNotShutdown();
813
814 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
815
816 DCHECK(self);
817 if (!self)
818 return CefPoint();
819
820 // Execute
821 cef_point_t _retval =
822 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
823 ->GetPosition();
824
825 // Return type: simple
826 return _retval;
827 }
828
label_button_set_insets(struct _cef_view_t * self,const cef_insets_t * insets)829 void CEF_CALLBACK label_button_set_insets(struct _cef_view_t* self,
830 const cef_insets_t* insets) {
831 shutdown_checker::AssertNotShutdown();
832
833 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
834
835 DCHECK(self);
836 if (!self)
837 return;
838 // Verify param: insets; type: simple_byref_const
839 DCHECK(insets);
840 if (!insets)
841 return;
842
843 // Translate param: insets; type: simple_byref_const
844 CefInsets insetsVal = insets ? *insets : CefInsets();
845
846 // Execute
847 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
848 ->SetInsets(insetsVal);
849 }
850
label_button_get_insets(struct _cef_view_t * self)851 cef_insets_t CEF_CALLBACK label_button_get_insets(struct _cef_view_t* self) {
852 shutdown_checker::AssertNotShutdown();
853
854 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
855
856 DCHECK(self);
857 if (!self)
858 return CefInsets();
859
860 // Execute
861 cef_insets_t _retval =
862 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
863 ->GetInsets();
864
865 // Return type: simple
866 return _retval;
867 }
868
869 cef_size_t CEF_CALLBACK
label_button_get_preferred_size(struct _cef_view_t * self)870 label_button_get_preferred_size(struct _cef_view_t* self) {
871 shutdown_checker::AssertNotShutdown();
872
873 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
874
875 DCHECK(self);
876 if (!self)
877 return CefSize();
878
879 // Execute
880 cef_size_t _retval =
881 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
882 ->GetPreferredSize();
883
884 // Return type: simple
885 return _retval;
886 }
887
888 void CEF_CALLBACK
label_button_size_to_preferred_size(struct _cef_view_t * self)889 label_button_size_to_preferred_size(struct _cef_view_t* self) {
890 shutdown_checker::AssertNotShutdown();
891
892 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
893
894 DCHECK(self);
895 if (!self)
896 return;
897
898 // Execute
899 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
900 ->SizeToPreferredSize();
901 }
902
903 cef_size_t CEF_CALLBACK
label_button_get_minimum_size(struct _cef_view_t * self)904 label_button_get_minimum_size(struct _cef_view_t* self) {
905 shutdown_checker::AssertNotShutdown();
906
907 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
908
909 DCHECK(self);
910 if (!self)
911 return CefSize();
912
913 // Execute
914 cef_size_t _retval =
915 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
916 ->GetMinimumSize();
917
918 // Return type: simple
919 return _retval;
920 }
921
922 cef_size_t CEF_CALLBACK
label_button_get_maximum_size(struct _cef_view_t * self)923 label_button_get_maximum_size(struct _cef_view_t* self) {
924 shutdown_checker::AssertNotShutdown();
925
926 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
927
928 DCHECK(self);
929 if (!self)
930 return CefSize();
931
932 // Execute
933 cef_size_t _retval =
934 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
935 ->GetMaximumSize();
936
937 // Return type: simple
938 return _retval;
939 }
940
label_button_get_height_for_width(struct _cef_view_t * self,int width)941 int CEF_CALLBACK label_button_get_height_for_width(struct _cef_view_t* self,
942 int width) {
943 shutdown_checker::AssertNotShutdown();
944
945 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
946
947 DCHECK(self);
948 if (!self)
949 return 0;
950
951 // Execute
952 int _retval =
953 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
954 ->GetHeightForWidth(width);
955
956 // Return type: simple
957 return _retval;
958 }
959
label_button_invalidate_layout(struct _cef_view_t * self)960 void CEF_CALLBACK label_button_invalidate_layout(struct _cef_view_t* self) {
961 shutdown_checker::AssertNotShutdown();
962
963 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
964
965 DCHECK(self);
966 if (!self)
967 return;
968
969 // Execute
970 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
971 ->InvalidateLayout();
972 }
973
label_button_set_visible(struct _cef_view_t * self,int visible)974 void CEF_CALLBACK label_button_set_visible(struct _cef_view_t* self,
975 int visible) {
976 shutdown_checker::AssertNotShutdown();
977
978 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
979
980 DCHECK(self);
981 if (!self)
982 return;
983
984 // Execute
985 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
986 ->SetVisible(visible ? true : false);
987 }
988
label_button_is_visible(struct _cef_view_t * self)989 int CEF_CALLBACK label_button_is_visible(struct _cef_view_t* self) {
990 shutdown_checker::AssertNotShutdown();
991
992 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
993
994 DCHECK(self);
995 if (!self)
996 return 0;
997
998 // Execute
999 bool _retval =
1000 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1001 ->IsVisible();
1002
1003 // Return type: bool
1004 return _retval;
1005 }
1006
label_button_is_drawn(struct _cef_view_t * self)1007 int CEF_CALLBACK label_button_is_drawn(struct _cef_view_t* self) {
1008 shutdown_checker::AssertNotShutdown();
1009
1010 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1011
1012 DCHECK(self);
1013 if (!self)
1014 return 0;
1015
1016 // Execute
1017 bool _retval =
1018 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1019 ->IsDrawn();
1020
1021 // Return type: bool
1022 return _retval;
1023 }
1024
label_button_set_enabled(struct _cef_view_t * self,int enabled)1025 void CEF_CALLBACK label_button_set_enabled(struct _cef_view_t* self,
1026 int enabled) {
1027 shutdown_checker::AssertNotShutdown();
1028
1029 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1030
1031 DCHECK(self);
1032 if (!self)
1033 return;
1034
1035 // Execute
1036 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1037 ->SetEnabled(enabled ? true : false);
1038 }
1039
label_button_is_enabled(struct _cef_view_t * self)1040 int CEF_CALLBACK label_button_is_enabled(struct _cef_view_t* self) {
1041 shutdown_checker::AssertNotShutdown();
1042
1043 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1044
1045 DCHECK(self);
1046 if (!self)
1047 return 0;
1048
1049 // Execute
1050 bool _retval =
1051 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1052 ->IsEnabled();
1053
1054 // Return type: bool
1055 return _retval;
1056 }
1057
label_button_set_focusable(struct _cef_view_t * self,int focusable)1058 void CEF_CALLBACK label_button_set_focusable(struct _cef_view_t* self,
1059 int focusable) {
1060 shutdown_checker::AssertNotShutdown();
1061
1062 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1063
1064 DCHECK(self);
1065 if (!self)
1066 return;
1067
1068 // Execute
1069 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1070 ->SetFocusable(focusable ? true : false);
1071 }
1072
label_button_is_focusable(struct _cef_view_t * self)1073 int CEF_CALLBACK label_button_is_focusable(struct _cef_view_t* self) {
1074 shutdown_checker::AssertNotShutdown();
1075
1076 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1077
1078 DCHECK(self);
1079 if (!self)
1080 return 0;
1081
1082 // Execute
1083 bool _retval =
1084 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1085 ->IsFocusable();
1086
1087 // Return type: bool
1088 return _retval;
1089 }
1090
1091 int CEF_CALLBACK
label_button_is_accessibility_focusable(struct _cef_view_t * self)1092 label_button_is_accessibility_focusable(struct _cef_view_t* self) {
1093 shutdown_checker::AssertNotShutdown();
1094
1095 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1096
1097 DCHECK(self);
1098 if (!self)
1099 return 0;
1100
1101 // Execute
1102 bool _retval =
1103 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1104 ->IsAccessibilityFocusable();
1105
1106 // Return type: bool
1107 return _retval;
1108 }
1109
label_button_request_focus(struct _cef_view_t * self)1110 void CEF_CALLBACK label_button_request_focus(struct _cef_view_t* self) {
1111 shutdown_checker::AssertNotShutdown();
1112
1113 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1114
1115 DCHECK(self);
1116 if (!self)
1117 return;
1118
1119 // Execute
1120 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1121 ->RequestFocus();
1122 }
1123
label_button_set_background_color(struct _cef_view_t * self,cef_color_t color)1124 void CEF_CALLBACK label_button_set_background_color(struct _cef_view_t* self,
1125 cef_color_t color) {
1126 shutdown_checker::AssertNotShutdown();
1127
1128 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1129
1130 DCHECK(self);
1131 if (!self)
1132 return;
1133
1134 // Execute
1135 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1136 ->SetBackgroundColor(color);
1137 }
1138
1139 cef_color_t CEF_CALLBACK
label_button_get_background_color(struct _cef_view_t * self)1140 label_button_get_background_color(struct _cef_view_t* self) {
1141 shutdown_checker::AssertNotShutdown();
1142
1143 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1144
1145 DCHECK(self);
1146 if (!self)
1147 return 0;
1148
1149 // Execute
1150 cef_color_t _retval =
1151 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1152 ->GetBackgroundColor();
1153
1154 // Return type: simple
1155 return _retval;
1156 }
1157
label_button_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1158 int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self,
1159 cef_point_t* point) {
1160 shutdown_checker::AssertNotShutdown();
1161
1162 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1163
1164 DCHECK(self);
1165 if (!self)
1166 return 0;
1167 // Verify param: point; type: simple_byref
1168 DCHECK(point);
1169 if (!point)
1170 return 0;
1171
1172 // Translate param: point; type: simple_byref
1173 CefPoint pointVal = point ? *point : CefPoint();
1174
1175 // Execute
1176 bool _retval =
1177 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1178 ->ConvertPointToScreen(pointVal);
1179
1180 // Restore param: point; type: simple_byref
1181 if (point)
1182 *point = pointVal;
1183
1184 // Return type: bool
1185 return _retval;
1186 }
1187
1188 int CEF_CALLBACK
label_button_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1189 label_button_convert_point_from_screen(struct _cef_view_t* self,
1190 cef_point_t* point) {
1191 shutdown_checker::AssertNotShutdown();
1192
1193 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1194
1195 DCHECK(self);
1196 if (!self)
1197 return 0;
1198 // Verify param: point; type: simple_byref
1199 DCHECK(point);
1200 if (!point)
1201 return 0;
1202
1203 // Translate param: point; type: simple_byref
1204 CefPoint pointVal = point ? *point : CefPoint();
1205
1206 // Execute
1207 bool _retval =
1208 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1209 ->ConvertPointFromScreen(pointVal);
1210
1211 // Restore param: point; type: simple_byref
1212 if (point)
1213 *point = pointVal;
1214
1215 // Return type: bool
1216 return _retval;
1217 }
1218
label_button_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1219 int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self,
1220 cef_point_t* point) {
1221 shutdown_checker::AssertNotShutdown();
1222
1223 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1224
1225 DCHECK(self);
1226 if (!self)
1227 return 0;
1228 // Verify param: point; type: simple_byref
1229 DCHECK(point);
1230 if (!point)
1231 return 0;
1232
1233 // Translate param: point; type: simple_byref
1234 CefPoint pointVal = point ? *point : CefPoint();
1235
1236 // Execute
1237 bool _retval =
1238 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1239 ->ConvertPointToWindow(pointVal);
1240
1241 // Restore param: point; type: simple_byref
1242 if (point)
1243 *point = pointVal;
1244
1245 // Return type: bool
1246 return _retval;
1247 }
1248
1249 int CEF_CALLBACK
label_button_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1250 label_button_convert_point_from_window(struct _cef_view_t* self,
1251 cef_point_t* point) {
1252 shutdown_checker::AssertNotShutdown();
1253
1254 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1255
1256 DCHECK(self);
1257 if (!self)
1258 return 0;
1259 // Verify param: point; type: simple_byref
1260 DCHECK(point);
1261 if (!point)
1262 return 0;
1263
1264 // Translate param: point; type: simple_byref
1265 CefPoint pointVal = point ? *point : CefPoint();
1266
1267 // Execute
1268 bool _retval =
1269 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1270 ->ConvertPointFromWindow(pointVal);
1271
1272 // Restore param: point; type: simple_byref
1273 if (point)
1274 *point = pointVal;
1275
1276 // Return type: bool
1277 return _retval;
1278 }
1279
label_button_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1280 int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self,
1281 struct _cef_view_t* view,
1282 cef_point_t* point) {
1283 shutdown_checker::AssertNotShutdown();
1284
1285 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1286
1287 DCHECK(self);
1288 if (!self)
1289 return 0;
1290 // Verify param: view; type: refptr_same
1291 DCHECK(view);
1292 if (!view)
1293 return 0;
1294 // Verify param: point; type: simple_byref
1295 DCHECK(point);
1296 if (!point)
1297 return 0;
1298
1299 // Translate param: point; type: simple_byref
1300 CefPoint pointVal = point ? *point : CefPoint();
1301
1302 // Execute
1303 bool _retval =
1304 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1305 ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1306
1307 // Restore param: point; type: simple_byref
1308 if (point)
1309 *point = pointVal;
1310
1311 // Return type: bool
1312 return _retval;
1313 }
1314
label_button_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1315 int CEF_CALLBACK label_button_convert_point_from_view(struct _cef_view_t* self,
1316 struct _cef_view_t* view,
1317 cef_point_t* point) {
1318 shutdown_checker::AssertNotShutdown();
1319
1320 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1321
1322 DCHECK(self);
1323 if (!self)
1324 return 0;
1325 // Verify param: view; type: refptr_same
1326 DCHECK(view);
1327 if (!view)
1328 return 0;
1329 // Verify param: point; type: simple_byref
1330 DCHECK(point);
1331 if (!point)
1332 return 0;
1333
1334 // Translate param: point; type: simple_byref
1335 CefPoint pointVal = point ? *point : CefPoint();
1336
1337 // Execute
1338 bool _retval =
1339 CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1340 ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1341
1342 // Restore param: point; type: simple_byref
1343 if (point)
1344 *point = pointVal;
1345
1346 // Return type: bool
1347 return _retval;
1348 }
1349
1350 } // namespace
1351
1352 // CONSTRUCTOR - Do not edit by hand.
1353
CefLabelButtonCppToC()1354 CefLabelButtonCppToC::CefLabelButtonCppToC() {
1355 GetStruct()->as_menu_button = label_button_as_menu_button;
1356 GetStruct()->set_text = label_button_set_text;
1357 GetStruct()->get_text = label_button_get_text;
1358 GetStruct()->set_image = label_button_set_image;
1359 GetStruct()->get_image = label_button_get_image;
1360 GetStruct()->set_text_color = label_button_set_text_color;
1361 GetStruct()->set_enabled_text_colors = label_button_set_enabled_text_colors;
1362 GetStruct()->set_font_list = label_button_set_font_list;
1363 GetStruct()->set_horizontal_alignment = label_button_set_horizontal_alignment;
1364 GetStruct()->set_minimum_size = label_button_set_minimum_size;
1365 GetStruct()->set_maximum_size = label_button_set_maximum_size;
1366 GetStruct()->base.as_label_button = label_button_as_label_button;
1367 GetStruct()->base.set_state = label_button_set_state;
1368 GetStruct()->base.get_state = label_button_get_state;
1369 GetStruct()->base.set_ink_drop_enabled = label_button_set_ink_drop_enabled;
1370 GetStruct()->base.set_tooltip_text = label_button_set_tooltip_text;
1371 GetStruct()->base.set_accessible_name = label_button_set_accessible_name;
1372 GetStruct()->base.base.as_browser_view = label_button_as_browser_view;
1373 GetStruct()->base.base.as_button = label_button_as_button;
1374 GetStruct()->base.base.as_panel = label_button_as_panel;
1375 GetStruct()->base.base.as_scroll_view = label_button_as_scroll_view;
1376 GetStruct()->base.base.as_textfield = label_button_as_textfield;
1377 GetStruct()->base.base.get_type_string = label_button_get_type_string;
1378 GetStruct()->base.base.to_string = label_button_to_string;
1379 GetStruct()->base.base.is_valid = label_button_is_valid;
1380 GetStruct()->base.base.is_attached = label_button_is_attached;
1381 GetStruct()->base.base.is_same = label_button_is_same;
1382 GetStruct()->base.base.get_delegate = label_button_get_delegate;
1383 GetStruct()->base.base.get_window = label_button_get_window;
1384 GetStruct()->base.base.get_id = label_button_get_id;
1385 GetStruct()->base.base.set_id = label_button_set_id;
1386 GetStruct()->base.base.get_group_id = label_button_get_group_id;
1387 GetStruct()->base.base.set_group_id = label_button_set_group_id;
1388 GetStruct()->base.base.get_parent_view = label_button_get_parent_view;
1389 GetStruct()->base.base.get_view_for_id = label_button_get_view_for_id;
1390 GetStruct()->base.base.set_bounds = label_button_set_bounds;
1391 GetStruct()->base.base.get_bounds = label_button_get_bounds;
1392 GetStruct()->base.base.get_bounds_in_screen =
1393 label_button_get_bounds_in_screen;
1394 GetStruct()->base.base.set_size = label_button_set_size;
1395 GetStruct()->base.base.get_size = label_button_get_size;
1396 GetStruct()->base.base.set_position = label_button_set_position;
1397 GetStruct()->base.base.get_position = label_button_get_position;
1398 GetStruct()->base.base.set_insets = label_button_set_insets;
1399 GetStruct()->base.base.get_insets = label_button_get_insets;
1400 GetStruct()->base.base.get_preferred_size = label_button_get_preferred_size;
1401 GetStruct()->base.base.size_to_preferred_size =
1402 label_button_size_to_preferred_size;
1403 GetStruct()->base.base.get_minimum_size = label_button_get_minimum_size;
1404 GetStruct()->base.base.get_maximum_size = label_button_get_maximum_size;
1405 GetStruct()->base.base.get_height_for_width =
1406 label_button_get_height_for_width;
1407 GetStruct()->base.base.invalidate_layout = label_button_invalidate_layout;
1408 GetStruct()->base.base.set_visible = label_button_set_visible;
1409 GetStruct()->base.base.is_visible = label_button_is_visible;
1410 GetStruct()->base.base.is_drawn = label_button_is_drawn;
1411 GetStruct()->base.base.set_enabled = label_button_set_enabled;
1412 GetStruct()->base.base.is_enabled = label_button_is_enabled;
1413 GetStruct()->base.base.set_focusable = label_button_set_focusable;
1414 GetStruct()->base.base.is_focusable = label_button_is_focusable;
1415 GetStruct()->base.base.is_accessibility_focusable =
1416 label_button_is_accessibility_focusable;
1417 GetStruct()->base.base.request_focus = label_button_request_focus;
1418 GetStruct()->base.base.set_background_color =
1419 label_button_set_background_color;
1420 GetStruct()->base.base.get_background_color =
1421 label_button_get_background_color;
1422 GetStruct()->base.base.convert_point_to_screen =
1423 label_button_convert_point_to_screen;
1424 GetStruct()->base.base.convert_point_from_screen =
1425 label_button_convert_point_from_screen;
1426 GetStruct()->base.base.convert_point_to_window =
1427 label_button_convert_point_to_window;
1428 GetStruct()->base.base.convert_point_from_window =
1429 label_button_convert_point_from_window;
1430 GetStruct()->base.base.convert_point_to_view =
1431 label_button_convert_point_to_view;
1432 GetStruct()->base.base.convert_point_from_view =
1433 label_button_convert_point_from_view;
1434 }
1435
1436 // DESTRUCTOR - Do not edit by hand.
1437
~CefLabelButtonCppToC()1438 CefLabelButtonCppToC::~CefLabelButtonCppToC() {
1439 shutdown_checker::AssertNotShutdown();
1440 }
1441
1442 template <>
1443 CefRefPtr<CefLabelButton>
1444 CefCppToCRefCounted<CefLabelButtonCppToC, CefLabelButton, cef_label_button_t>::
UnwrapDerived(CefWrapperType type,cef_label_button_t * s)1445 UnwrapDerived(CefWrapperType type, cef_label_button_t* s) {
1446 if (type == WT_MENU_BUTTON) {
1447 return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
1448 }
1449 NOTREACHED() << "Unexpected class type: " << type;
1450 return nullptr;
1451 }
1452
1453 template <>
1454 CefWrapperType CefCppToCRefCounted<CefLabelButtonCppToC,
1455 CefLabelButton,
1456 cef_label_button_t>::kWrapperType =
1457 WT_LABEL_BUTTON;
1458