/* Copyright (C) 2019-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: WxdkdrawComp.cpt */ #ifndef WXDKDRAWCOMP_H_INCLUDED /** Avoid multiple inclusions. */ #define WXDKDRAWCOMP_H_INCLUDED 1 #line 8 "WxdkdrawComp.cpt" /** @file WxdkdrawComp.h Compare drawing objects. */ #ifndef DK4TYPES_H_INCLUDED #include "dk4types.h" #endif #ifndef WXDTYPES_H_INCLUDED #include "WxdkdrawTypes.h" #endif /** Comparison criteria for drawing objects. */ enum { /** Compare by layer number and object properties. */ WXD2LAT_OBJ_COMPARE_CR_PROPERTIES = 0 , /** Compare objects by name. */ WXD2LAT_OBJ_COMPARE_CR_BY_NAME , /** Compare object name against specified name. */ WXD2LAT_OBJ_COMPARE_CR_AGAINST_NAME }; #ifdef __cplusplus extern "C" { #endif /** Compare drawing objects. @param l Left object. @param r Right object or name. @param cr Comparison criteria: - WXD2LAT_OBJ_COMPARE_CR_PROPERTIES: Object/object by features, - WXD2LAT_OBJ_COMPARE_CR_BY_NAME: Object/object by name, - WXD2LAT_OBJ_COMPARE_CR_AGAINST_NAME: Object/name. @return Comparison result: -1: lr. */ int drawobj_compare_object(const void *l, const void *r, int cr); /** Find category for object type. @param ot Object type. @return Category for object type. */ int drawobj_object_category(int8_t ot); /** Compare stipple bitmaps. @param l Address of left structure. @param r Address of right structure. @param cr Comparison criteria (ignored). @return Comparison result. */ int drawobj_compare_stipples(const void *l, const void *r, int cr); /** Compare two layer structures. @param l Left layer structure. @param r Right layer structure or layer number. @param cr Comparison criteria (0=layer/layer, 1=layer/number). @return Comparison result. */ int drawobj_compare_layers(const void *l, const void *r, int cr); #ifdef __cplusplus } #endif #endif