| 3927 | } |
| 3928 | |
| 3929 | static void |
| 3930 | garrow_round_options_class_init(GArrowRoundOptionsClass *klass) |
| 3931 | { |
| 3932 | auto gobject_class = G_OBJECT_CLASS(klass); |
| 3933 | |
| 3934 | gobject_class->set_property = garrow_round_options_set_property; |
| 3935 | gobject_class->get_property = garrow_round_options_get_property; |
| 3936 | |
| 3937 | arrow::compute::RoundOptions options; |
| 3938 | |
| 3939 | GParamSpec *spec; |
| 3940 | /** |
| 3941 | * GArrowRoundOptions:n-digits: |
| 3942 | * |
| 3943 | * The rounding precision (number of digits to round to). |
| 3944 | * |
| 3945 | * Since: 7.0.0 |
| 3946 | */ |
| 3947 | spec = g_param_spec_int64("n-digits", |
| 3948 | "Number of digits to round to", |
| 3949 | "The round precision", |
| 3950 | G_MININT64, |
| 3951 | G_MAXINT64, |
| 3952 | options.ndigits, |
| 3953 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 3954 | g_object_class_install_property(gobject_class, PROP_ROUND_OPTIONS_N_DIGITS, spec); |
| 3955 | |
| 3956 | /** |
| 3957 | * GArrowRoundOptions:mode: |
| 3958 | * |
| 3959 | * The rounding and tie-breaking mode. |
| 3960 | * |
| 3961 | * Since: 7.0.0 |
| 3962 | */ |
| 3963 | spec = g_param_spec_enum("mode", |
| 3964 | "Mode", |
| 3965 | "The rounding and tie-breaking mode", |
| 3966 | GARROW_TYPE_ROUND_MODE, |
| 3967 | static_cast<GArrowRoundMode>(options.round_mode), |
| 3968 | static_cast<GParamFlags>(G_PARAM_READWRITE)); |
| 3969 | g_object_class_install_property(gobject_class, PROP_ROUND_OPTIONS_MODE, spec); |
| 3970 | } |
| 3971 | |
| 3972 | /** |
| 3973 | * garrow_round_options_new: |
nothing calls this directly
no outgoing calls
no test coverage detected