2 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the LGPL License, Version 2.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * https://www.gnu.org/licenses/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
27 enum class DirtyState {
32 All = (None | Path | Stroke | Brush)
34 enum class Type : unsigned char{
38 typedef vFlag<DirtyState> DirtyFlag;
39 virtual ~VDrawable() = default;
40 void setPath(const VPath &path);
41 void setFillRule(FillRule rule) { mFillRule = rule; }
42 void setBrush(const VBrush &brush) { mBrush = brush; }
43 void setStrokeInfo(CapStyle cap, JoinStyle join, float meterLimit,
45 void setDashInfo(float *array, uint size);
46 void preprocess(const VRect &clip);
51 std::vector<float> mDash;
55 CapStyle cap{CapStyle::Flat};
56 JoinStyle join{JoinStyle::Bevel};
63 DirtyFlag mFlag{DirtyState::All};
64 FillRule mFillRule{FillRule::Winding};
65 VDrawable::Type mType{Type::Fill};