2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2016-01-19 21:09:01 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2024-03-29 17:48:33 +01:00
|
|
|
// $hash=3ab4fe06360d8ad1837683efb6ae5229b4c01f91$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_CTOCPP_H_
|
|
|
|
#define CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_CTOCPP_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(WRAPPING_CEF_SHARED)
|
|
|
|
#error This file can be included wrapper-side only
|
|
|
|
#endif
|
2016-01-19 21:09:01 +01:00
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/capi/views/cef_box_layout_capi.h"
|
|
|
|
#include "include/capi/views/cef_fill_layout_capi.h"
|
|
|
|
#include "include/capi/views/cef_layout_capi.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "include/capi/views/cef_panel_capi.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/capi/views/cef_window_capi.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "include/views/cef_box_layout.h"
|
|
|
|
#include "include/views/cef_fill_layout.h"
|
|
|
|
#include "include/views/cef_layout.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/views/cef_panel.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
#include "include/views/cef_window.h"
|
2017-02-09 23:07:43 +01:00
|
|
|
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed wrapper-side only.
|
|
|
|
class CefPanelCToCpp
|
2017-02-09 23:07:43 +01:00
|
|
|
: public CefCToCppRefCounted<CefPanelCToCpp, CefPanel, cef_panel_t> {
|
2016-01-19 21:09:01 +01:00
|
|
|
public:
|
|
|
|
CefPanelCToCpp();
|
2019-01-23 16:42:12 +01:00
|
|
|
virtual ~CefPanelCToCpp();
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// CefPanel methods.
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefWindow> AsWindow() override;
|
|
|
|
CefRefPtr<CefFillLayout> SetToFillLayout() override;
|
2016-01-19 21:09:01 +01:00
|
|
|
CefRefPtr<CefBoxLayout> SetToBoxLayout(
|
2021-06-17 21:43:06 +02:00
|
|
|
const CefBoxLayoutSettings& settings) override;
|
|
|
|
CefRefPtr<CefLayout> GetLayout() override;
|
|
|
|
void Layout() override;
|
|
|
|
void AddChildView(CefRefPtr<CefView> view) override;
|
|
|
|
void AddChildViewAt(CefRefPtr<CefView> view, int index) override;
|
|
|
|
void ReorderChildView(CefRefPtr<CefView> view, int index) override;
|
|
|
|
void RemoveChildView(CefRefPtr<CefView> view) override;
|
|
|
|
void RemoveAllChildViews() override;
|
|
|
|
size_t GetChildViewCount() override;
|
|
|
|
CefRefPtr<CefView> GetChildViewAt(int index) override;
|
2016-01-19 21:09:01 +01:00
|
|
|
|
|
|
|
// CefView methods.
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefBrowserView> AsBrowserView() override;
|
|
|
|
CefRefPtr<CefButton> AsButton() override;
|
|
|
|
CefRefPtr<CefPanel> AsPanel() override;
|
|
|
|
CefRefPtr<CefScrollView> AsScrollView() override;
|
|
|
|
CefRefPtr<CefTextfield> AsTextfield() override;
|
|
|
|
CefString GetTypeString() override;
|
|
|
|
CefString ToString(bool include_children) override;
|
|
|
|
bool IsValid() override;
|
|
|
|
bool IsAttached() override;
|
|
|
|
bool IsSame(CefRefPtr<CefView> that) override;
|
|
|
|
CefRefPtr<CefViewDelegate> GetDelegate() override;
|
|
|
|
CefRefPtr<CefWindow> GetWindow() override;
|
|
|
|
int GetID() override;
|
|
|
|
void SetID(int id) override;
|
|
|
|
int GetGroupID() override;
|
|
|
|
void SetGroupID(int group_id) override;
|
|
|
|
CefRefPtr<CefView> GetParentView() override;
|
|
|
|
CefRefPtr<CefView> GetViewForID(int id) override;
|
|
|
|
void SetBounds(const CefRect& bounds) override;
|
|
|
|
CefRect GetBounds() override;
|
|
|
|
CefRect GetBoundsInScreen() override;
|
|
|
|
void SetSize(const CefSize& size) override;
|
|
|
|
CefSize GetSize() override;
|
|
|
|
void SetPosition(const CefPoint& position) override;
|
|
|
|
CefPoint GetPosition() override;
|
2021-08-28 03:55:15 +02:00
|
|
|
void SetInsets(const CefInsets& insets) override;
|
|
|
|
CefInsets GetInsets() override;
|
2021-06-17 21:43:06 +02:00
|
|
|
CefSize GetPreferredSize() override;
|
|
|
|
void SizeToPreferredSize() override;
|
|
|
|
CefSize GetMinimumSize() override;
|
|
|
|
CefSize GetMaximumSize() override;
|
|
|
|
int GetHeightForWidth(int width) override;
|
|
|
|
void InvalidateLayout() override;
|
|
|
|
void SetVisible(bool visible) override;
|
|
|
|
bool IsVisible() override;
|
|
|
|
bool IsDrawn() override;
|
|
|
|
void SetEnabled(bool enabled) override;
|
|
|
|
bool IsEnabled() override;
|
|
|
|
void SetFocusable(bool focusable) override;
|
|
|
|
bool IsFocusable() override;
|
|
|
|
bool IsAccessibilityFocusable() override;
|
|
|
|
void RequestFocus() override;
|
|
|
|
void SetBackgroundColor(cef_color_t color) override;
|
|
|
|
cef_color_t GetBackgroundColor() override;
|
2024-03-29 17:48:33 +01:00
|
|
|
cef_color_t GetThemeColor(int color_id) override;
|
2021-06-17 21:43:06 +02:00
|
|
|
bool ConvertPointToScreen(CefPoint& point) override;
|
|
|
|
bool ConvertPointFromScreen(CefPoint& point) override;
|
|
|
|
bool ConvertPointToWindow(CefPoint& point) override;
|
|
|
|
bool ConvertPointFromWindow(CefPoint& point) override;
|
|
|
|
bool ConvertPointToView(CefRefPtr<CefView> view, CefPoint& point) override;
|
|
|
|
bool ConvertPointFromView(CefRefPtr<CefView> view, CefPoint& point) override;
|
2016-01-19 21:09:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_PANEL_CTOCPP_H_
|