/* OCP.Graphic3d — text alignment. Only the two alignment enums, which the text-emboss feature passes to the BRep text builder. Nothing else in Graphic3d is a modelling concept, and the app draws nothing through OCCT. */ #include "../common/occt_module.h" #include #include void register_Graphic3d(nb::module_ &root) { nb::module_ m = ocp_submodule(root, "Graphic3d"); nb::enum_( m, "Graphic3d_HorizontalTextAlignment", nb::is_arithmetic()) .value("Graphic3d_HTA_LEFT", Graphic3d_HTA_LEFT) .value("Graphic3d_HTA_CENTER", Graphic3d_HTA_CENTER) .value("Graphic3d_HTA_RIGHT", Graphic3d_HTA_RIGHT) .export_values(); nb::enum_( m, "Graphic3d_VerticalTextAlignment", nb::is_arithmetic()) .value("Graphic3d_VTA_BOTTOM", Graphic3d_VTA_BOTTOM) .value("Graphic3d_VTA_CENTER", Graphic3d_VTA_CENTER) .value("Graphic3d_VTA_TOP", Graphic3d_VTA_TOP) .value("Graphic3d_VTA_TOPFIRSTLINE", Graphic3d_VTA_TOPFIRSTLINE) .export_values(); }