mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
27 lines
693 B
C++
27 lines
693 B
C++
// Copyright 2016 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_
|
|
#define SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_
|
|
|
|
#include "flutter/sky/engine/platform/text/TextDirection.h"
|
|
#include "third_party/skia/include/core/SkRect.h"
|
|
|
|
namespace blink {
|
|
|
|
class TextBox {
|
|
public:
|
|
TextBox() : is_null(true) {}
|
|
TextBox(SkRect r, TextDirection direction)
|
|
: sk_rect(std::move(r)), direction(direction), is_null(false) {}
|
|
|
|
SkRect sk_rect;
|
|
TextDirection direction;
|
|
bool is_null;
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // SKY_ENGINE_PLATFORM_TEXT_TEXTBOX_H_
|