# limemani/programming-c-lang-helper-for-linux architecture

> Architecture diagram of the GitHub repository limemani/programming-c-lang-helper-for-linux, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/limemani/programming-c-lang-helper-for-linux
- Repository: https://github.com/limemani/programming-c-lang-helper-for-linux

## Overview

Linux C Programming Helper is a GTK/Libadwaita desktop learning reference. The main workflow is choosing a chapter, selecting a topic, viewing its example in a syntax-highlighted editor, then optionally compiling and running it with supplied input and viewing output. The graph also preserves the documented C and GTK 4 learning tracks and theme support. Source excerpts show the principal calls; unsampled resource wiring and some UI details are represented only where documented or directly referenced.

Main entry points: [`src/theme_list.c`](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/theme_list.c) (Topic selector), [`src/main.c`](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/main.c) (Application shell), [`src/chapters.c`](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/chapters.c) (Chapter selector), [`src/code_source_view.c`](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c) (Syntax editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Learning navigation"]
  node_application["Application shell<br/>[main.c]"]
  node_chapter_page["Chapter selector<br/>[chapters.c]"]
  node_topic_page["Topic selector<br/>[theme_list.c]"]
end

subgraph group_learning["Learning content"]
  node_lesson_tracks["C and GTK tracks<br/>[content.c]"]
  node_lesson_examples["Lesson examples<br/>[content.c]"]
end

subgraph group_workspace["Code workspace"]
  node_syntax_editor["Syntax editor<br/>[code_source_view.c]"]
  node_run_controls["Run controls<br/>[code_source_view.c]"]
  node_compiler_runner["Compile and run<br/>[code_source_view.c]"]
  node_program_input["Program input<br/>[code_source_view.c]"]
  node_program_output["Program output<br/>[code_source_view.c]"]
end

subgraph group_shared["Shared UI and styling"]
  node_ui_helpers["Page and alignment helpers<br/>[global_funcs.c]"]
  node_app_styles["Application styling<br/>[main.css]"]
end

node_learner(("Learner"))
node_gtk["GTK 4 / Libadwaita"]
node_sourceview["GtkSourceView"]
node_gcc["GCC"]

node_learner -->|"starts"| node_application
node_application -->|"creates"| node_chapter_page
node_application -->|"loads"| node_app_styles
node_application -->|"builds interface"| node_gtk
node_chapter_page -->|"opens track"| node_topic_page
node_chapter_page -->|"queries tracks"| node_lesson_tracks
node_topic_page -->|"queries topics"| node_lesson_tracks
node_topic_page -->|"retrieves example"| node_lesson_examples
node_topic_page -->|"opens example"| node_syntax_editor
node_lesson_tracks -->|"maps topics"| node_lesson_examples
node_syntax_editor -->|"uses highlighting"| node_sourceview
node_syntax_editor -->|"provides controls"| node_run_controls
node_run_controls -->|"starts execution"| node_compiler_runner
node_compiler_runner -->|"invokes compiler"| node_gcc
node_program_input -->|"supplies stdin"| node_compiler_runner
node_compiler_runner -->|"streams output"| node_program_output
node_chapter_page -->|"uses layout"| node_ui_helpers
node_topic_page -->|"uses layout"| node_ui_helpers
node_syntax_editor -->|"initializes page"| node_ui_helpers

click node_application "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/main.c"
click node_chapter_page "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/chapters.c"
click node_topic_page "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/theme_list.c"
click node_lesson_tracks "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/content.c"
click node_lesson_examples "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/content.c"
click node_syntax_editor "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c"
click node_run_controls "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c"
click node_compiler_runner "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c"
click node_program_input "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c"
click node_program_output "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c"
click node_ui_helpers "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/global_funcs.c"
click node_app_styles "https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/resources/main.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_chapter_page,node_topic_page,node_sourceview toneBlue
class node_lesson_tracks,node_lesson_examples toneAmber
class node_syntax_editor,node_run_controls,node_compiler_runner,node_program_input,node_program_output toneMint
class node_ui_helpers,node_app_styles toneRose
class node_learner,node_gtk,node_gcc toneIndigo
```

## Components

### Learning navigation

- [Application shell](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/main.c): `src/main.c`
- [Chapter selector](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/chapters.c): `src/chapters.c`
- [Topic selector](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/theme_list.c): `src/theme_list.c`

### Learning content

- [C and GTK tracks](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/content.c): `src/content.c`
- [Lesson examples](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/content.c): `src/content.c`

### Code workspace

- [Syntax editor](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c): `src/code_source_view.c`
- [Run controls](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c): `src/code_source_view.c`
- [Compile and run](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c): `src/code_source_view.c`
- [Program input](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c): `src/code_source_view.c`
- [Program output](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/code_source_view.c): `src/code_source_view.c`

### Shared UI and styling

- [Page and alignment helpers](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/src/global_funcs.c): `src/global_funcs.c`
- [Application styling](https://github.com/limemani/programming-c-lang-helper-for-linux/blob/main/resources/main.css): `resources/main.css`

### Other components

- **Learner**
- **GTK 4 / Libadwaita**
- **GtkSourceView**
- **GCC**

## Connections

- Learner → Application shell: starts (evidence: `src/main.c`)
- Application shell → Chapter selector: creates (evidence: `src/main.c`)
- Application shell → Application styling: loads (evidence: `src/main.c`)
- Application shell → GTK 4 / Libadwaita: builds interface (evidence: `README.md`)
- Chapter selector → Topic selector: opens track (evidence: `src/chapters.c`)
- Chapter selector → C and GTK tracks: queries tracks (evidence: `src/chapters.c`)
- Topic selector → C and GTK tracks: queries topics (evidence: `src/theme_list.c`)
- Topic selector → Lesson examples: retrieves example (evidence: `src/theme_list.c`)
- Topic selector → Syntax editor: opens example (evidence: `src/theme_list.c`)
- C and GTK tracks → Lesson examples: maps topics (evidence: `src/content.c`)
- Syntax editor → GtkSourceView: uses highlighting (evidence: `README.md`)
- Syntax editor → Run controls: provides controls (evidence: `src/code_source_view.c`)
- Run controls → Compile and run: starts execution (evidence: `src/code_source_view.c`)
- Compile and run → GCC: invokes compiler (evidence: `src/code_source_view.c`)
- Program input → Compile and run: supplies stdin (evidence: `src/code_source_view.c`)
- Compile and run → Program output: streams output (evidence: `src/code_source_view.c`)
- Chapter selector → Page and alignment helpers: uses layout (evidence: `src/chapters.c`)
- Topic selector → Page and alignment helpers: uses layout (evidence: `src/theme_list.c`)
- Syntax editor → Page and alignment helpers: initializes page (evidence: `src/code_source_view.c`)
