Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
collapsible_section.h File Reference
#include <gtk/gtk.h>
+ Include dependency graph for collapsible_section.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dt_gui_collapsible_section_t
 

Typedefs

typedef G_BEGIN_DECLS struct dt_gui_collapsible_section_t dt_gui_collapsible_section_t
 

Functions

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.
 
void dt_gui_update_collapsible_section (dt_gui_collapsible_section_t *cs)
 
void dt_gui_hide_collapsible_section (dt_gui_collapsible_section_t *cs)
 

Typedef Documentation

◆ dt_gui_collapsible_section_t

Function Documentation

◆ 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()