~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 5ece5078e5bbbdb76d5f88c6e14171bd978656b6 CTU-FEE-B0B35APO-Semestral-project/file-browser/include/gui_list_commands.h -rw-r--r-- 494 bytes
5ece5078 — František Boháček feat: add text zoom to text viewer 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __GUI_LIST_COMMANDS_H__
#define __GUI_LIST_COMMANDS_H__

#include <stdint.h>
#include "gui.h"

typedef void (*gui_list_item_clicked_fn)(container_t *list_container, void *state, uint32_t selected_index);

typedef struct {
  gui_list_item_clicked_fn clicked;
  void *state;
  container_t *container;

  gui_t *gui;
  window_t *window;
} gui_list_command_state_t;

void gui_list_commands_register(commands_t *commands, gui_list_command_state_t *state);

#endif // __GUI_LIST_COMMANDS_H__
Do not follow this link