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=db354914ca0dfe61f4adcc196c25c38b2ad13239$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_LABEL_BUTTON_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_VIEWS_LABEL_BUTTON_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(WRAPPING_CEF_SHARED) 20 #error This file can be included wrapper-side only 21 #endif 22 23 #include "include/capi/views/cef_label_button_capi.h" 24 #include "include/capi/views/cef_menu_button_capi.h" 25 #include "include/views/cef_label_button.h" 26 #include "include/views/cef_menu_button.h" 27 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 28 29 // Wrap a C structure with a C++ class. 30 // This class may be instantiated and accessed wrapper-side only. 31 class CefLabelButtonCToCpp : public CefCToCppRefCounted<CefLabelButtonCToCpp, 32 CefLabelButton, 33 cef_label_button_t> { 34 public: 35 CefLabelButtonCToCpp(); 36 virtual ~CefLabelButtonCToCpp(); 37 38 // CefLabelButton methods. 39 CefRefPtr<CefMenuButton> AsMenuButton() override; 40 void SetText(const CefString& text) override; 41 CefString GetText() override; 42 void SetImage(cef_button_state_t button_state, 43 CefRefPtr<CefImage> image) override; 44 CefRefPtr<CefImage> GetImage(cef_button_state_t button_state) override; 45 void SetTextColor(cef_button_state_t for_state, cef_color_t color) override; 46 void SetEnabledTextColors(cef_color_t color) override; 47 void SetFontList(const CefString& font_list) override; 48 void SetHorizontalAlignment(cef_horizontal_alignment_t alignment) override; 49 void SetMinimumSize(const CefSize& size) override; 50 void SetMaximumSize(const CefSize& size) override; 51 52 // CefButton methods. 53 CefRefPtr<CefLabelButton> AsLabelButton() override; 54 void SetState(cef_button_state_t state) override; 55 cef_button_state_t GetState() override; 56 void SetInkDropEnabled(bool enabled) override; 57 void SetTooltipText(const CefString& tooltip_text) override; 58 void SetAccessibleName(const CefString& name) override; 59 60 // CefView methods. 61 CefRefPtr<CefBrowserView> AsBrowserView() override; 62 CefRefPtr<CefButton> AsButton() override; 63 CefRefPtr<CefPanel> AsPanel() override; 64 CefRefPtr<CefScrollView> AsScrollView() override; 65 CefRefPtr<CefTextfield> AsTextfield() override; 66 CefString GetTypeString() override; 67 CefString ToString(bool include_children) override; 68 bool IsValid() override; 69 bool IsAttached() override; 70 bool IsSame(CefRefPtr<CefView> that) override; 71 CefRefPtr<CefViewDelegate> GetDelegate() override; 72 CefRefPtr<CefWindow> GetWindow() override; 73 int GetID() override; 74 void SetID(int id) override; 75 int GetGroupID() override; 76 void SetGroupID(int group_id) override; 77 CefRefPtr<CefView> GetParentView() override; 78 CefRefPtr<CefView> GetViewForID(int id) override; 79 void SetBounds(const CefRect& bounds) override; 80 CefRect GetBounds() override; 81 CefRect GetBoundsInScreen() override; 82 void SetSize(const CefSize& size) override; 83 CefSize GetSize() override; 84 void SetPosition(const CefPoint& position) override; 85 CefPoint GetPosition() override; 86 void SetInsets(const CefInsets& insets) override; 87 CefInsets GetInsets() override; 88 CefSize GetPreferredSize() override; 89 void SizeToPreferredSize() override; 90 CefSize GetMinimumSize() override; 91 CefSize GetMaximumSize() override; 92 int GetHeightForWidth(int width) override; 93 void InvalidateLayout() override; 94 void SetVisible(bool visible) override; 95 bool IsVisible() override; 96 bool IsDrawn() override; 97 void SetEnabled(bool enabled) override; 98 bool IsEnabled() override; 99 void SetFocusable(bool focusable) override; 100 bool IsFocusable() override; 101 bool IsAccessibilityFocusable() override; 102 void RequestFocus() override; 103 void SetBackgroundColor(cef_color_t color) override; 104 cef_color_t GetBackgroundColor() override; 105 bool ConvertPointToScreen(CefPoint& point) override; 106 bool ConvertPointFromScreen(CefPoint& point) override; 107 bool ConvertPointToWindow(CefPoint& point) override; 108 bool ConvertPointFromWindow(CefPoint& point) override; 109 bool ConvertPointToView(CefRefPtr<CefView> view, CefPoint& point) override; 110 bool ConvertPointFromView(CefRefPtr<CefView> view, CefPoint& point) override; 111 }; 112 113 #endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_LABEL_BUTTON_CTOCPP_H_ 114