Word Unperfect
public
Read
Owner: themaster
Branch: main
Commits: 0
Git CLI clone URL
git clone https://www.xt-emporium.com/git/word-unperfect.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
word-unperfect
/
rev
/
wp_layout_engine.h
File editor
#ifndef WP_LAYOUT_ENGINE_H #define WP_LAYOUT_ENGINE_H #include "wp_layout_shared.h" /* WP 5.1 Justification types */ typedef enum { WP_JUSTIFY_LEFT, WP_JUSTIFY_CENTER, WP_JUSTIFY_RIGHT, WP_JUSTIFY_FULL } WpJustifyType; typedef struct WpLine { uint16_t start_offset; uint16_t end_offset; uint16_t width; uint16_t space_count; WpJustifyType justification; bool is_hard_return; } WpLine; typedef struct WpPage { uint16_t page_number; uint16_t start_line; uint16_t end_line; uint16_t top_margin; uint16_t bottom_margin; } WpPage; /* H-Zone (Hyphenation Zone) settings */ typedef struct WpHZone { uint16_t left_percent; /* Percent of line width */ uint16_t right_percent; } WpHZone; /* Primary record bytes live at [first, first+count); consumed high-to-low toward first. */ void wp_primary_buffer_bind_bytes_lifo(WpLayoutGlobals *wl, uint8_t *first, int count, uint buffer_space); /* Secondary record bytes are consumed FIFO from as_secondary_p; prepend moves the cursor down. * Pass free_space to allow prepend operations before the initial data. */ void wp_secondary_buffer_bind(WpLayoutGlobals *wl, uint8_t *buffer, int initial_count, int free_space); /* Core layout functions */ void wp_layout_break_line(WpLayoutGlobals *wl, WpLine *line); void wp_layout_apply_justification(WpLine *line, uint16_t target_width); void wp_layout_paginate(WpLayoutGlobals *wl); #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
main
Visibility
public
Your access
Read
Remote
None
File activity
View file history