Assembled 2
A column based text editor
Loading...
Searching...
No Matches
Macros | Functions
start.c File Reference
#include "editor/buffer/editor.h"
#include <editor/config.h>
#include <interface/screens/start.h>
#include <interface/interface.h>
#include <interface/theming/themes.h>
#include <global.h>
#include <util.h>

Macros

#define CHARS_FROM_CENTER   32
 
#define BMP_WIDTH   64
 
#define BMP_HEIGHT   40
 
#define SCREEN_MIN_WIDTH   (BMP_WIDTH + 20)
 
#define SCREEN_MIN_HEIGHT   (BMP_HEIGHT + 20)
 
#define UPDATE_TIME_MAX   0.07900
 
#define UPDATE_TIME_MIN   0.01000
 
#define UPDATE_TIME_TICK   0.00005
 

Functions

void register_start_screen ()
 
struct AS_CfgTokconfigure_start_screen (struct AS_CfgTok *token)
 

Detailed Description

Author
awewsomegamer awews.nosp@m.omeg.nosp@m.amer@.nosp@m.gmai.nosp@m.l.com

LICENSE

Assembled - Column based text editor Copyright (C) 2023-2024 awewsomegamer

This file is apart of Assembled.

Assembled is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

DESCRIPTION

The start screen that is displayed in the event no files are opened with the command.

Function Documentation

◆ configure_start_screen()

struct AS_CfgTok * configure_start_screen ( struct AS_CfgTok * token)

Configure the start screen.

The start screen offers two types of configuration: a change of logo and an option to turn off the binary moving background.

Parameters
structAS_CfgTok *token - The starting token of a line of configuration for the screen.
Returns
A pointer to the last element of the line of configuration (caller must use NEXT_TOKEN to move to the start of the next line).

◆ register_start_screen()

void register_start_screen ( )

Function called by main to register editor screen.

Wrapper of register_screen.