-/*
- * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+#ifdef BOARD_LEINIAO
#ifndef GRAPHIC_LITE_UI_LABEL_EXT_WITH_SHADOW_H
#define GRAPHIC_LITE_UI_LABEL_EXT_WITH_SHADOW_H
#endif // ENABLE_FONT_VECTOR_GLOBAL || ENABLE_SHAPING
#endif // GRAPHIC_LITE_UI_LABEL_EXT_WITH_SHADOW_H
+#endif
\ No newline at end of file
-/*
- * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
+#ifdef BOARD_LEINIAO
#include "components/ui_label_ext_with_shadow.h"
#include "common/text_with_shadow.h"
}
} // namespace OHOS
+#endif
\ No newline at end of file
-/*
- * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// 自己增加阴影的阴影效果组件
+// 效果为最右与最下方两个像素显示为黑色
+#ifdef BOARD_LEINIAO
#include "common/text_with_shadow.h"
#include "draw/draw_label.h"
}
} // namespace OHOS
+#endif
\ No newline at end of file
}
}
}
+#ifdef BOARD_LEINIAO
// 雷鸟项目增加,阴影Lable子组件
void DrawLabel::DrawTextOneLineWithShadow(BufferInfo& gfxDstBuffer, const LabelLineInfo& labelLine, int16_t shadowOffsetX, int16_t shadowOffsetY)
{
}
}
}
+#endif
void DrawLabel::DrawArcText(BufferInfo& gfxDstBuffer,
const Rect& mask,
class DrawLabel : public HeapBase {
public:
static void DrawTextOneLine(BufferInfo& gfxDstBuffer, const LabelLineInfo& labelLine);
+
+ #ifdef BOARD_LEINIAO
// 雷鸟项目增加,阴影Lable子组件
static void DrawTextOneLineWithShadow(BufferInfo& gfxDstBuffer, const LabelLineInfo& labelLine, int16_t shadowOffsetX = 2, int16_t shadowOffsetY = 2);
-
+ #endif
+
static void DrawArcText(BufferInfo& gfxDstBuffer, const Rect& mask, const char* text,
const Point& arcCenter, uint8_t fontId, const UIArcLabel::ArcTextInfo arcTextInfo,
UIArcLabel::TextOrientation orientation, const Style& style, uint8_t opaScale);
-/*
- * Copyright (c) 2020-2021 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// 自己增加阴影的阴影效果组件
+// 效果为最右与最下方两个像素显示为黑色
+#ifdef BOARD_LEINIAO
#ifndef GRAPHIC_LITE_TEXT_WITH_SHADOW_H
#define GRAPHIC_LITE_TEXT_WITH_SHADOW_H
} // namespace OHOS
#endif // GRAPHIC_LITE_TEXT_WITH_SHADOW_H
+#endif
\ No newline at end of file