/** * @internal * @brief Gets the type of an Etk_Cairo * @return Returns the type of an Etk_Cairo */ Etk_Type *etk_cairo_type_get(void) { static Etk_Type *cairo_type = NULL; if (!cairo_type) { const Etk_Signal_Description signals[] = { ETK_SIGNAL_DESC_HANDLER(ETK_CAIRO_REDRAW_REQUIRED_SIGNAL, "redraw-required", Etk_Cairo, redraw_required_handler, etk_marshaller_VOID), ETK_SIGNAL_DESCRIPTION_SENTINEL }; cairo_type = etk_type_new("Etk_Cairo", ETK_WIDGET_TYPE, sizeof(Etk_Cairo), ETK_CONSTRUCTOR(_etk_cairo_constructor), ETK_DESTRUCTOR(_etk_cairo_destructor), signals); etk_type_property_add(cairo_type, "min-width", ETK_CAIRO_MIN_WIDTH_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); etk_type_property_add(cairo_type, "min-height", ETK_CAIRO_MIN_HEIGHT_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); cairo_type->property_set = _etk_cairo_property_set; cairo_type->property_get = _etk_cairo_property_get; } return cairo_type; }
/** * @internal * @brief Gets the type of an Etk_Table * @return Returns the type of an Etk_Table */ Etk_Type *etk_table_type_get(void) { static Etk_Type *table_type = NULL; if (!table_type) { table_type = etk_type_new("Etk_Table", ETK_CONTAINER_TYPE, sizeof(Etk_Table), ETK_CONSTRUCTOR(_etk_table_constructor), ETK_DESTRUCTOR(_etk_table_destructor), NULL); etk_type_property_add(table_type, "num-cols", ETK_TABLE_NUM_COLS_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); etk_type_property_add(table_type, "num-rows", ETK_TABLE_NUM_ROWS_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); etk_type_property_add(table_type, "homogeneous", ETK_TABLE_HOMOGENEOUS_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(ETK_TABLE_NOT_HOMOGENEOUS)); table_type->property_set = _etk_table_property_set; table_type->property_get = _etk_table_property_get; } return table_type; }
/** * @brief Gets the type of an Etk_Toolbar * @return Returns the type of an Etk_Toolbar */ Etk_Type *etk_toolbar_type_get(void) { static Etk_Type *toolbar_type = NULL; if (!toolbar_type) { toolbar_type = etk_type_new("Etk_Toolbar", ETK_CONTAINER_TYPE, sizeof(Etk_Toolbar), ETK_CONSTRUCTOR(_etk_toolbar_constructor), NULL, NULL); etk_type_property_add(toolbar_type, "orientation", ETK_TOOLBAR_ORIENTATION_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(ETK_TOOLBAR_HORIZ)); etk_type_property_add(toolbar_type, "style", ETK_TOOLBAR_STYLE_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(ETK_TOOLBAR_BOTH_VERT)); etk_type_property_add(toolbar_type, "stock-size", ETK_TOOLBAR_STOCK_SIZE_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(ETK_STOCK_MEDIUM)); toolbar_type->property_set = _etk_toolbar_property_set; toolbar_type->property_get = _etk_toolbar_property_get; } return toolbar_type; }
/** * @internal * @brief Gets the type of an Etk_Box * @return Returns the type of an Etk_Box */ Etk_Type *etk_box_type_get(void) { static Etk_Type *box_type = NULL; if (!box_type) { box_type = etk_type_new("Etk_Box", ETK_CONTAINER_TYPE, sizeof(Etk_Box), ETK_CONSTRUCTOR(_etk_box_constructor), ETK_DESTRUCTOR(_etk_box_destructor), NULL); etk_type_property_add(box_type, "spacing", ETK_BOX_SPACING_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); etk_type_property_add(box_type, "homogeneous", ETK_BOX_HOMOGENEOUS_PROPERTY, ETK_PROPERTY_BOOL, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_bool(ETK_FALSE)); box_type->property_set = _etk_box_property_set; box_type->property_get = _etk_box_property_get; } return box_type; }
/** * @internal * @brief Gets the type of an Etk_Spinner * @return Returns the type of an Etk_Spinner */ Etk_Type *etk_spinner_type_get(void) { static Etk_Type *spinner_type = NULL; if (!spinner_type) { spinner_type = etk_type_new("Etk_Spinner", ETK_RANGE_TYPE, sizeof(Etk_Spinner), ETK_CONSTRUCTOR(_etk_spinner_constructor), NULL, NULL); etk_type_property_add(spinner_type, "digits", ETK_SPINNER_DIGITS_PROPERTY, ETK_PROPERTY_INT, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_int(0)); etk_type_property_add(spinner_type, "snap-to-ticks", ETK_SPINNER_SNAP_TO_TICKS_PROPERTY, ETK_PROPERTY_BOOL, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_bool(ETK_FALSE)); etk_type_property_add(spinner_type, "wrap", ETK_SPINNER_WRAP_PROPERTY, ETK_PROPERTY_BOOL, ETK_PROPERTY_READABLE_WRITABLE, etk_property_value_bool(ETK_FALSE)); spinner_type->property_set = _etk_spinner_property_set; spinner_type->property_get = _etk_spinner_property_get; } return spinner_type; }