dlg_fontpicker.c File Reference

Main Page Modules Alphabetical List Compound List File List Compound Members File Members

# /home/micah/picogui/pg1/client/c/src/dlg_fontpicker.c File Reference

`#include "clientlib.h"`

## Compounds
struct | fontpicker_node
## Defines
#define | F_STYLEBOX 0x80000000
#define | F_NAME 0x40000000
#define | F_SIZE 0x20000000
#define | F_MASK 0x00FFFFFF
#define | SAMPLETEXT "ABC abc"
## Functions
int | fontpicker_compare (struct fontpicker_node *a, struct fontpicker_node *b)
void | fontpicker_style (pghandle str, u32 style, s16 rship, pghandle parent)
pghandle | pgFontPicker (const char *title)
| Allow the user to select any font.

## Define Documentation

#define F_MASK 0x00FFFFFF

#define F_NAME 0x40000000

#define F_SIZE 0x20000000

#define F_STYLEBOX 0x80000000

#define SAMPLETEXT "ABC abc"

## Function Documentation

int fontpicker_compare | ( | struct fontpicker_node * | a,
|  | struct fontpicker_node * | b
| ) |

void fontpicker_style | ( | pghandle | str,
|  | u32 | style,
|  | s16 | rship,
|  | pghandle | parent
| ) |

pghandle pgFontPicker | ( | const char * | title | ) |

  | Allow the user to select any font. Parameters:
  title | The title string displayed across the dialog's top
Returns: A font handle describing the selected font upon clicking "Ok" or zero if the dialog was cancelled. It is the app's responsibility to use pgDelete or contexts to delete this handle. See also: pgNewFont, pgDialogBox