comparison gtk4/dw.c @ 2441:a80df2e7195d

GTK4: Add a comment with the information about striped controls. This may not be usable, but I want to save it here for potential future use.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 08 Apr 2021 17:34:25 +0000
parents 0286ac44d347
children 8f7c2f20c7c0
comparison
equal deleted inserted replaced
2440:070337dd4ef7 2441:a80df2e7195d
5716 * DW_RGB_TRANSPARENT will disable coloring rows. 5716 * DW_RGB_TRANSPARENT will disable coloring rows.
5717 * DW_CLR_DEFAULT will use the system default alternating row colors. 5717 * DW_CLR_DEFAULT will use the system default alternating row colors.
5718 */ 5718 */
5719 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor) 5719 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor)
5720 { 5720 {
5721 /* TODO: If we want to accomplish this, according to mclasen we can do it
5722 * with CSS on a GtkListBox widget using the following CSS:
5723 * "row: nth-child(even) { background: red; }"
5724 * However he does not recommend we do it for performance reasons.
5725 */
5721 } 5726 }
5722 5727
5723 /* 5728 /*
5724 * Sets the width of a column in the container. 5729 * Sets the width of a column in the container.
5725 * Parameters: 5730 * Parameters: