Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

charlayout.c File Reference

Layout algorithm, optimized for character displays. More...

#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <common/xmalloc.h>
#include "charrenderer.h"

Include dependency graph for charlayout.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _widget_size_hint
 Size hints for the layout algorithm. More...

struct  cl_widget
struct  list_iter_pair
 An iterator and the list it belongs to. More...


Typedefs

typedef _widget_size_hint widget_size_hint
 Size hints for the layout algorithm.


Enumerations

enum  align_hor_t
 Horizontal widget alignment.

enum  align_ver_t
 Vertical widget alignment.

enum  widget_class_t { CROW, CCOL, CFIELD }
 Widget types, stored in cl_widget. More...


Detailed Description

Layout algorithm, optimized for character displays.

Definition in file charlayout.c.


Typedef Documentation

typedef struct _widget_size_hint widget_size_hint
 

Size hints for the layout algorithm.

The width and height correspond to a penalty, or ugliness. When allocating space to widgets, the layout algorithm attempts to keep the total penalty at a minimum. Or, if it doesn't fit, even with the maximum penalty, the layout is split into smaller parts and the procedure starts all over again. In this case, one layout takes up several screen cycles on the display.


Enumeration Type Documentation

enum widget_class_t
 

Widget types, stored in cl_widget.

Enumeration values:
CROW  Row layout widget.
CCOL  Column layout widget.
CFIELD  Literal text field.

Definition at line 111 of file charlayout.c.


Generated on Sun Feb 16 23:39:54 2003 for FreeLCD by doxygen1.2.18