24 lines
859 B
Zig
24 lines
859 B
Zig
const std = @import("std");
|
|
const Object = @import("../Object.zig");
|
|
const PropertyData = @import("../Property.zig").Data;
|
|
const Rect_f = @import("../basic_models.zig").Rect_f;
|
|
const shape_mod = @import("shape.zig");
|
|
|
|
/// Теги обязательных свойств (arc не реализован).
|
|
pub fn getRequiredTags() []const std.meta.Tag(PropertyData) {
|
|
return &[_]std.meta.Tag(PropertyData){};
|
|
}
|
|
|
|
/// Добавляет свойства по умолчанию для дуги.
|
|
pub fn appendDefaultShapeProperties(allocator: std.mem.Allocator, obj: *Object) !void {
|
|
_ = allocator;
|
|
_ = obj;
|
|
return error.ArcNotImplemented;
|
|
}
|
|
|
|
/// Локальные границы дуги (не реализовано).
|
|
pub fn getLocalBounds(obj: *const Object) !Rect_f {
|
|
try shape_mod.ensure(obj, .arc);
|
|
return error.ArcNotImplemented;
|
|
}
|