PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
taskbar.c File Reference
#include "taskbar.h"
#include <libpatchwork/display.h>
#include <libpatchwork/element.h>
#include <libpatchwork/event.h>
#include <libpatchwork/patchwork.h>
#include <libpatchwork/window.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/list.h>
#include <time.h>
Include dependency graph for taskbar.c:

Go to the source code of this file.

Functions

static rect_t taskbar_get_start_rect (element_t *elem)
 
static rect_t taskbar_get_clock_rect (element_t *elem)
 
static rect_t taskbar_get_left_separator_rect (element_t *elem)
 
static rect_t taskbar_get_right_separator_rect (element_t *elem)
 
static rect_t taskbar_get_task_button_rect (taskbar_t *taskbar, element_t *elem, uint64_t index)
 
static void taskbar_reposition_task_buttons (taskbar_t *taskbar, element_t *elem)
 
static void taskbar_entry_add (taskbar_t *taskbar, element_t *elem, const surface_info_t *info, const char *name)
 
static void taskbar_entry_remove (taskbar_t *taskbar, element_t *elem, surface_id_t surface)
 
static uint64_t taskbar_update_clock (element_t *elem)
 
static uint64_t taskbar_procedure (window_t *win, element_t *elem, const event_t *event)
 
window_ttaskbar_new (display_t *disp)
 

Function Documentation

◆ taskbar_get_start_rect()

static rect_t taskbar_get_start_rect ( element_t elem)
static

Definition at line 14 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_get_clock_rect()

static rect_t taskbar_get_clock_rect ( element_t elem)
static

Definition at line 21 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_get_left_separator_rect()

static rect_t taskbar_get_left_separator_rect ( element_t elem)
static

Definition at line 30 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_get_right_separator_rect()

static rect_t taskbar_get_right_separator_rect ( element_t elem)
static

Definition at line 39 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_get_task_button_rect()

static rect_t taskbar_get_task_button_rect ( taskbar_t taskbar,
element_t elem,
uint64_t  index 
)
static

Definition at line 48 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_reposition_task_buttons()

static void taskbar_reposition_task_buttons ( taskbar_t taskbar,
element_t elem 
)
static

Definition at line 73 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_entry_add()

static void taskbar_entry_add ( taskbar_t taskbar,
element_t elem,
const surface_info_t info,
const char *  name 
)
static

Definition at line 85 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_entry_remove()

static void taskbar_entry_remove ( taskbar_t taskbar,
element_t elem,
surface_id_t  surface 
)
static

Definition at line 112 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_update_clock()

static uint64_t taskbar_update_clock ( element_t elem)
static

Definition at line 131 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_procedure()

static uint64_t taskbar_procedure ( window_t win,
element_t elem,
const event_t event 
)
static

Definition at line 151 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ taskbar_new()

window_t * taskbar_new ( display_t disp)

Definition at line 351 of file taskbar.c.

Here is the call graph for this function:
Here is the caller graph for this function: