You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.3 KiB

//
// JCDoodleConstant.h
// JCSDKOC
//
// Created by 葛泽宁 on 2022/3/4.
// Copyright © 2022 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* @brief
*/
typedef NS_ENUM(NSInteger, JCDoodleActionType) {
/// 开始涂鸦
JCDoodleActionInvalid = 0x100 - 1,
/// 开始涂鸦
JCDoodleActionStart = 0x100,
/// 结束涂鸦
JCDoodleActionStop,
/// 撤销
JCDoodleActionUndo,
/// 清除涂鸦
JCDoodleActionClear,
/// 画曲线
JCDoodleActionDraw,
/// 橡皮檫
JCDoodleActionEraser,
/// 贴图
JCDoodleActionSticker,
/// 翻页
JCDoodleActionSelectPage,
/// 获取数据
JCDoodleActionFetch,
/// 请求
JCDoodleActionRequest,
/// 回应
JCDoodleActionResponse,
/// 文本
JCDoodleActionText,
/// 椭圆
JCDoodleActionOval,
/// 矩形
JCDoodleActionRect,
/// 箭头
JCDoodleActionArrow,
/// 自定义类型
JCDoodleActionExtraBase = 0x200
};
/**
* @brief
*/
typedef NS_ENUM(NSInteger, DrawGraph) {
//无
None,
//画笔
Draw,
//橡皮
Eraser,
//矩形
Ractangle,
//圆形
Ellipse,
//三角形
Triangle,
//箭头
Arrow,
//文本
Text,
//贴图
Sticker,
};