WinDom: comp_create.c File Reference

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

# comp_create.c File Reference

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <limits.h>`
`#include <assert.h>`
`#include "globals.h"`

## Functions
COMPONENT * | mt_CompCreate (APPvar *app, short type, long size, short flex)
| Create a COMPONENT.
int | mt_CompDelete (APPvar *app, COMPONENT *p)
| Delete a COMPONENT created by mt_CompCreate().
int | mt_CompSet (APPvar *app, COMPONENT *c, short mode, long par1, long par2, long par3, long par4)
int | mt_CompSetPtr (APPvar *app, COMPONENT *c, short mode, void *par1, void *par2)
int | mt_CompSliderAttach (APPvar *app, COMPONENT *p, short type)
| Define a COMPONENT to become slidable.
void | mt_CompAttach (APPvar *app, COMPONENT *p, COMPONENT *c)
| Attach a COMPONENT as children of an another COMPONENT.
int | mt_CompGetLGrect (APPvar *app, COMPONENT *c, short type, LGRECT *rect)
void * | mt_CompGetPtr (APPvar *app, COMPONENT *c, short type)
COMPONENT * | mt_CompFind (APPvar *app, COMPONENT *p, short mx, short my)
void | comp_dfs (COMPONENT *p, long *buff, APPvar *app)
| COMPONENT handlers.
COMPONENT * | win_comp_get (APPvar *app, WINDOW *win)
void | win_comp_attach (APPvar *app, WINDOW *win, COMPONENT *c)

## Function Documentation

void comp_dfs | ( | COMPONENT * | p,
|  | long * | buff,
|  | APPvar * | app
| ) |

| COMPONENT handlers.

void win_comp_attach | ( | APPvar * | app,
|  | WINDOW * | win,
|  | COMPONENT * | c
| ) |

COMPONENT* win_comp_get | ( | APPvar * | app,
|  | WINDOW * | win
| ) |