Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
collapsible_section.c File Reference
+ Include dependency graph for collapsible_section.c:

Go to the source code of this file.

Functions

static void _collapsible_set_states (dt_gui_collapsible_section_t *cs, gboolean active)
 
static void _collapsible_container_show (GtkWidget *widget, gpointer user_data)
 
static void _coeffs_button_changed (GtkDarktableToggleButton *widget, gpointer user_data)
 
static void _coeffs_expander_click (GtkWidget *widget, GdkEventButton *e, gpointer user_data)
 
void dt_gui_update_collapsible_section (dt_gui_collapsible_section_t *cs)
 
void dt_gui_hide_collapsible_section (dt_gui_collapsible_section_t *cs)
 
void dt_gui_new_collapsible_section (dt_gui_collapsible_section_t *cs, const char *confname, const char *label, GtkBox *parent, GtkPackType pack)
 Create a collapsible section and pack it into the parent box.
 

Function Documentation

◆ _coeffs_button_changed()

◆ _coeffs_expander_click()

static void _coeffs_expander_click ( GtkWidget widget,
GdkEventButton e,
gpointer  user_data 
)
static

◆ _collapsible_container_show()

static void _collapsible_container_show ( GtkWidget widget,
gpointer  user_data 
)
static

Definition at line 43 of file collapsible_section.c.

References L, and dt_gui_collapsible_section_t::toggle.

Referenced by dt_gui_new_collapsible_section().

◆ _collapsible_set_states()

◆ dt_gui_hide_collapsible_section()

void dt_gui_hide_collapsible_section ( dt_gui_collapsible_section_t cs)

◆ dt_gui_new_collapsible_section()

void dt_gui_new_collapsible_section ( dt_gui_collapsible_section_t cs,
const char *  confname,
const char *  label,
GtkBox *  parent,
GtkPackType  pack 
)

Create a collapsible section and pack it into the parent box.

The pack argument makes the insertion side explicit so callers control layout order without reordering children later.

Parameters
cssection storage owned by the caller.
confnameconfiguration key used to persist the expanded state.
labelUI label for the section header.
parentGtkBox that receives the section.
packeither GTK_PACK_START or GTK_PACK_END to choose insertion side.

Definition at line 99 of file collapsible_section.c.

References _coeffs_button_changed(), _coeffs_expander_click(), _collapsible_container_show(), dt_gui_collapsible_section_t::confname, dt_gui_collapsible_section_t::container, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dt_gui_add_class(), DT_GUI_BOX_SPACING, dt_ui_section_label_new(), dt_widget_stored_bool(), dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_new(), dtgtk_expander_set_expanded(), dtgtk_togglebutton_new(), dt_gui_collapsible_section_t::expander, FALSE, L, dt_gui_collapsible_section_t::label, dt_gui_collapsible_section_t::parent, dt_gui_collapsible_section_t::toggle, and TRUE.

Referenced by dt_iop_gui_init_masks(), gui_init(), and gui_init().

◆ dt_gui_update_collapsible_section()