39 lines
933 B
C
39 lines
933 B
C
// Copyright (c) 2021 Dominic Masters
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
#pragma once
|
|
#include <dawn/dawn.h>
|
|
|
|
/**
|
|
* Initialize a breakpoint.
|
|
*
|
|
* @param list List to initialize.
|
|
*/
|
|
void breakpointInit(breakpointlist_t *list);
|
|
|
|
/**
|
|
* Get the breakpoint for a given width set.
|
|
*
|
|
* @param list List to get from.
|
|
* @param width Width to use.
|
|
* @return The breakpoint (index) for this screen size.
|
|
*/
|
|
uint8_t breakpointGet(breakpointlist_t *list, float width);
|
|
|
|
/**
|
|
* Add a breakpoint definition to a breakpoint list.
|
|
*
|
|
* @param list List to add to.
|
|
* @param width Width of the breakpoint.
|
|
*/
|
|
void breakpointAdd(breakpointlist_t *list, float width);
|
|
|
|
/**
|
|
* Resize a breakpoint list, which (in turn) will fire the necessary events.
|
|
*
|
|
* @param list List to resize.
|
|
* @param width Width to use.
|
|
*/
|
|
void breakpointResize(breakpointlist_t *list, float width); |