blob: 372a46ea042d2d03a1846841fd24d2d84422e688 [file] [log] [blame]
// Copyright 2021 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_GFX_VECTOR_ICON_UTILS_H_
#define UI_GFX_VECTOR_ICON_UTILS_H_
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/vector_icon_types.h"
namespace gfx {
// Returns the number of arguments expected to follow |command| in a vector
// icon path representation.
GFX_EXPORT int GetCommandArgumentCount(CommandType command);
// Calculates the size that will be default for |icon|, in dip. This will be the
// smallest icon size |icon| contains.
GFX_EXPORT int GetDefaultSizeOfVectorIcon(const gfx::VectorIcon& icon);
} // namespace gfx
#endif // UI_GFX_VECTOR_ICON_UTILS_H_