PatchworkOS
Loading...
Searching...
No Matches
button.c File Reference
#include "internal.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

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

◆ button_procedure()

◆ button_send_action()

static void button_send_action ( element_t elem,
action_type_t  type 
)
static