#include "xfa/fwl/cfwl_widgetmgr.h"
#include "build/build_config.h"
#include "core/fxcrt/check.h"
#include "fxjs/gc/container_trace.h"
#include "xfa/fwl/cfwl_app.h"
#include "xfa/fwl/cfwl_message.h"
#include "xfa/fwl/cfwl_notedriver.h"
#include "xfa/fwl/cfwl_pushbutton.h"
namespace pdfium {
CFWL_WidgetMgr::CFWL_WidgetMgr(AdapterIface* pAdapter, CFWL_App* pApp)
: … { … }
CFWL_WidgetMgr::~CFWL_WidgetMgr() = default;
void CFWL_WidgetMgr::Trace(cppgc::Visitor* visitor) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetParentWidget(const CFWL_Widget* pWidget) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetPriorSiblingWidget(CFWL_Widget* pWidget) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetNextSiblingWidget(CFWL_Widget* pWidget) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetFirstChildWidget(CFWL_Widget* pWidget) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetLastChildWidget(CFWL_Widget* pWidget) const { … }
void CFWL_WidgetMgr::RepaintWidget(CFWL_Widget* pWidget,
const CFX_RectF& rect) { … }
void CFWL_WidgetMgr::InsertWidget(CFWL_Widget* pParent, CFWL_Widget* pChild) { … }
void CFWL_WidgetMgr::RemoveWidget(CFWL_Widget* pWidget) { … }
CFWL_Widget* CFWL_WidgetMgr::GetWidgetAtPoint(CFWL_Widget* parent,
const CFX_PointF& point) const { … }
CFWL_Widget* CFWL_WidgetMgr::GetDefaultButton(CFWL_Widget* pParent) const { … }
CFWL_WidgetMgr::Item* CFWL_WidgetMgr::GetWidgetMgrRootItem() const { … }
CFWL_WidgetMgr::Item* CFWL_WidgetMgr::GetWidgetMgrItem(
const CFWL_Widget* pWidget) const { … }
CFWL_WidgetMgr::Item* CFWL_WidgetMgr::CreateWidgetMgrItem(
CFWL_Widget* pWidget) { … }
void CFWL_WidgetMgr::GetAdapterPopupPos(CFWL_Widget* pWidget,
float fMinHeight,
float fMaxHeight,
const CFX_RectF& rtAnchor,
CFX_RectF* pPopupRect) const { … }
void CFWL_WidgetMgr::OnProcessMessageToForm(CFWL_Message* pMessage) { … }
void CFWL_WidgetMgr::OnDrawWidget(CFWL_Widget* pWidget,
CFGAS_GEGraphics* pGraphics,
const CFX_Matrix& matrix) { … }
void CFWL_WidgetMgr::DrawChildren(CFWL_Widget* parent,
const CFX_RectF& rtClip,
CFGAS_GEGraphics* pGraphics,
const CFX_Matrix& mtMatrix) { … }
CFWL_WidgetMgr::Item::Item(CFWL_Widget* widget) : … { … }
CFWL_WidgetMgr::Item::~Item() = default;
void CFWL_WidgetMgr::Item::Trace(cppgc::Visitor* visitor) const { … }
}