PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
button.c File Reference
#include "internal.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for button.c:

Go to the source code of this file.

Data Structures

struct  button_t
 

Functions

static void button_draw (element_t *elem, button_t *button)
 
static void button_send_action (element_t *elem, action_type_t type)
 
static uint64_t button_procedure (window_t *win, element_t *elem, const event_t *event)
 
element_tbutton_new (element_t *parent, element_id_t id, const rect_t *rect, const char *text, element_flags_t flags)
 Create a new button element.
 

Function Documentation

◆ button_draw()

static void button_draw ( element_t elem,
button_t button 
)
static

Definition at line 15 of file button.c.

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

◆ button_send_action()

static void button_send_action ( element_t elem,
action_type_t  type 
)
static

Definition at line 140 of file button.c.

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

◆ button_procedure()

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

Definition at line 146 of file button.c.

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