chromium/ui/views/layout/box_layout_view.h

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_LAYOUT_BOX_LAYOUT_VIEW_H_
#define UI_VIEWS_LAYOUT_BOX_LAYOUT_VIEW_H_

#include "base/memory/raw_ptr.h"
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/metadata/view_factory.h"
#include "ui/views/view.h"

namespace gfx {
class Insets;
}  // namespace gfx

namespace views {

class VIEWS_EXPORT BoxLayoutView : public View {};

BEGIN_VIEW_BUILDER(VIEWS_EXPORT, BoxLayoutView, View)
VIEW_BUILDER_PROPERTY(BoxLayout::Orientation, Orientation)
VIEW_BUILDER_PROPERTY(BoxLayout::MainAxisAlignment, MainAxisAlignment)
VIEW_BUILDER_PROPERTY(BoxLayout::CrossAxisAlignment, CrossAxisAlignment)
VIEW_BUILDER_PROPERTY(const gfx::Insets, InsideBorderInsets)
VIEW_BUILDER_PROPERTY(int, MinimumCrossAxisSize)
VIEW_BUILDER_PROPERTY(int, BetweenChildSpacing)
VIEW_BUILDER_PROPERTY(int, CollapseMarginsSpacing)
VIEW_BUILDER_PROPERTY(int, DefaultFlex)
END_VIEW_BUILDER

}  // namespace views

DEFINE_VIEW_BUILDER()

#endif  // UI_VIEWS_LAYOUT_BOX_LAYOUT_VIEW_H_