MCPcopy Create free account
hub / github.com/apache/arrow / garrow_zero_fill_options_class_init

Function garrow_zero_fill_options_class_init

c_glib/arrow-glib/compute.cpp:10661–10702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10659}
10660
10661static void
10662garrow_zero_fill_options_class_init(GArrowZeroFillOptionsClass *klass)
10663{
10664 auto gobject_class = G_OBJECT_CLASS(klass);
10665
10666 gobject_class->set_property = garrow_zero_fill_options_set_property;
10667 gobject_class->get_property = garrow_zero_fill_options_get_property;
10668
10669 arrow::compute::ZeroFillOptions options;
10670
10671 GParamSpec *spec;
10672 /**
10673 * GArrowZeroFillOptions:width:
10674 *
10675 * The desired string length.
10676 *
10677 * Since: 23.0.0
10678 */
10679 spec = g_param_spec_int64("width",
10680 "Width",
10681 "The desired string length",
10682 G_MININT64,
10683 G_MAXINT64,
10684 options.width,
10685 static_cast<GParamFlags>(G_PARAM_READWRITE));
10686 g_object_class_install_property(gobject_class, PROP_ZERO_FILL_OPTIONS_WIDTH, spec);
10687
10688 /**
10689 * GArrowZeroFillOptions:padding:
10690 *
10691 * What to pad the string with. Should be one codepoint (Unicode).
10692 *
10693 * Since: 23.0.0
10694 */
10695 spec =
10696 g_param_spec_string("padding",
10697 "Padding",
10698 "What to pad the string with. Should be one codepoint (Unicode)",
10699 options.padding.c_str(),
10700 static_cast<GParamFlags>(G_PARAM_READWRITE));
10701 g_object_class_install_property(gobject_class, PROP_ZERO_FILL_OPTIONS_PADDING, spec);
10702}
10703
10704/**
10705 * garrow_zero_fill_options_new:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected