]> git.sesse.net Git - casparcg/blob - dependencies64/cef/windows/libcef_dll/ctocpp/views/textfield_ctocpp.h
319b44f07716f6161c4e6df77564e897b403edd7
[casparcg] / dependencies64 / cef / windows / libcef_dll / ctocpp / views / textfield_ctocpp.h
1 // Copyright (c) 2017 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
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_CTOCPP_H_
15 #pragma once
16
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
19 #endif
20
21 #include "include/views/cef_textfield.h"
22 #include "include/capi/views/cef_textfield_capi.h"
23 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
24
25 // Wrap a C structure with a C++ class.
26 // This class may be instantiated and accessed wrapper-side only.
27 class CefTextfieldCToCpp
28     : public CefCToCppRefCounted<CefTextfieldCToCpp, CefTextfield,
29         cef_textfield_t> {
30  public:
31   CefTextfieldCToCpp();
32
33   // CefTextfield methods.
34   void SetPasswordInput(bool password_input) OVERRIDE;
35   bool IsPasswordInput() OVERRIDE;
36   void SetReadOnly(bool read_only) OVERRIDE;
37   bool IsReadOnly() OVERRIDE;
38   CefString GetText() OVERRIDE;
39   void SetText(const CefString& text) OVERRIDE;
40   void AppendText(const CefString& text) OVERRIDE;
41   void InsertOrReplaceText(const CefString& text) OVERRIDE;
42   bool HasSelection() OVERRIDE;
43   CefString GetSelectedText() OVERRIDE;
44   void SelectAll(bool reversed) OVERRIDE;
45   void ClearSelection() OVERRIDE;
46   CefRange GetSelectedRange() OVERRIDE;
47   void SelectRange(const CefRange& range) OVERRIDE;
48   size_t GetCursorPosition() OVERRIDE;
49   void SetTextColor(cef_color_t color) OVERRIDE;
50   cef_color_t GetTextColor() OVERRIDE;
51   void SetSelectionTextColor(cef_color_t color) OVERRIDE;
52   cef_color_t GetSelectionTextColor() OVERRIDE;
53   void SetSelectionBackgroundColor(cef_color_t color) OVERRIDE;
54   cef_color_t GetSelectionBackgroundColor() OVERRIDE;
55   void SetFontList(const CefString& font_list) OVERRIDE;
56   void ApplyTextColor(cef_color_t color, const CefRange& range) OVERRIDE;
57   void ApplyTextStyle(cef_text_style_t style, bool add,
58       const CefRange& range) OVERRIDE;
59   bool IsCommandEnabled(int command_id) OVERRIDE;
60   void ExecuteCommand(int command_id) OVERRIDE;
61   void ClearEditHistory() OVERRIDE;
62   void SetPlaceholderText(const CefString& text) OVERRIDE;
63   CefString GetPlaceholderText() OVERRIDE;
64   void SetPlaceholderTextColor(cef_color_t color) OVERRIDE;
65   void SetAccessibleName(const CefString& name) OVERRIDE;
66
67   // CefView methods.
68   CefRefPtr<CefBrowserView> AsBrowserView() OVERRIDE;
69   CefRefPtr<CefButton> AsButton() OVERRIDE;
70   CefRefPtr<CefPanel> AsPanel() OVERRIDE;
71   CefRefPtr<CefScrollView> AsScrollView() OVERRIDE;
72   CefRefPtr<CefTextfield> AsTextfield() OVERRIDE;
73   CefString GetTypeString() OVERRIDE;
74   CefString ToString(bool include_children) OVERRIDE;
75   bool IsValid() OVERRIDE;
76   bool IsAttached() OVERRIDE;
77   bool IsSame(CefRefPtr<CefView> that) OVERRIDE;
78   CefRefPtr<CefViewDelegate> GetDelegate() OVERRIDE;
79   CefRefPtr<CefWindow> GetWindow() OVERRIDE;
80   int GetID() OVERRIDE;
81   void SetID(int id) OVERRIDE;
82   int GetGroupID() OVERRIDE;
83   void SetGroupID(int group_id) OVERRIDE;
84   CefRefPtr<CefView> GetParentView() OVERRIDE;
85   CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
86   void SetBounds(const CefRect& bounds) OVERRIDE;
87   CefRect GetBounds() OVERRIDE;
88   CefRect GetBoundsInScreen() OVERRIDE;
89   void SetSize(const CefSize& size) OVERRIDE;
90   CefSize GetSize() OVERRIDE;
91   void SetPosition(const CefPoint& position) OVERRIDE;
92   CefPoint GetPosition() OVERRIDE;
93   CefSize GetPreferredSize() OVERRIDE;
94   void SizeToPreferredSize() OVERRIDE;
95   CefSize GetMinimumSize() OVERRIDE;
96   CefSize GetMaximumSize() OVERRIDE;
97   int GetHeightForWidth(int width) OVERRIDE;
98   void InvalidateLayout() OVERRIDE;
99   void SetVisible(bool visible) OVERRIDE;
100   bool IsVisible() OVERRIDE;
101   bool IsDrawn() OVERRIDE;
102   void SetEnabled(bool enabled) OVERRIDE;
103   bool IsEnabled() OVERRIDE;
104   void SetFocusable(bool focusable) OVERRIDE;
105   bool IsFocusable() OVERRIDE;
106   bool IsAccessibilityFocusable() OVERRIDE;
107   void RequestFocus() OVERRIDE;
108   void SetBackgroundColor(cef_color_t color) OVERRIDE;
109   cef_color_t GetBackgroundColor() OVERRIDE;
110   bool ConvertPointToScreen(CefPoint& point) OVERRIDE;
111   bool ConvertPointFromScreen(CefPoint& point) OVERRIDE;
112   bool ConvertPointToWindow(CefPoint& point) OVERRIDE;
113   bool ConvertPointFromWindow(CefPoint& point) OVERRIDE;
114   bool ConvertPointToView(CefRefPtr<CefView> view, CefPoint& point) OVERRIDE;
115   bool ConvertPointFromView(CefRefPtr<CefView> view, CefPoint& point) OVERRIDE;
116 };
117
118 #endif  // CEF_LIBCEF_DLL_CTOCPP_VIEWS_TEXTFIELD_CTOCPP_H_