Newt

 view release on metacpan or  search on metacpan

Newt.xs  view on Meta::CPAN

newtDelay(usecs)
	int	usecs

int
newtOpenWindow(left, top, width, height, title)
	int	left
	int	top
	int	width
	int	height
	 char *	title

int
newtCenteredWindow(width, height, title)
	int	width
	int	height
	 char *	title

void
newtPopWindow()

void
newtRefresh()

void
newtSuspend()

void
newtSetSuspendCallback(cv)
	SV *cv;
	CODE:
		perl_suspend_cb = newSVsv(cv);
		newtSetSuspendCallback(suspend_cb);

void
newtResume()

void
newtPushHelpLine(text = NULL)
	 char *	text

void
newtRedrawHelpLine()

void
newtPopHelpLine()

void
newtDrawRootText(col, row, text)
	int	col
	int	row
	 char *	text

void
newtBell()

void
newtGetScreenSize()
	PREINIT:
		int cols;
		int rows;
	PPCODE:
		newtGetScreenSize( &cols, &rows );
		XPUSHs(sv_2mortal(newSViv(cols)));
		XPUSHs(sv_2mortal(newSViv(rows)));

void
newtReflowText(width, flexDown, flexUp, text)
	int	width
	int	flexDown
	int	flexUp
	char *	text
	PREINIT:
		char *result;
		int actualWidth;
		int actualHeight;
	PPCODE:
		result = newtReflowText(text, width, flexDown, flexUp, &actualWidth, &actualHeight);
		XPUSHs(sv_2mortal(newSVpv(result, PL_na)));
		XPUSHs(sv_2mortal(newSViv(actualWidth)));
		XPUSHs(sv_2mortal(newSViv(actualHeight)));

MODULE = Newt		PACKAGE = Newt

newtComponent
newtCompactButton(left, top, text)
	int	left
	int	top
	 char *	text

newtComponent
newtButton(left, top, text)
	int	left
	int	top
	 char *	text

newtComponent
newtCheckbox(left, top, text, defValue, seq, result = NULL)
	int	left
	int	top
	 char *	text
	char	defValue
	 char *	seq
	char *	result

char
newtCheckboxGetValue(co)
	newtComponent	co

void
newtCheckboxSetValue(co, value)
	newtComponent	co
	char	value

newtComponent
newtRadiobutton(left, top, text, isDefault, prevButton = NULL)
	int	left
	int	top
	 char *	text
	int	isDefault
	newtComponent	prevButton

newtComponent
newtRadioGetCurrent(setMember)
	newtComponent	setMember

void
newtGetScreenSize(cols, rows)
	int *	cols
	int *	rows

newtComponent
newtLabel(left, top, text)
	int	left
	int	top
	 char *	text

Newt.xs  view on Meta::CPAN


void
newtListboxSetCurrentByKey(co, key)
	newtComponent	co
	char *	key

void
newtListboxSetEntry(co, num, text)
	newtComponent	co
	int	num
	char *	text

void
newtListboxSetWidth(co, width)
	newtComponent	co
	int	width

void
newtListboxSetData(co, num, data)
	newtComponent	co
	int	num
	void *	data

int
newtListboxAppendEntry(co, text, data)
	newtComponent	co
	char *	text
	SV *	data
	
int
newtListboxInsertEntry(co, text, data, key)
	newtComponent	co
	char *	text
	SV *	data
	SV *	key

int
newtListboxDeleteEntry(co, data)
	newtComponent	co
	SV *	data


void
newtListboxClear(co)
	newtComponent	co

void
newtListboxGetEntry(co, num, text, data)
	newtComponent	co
	int	num
	char **	text
	void **	data

void
newtListboxGetSelection(co)
	newtComponent	co
	PREINIT:
		int i;
		int numitems = 0;
		void **array;
	PPCODE:
		array = newtListboxGetSelection(co, &numitems);
		for(i = 0; i < numitems; i++) {
			XPUSHs(sv_2mortal(newSVsv((SV *)array[i])));
		}

void
newtListboxClearSelection(co)
	newtComponent	co

void
newtListboxSelectItem(co, key, sense)
	newtComponent	co
	void *	key
	int	sense

newtComponent
newtTextboxReflowed(left, top, text, width, flexDown, flexUp, flags)
	int	left
	int	top
	char *	text
	int	width
	int	flexDown
	int	flexUp
	int	flags

newtComponent
newtTextbox(left, top, width, height, flags)
	int	left
	int	top
	int	width
	int	height
	int	flags

void
newtTextboxSetText(co, text)
	newtComponent	co
	 char *	text

void
newtTextboxSetHeight(co, height)
	newtComponent	co
	int	height

int
newtTextboxGetNumLines(co)
	newtComponent	co

newtComponent
newtForm(vertBar = NULL, help = NULL, flags = 0)
	newtComponent	vertBar
	 char *	help
	int	flags

void
newtFormWatchFd(form, fd, fdFlags)
	newtComponent	form
	int	fd
	int	fdFlags

void
newtFormSetSize(co)
	newtComponent	co

newtComponent
newtFormGetCurrent(co)
	newtComponent	co

void
newtFormSetBackground(co, color)
	newtComponent	co
	int	color

void
newtFormSetCurrent(co, subco)
	newtComponent	co
	newtComponent	subco

void
newtFormAddComponent(form, co)
	newtComponent	form
	newtComponent	co

void
newtFormAddComponents(form, ...)
	newtComponent	form

void
newtFormSetHeight(co, height)
	newtComponent	co
	int	height

void
newtFormSetWidth(co, width)
	newtComponent	co
	int	width

newtComponent
newtRunForm(form)
	newtComponent	form
	CODE:
		RETVAL = newtRunForm(form);
	OUTPUT:
		RETVAL

void
newtFormRun(co)
	newtComponent	co
	PREINIT:
		struct newtExitStruct es;
		SV sv;
	PPCODE:
		newtFormRun(co, &es);
		XPUSHs(sv_2mortal(newSViv(es.reason)));
		if(es.reason == NEWT_EXIT_COMPONENT) {
			XPUSHs(sv_2mortal(sv_setref_pv(newSViv(0), 
						       "newtComponent",
						       (void*)es.u.co)));
		} else {
			XPUSHs(sv_2mortal(newSViv(es.u.key)));
		}
	
void
newtDrawForm(form)
	newtComponent	form

void
newtFormAddHotKey(co, key)
	newtComponent	co
	int	key

newtComponent
newtEntry(left, top, initialValue, width, flags)
	int	left
	int	top
	char *	initialValue
	int	width
	int	flags
	CODE:
		RETVAL = newtEntry(left, top, initialValue, width, NULL, flags);
	OUTPUT:
		RETVAL

void
newtEntrySet(co, value, cursorAtEnd)
	newtComponent	co
	char *	value
	int	cursorAtEnd

void
newtEntrySetFilter(co, cv)
	newtComponent	co
	SV *cv
	CODE:
		newtEntrySetFilter(co, entryfilter_cb, (void *)newSVsv(cv));

char *
newtEntryGetValue(co)
	newtComponent	co

newtComponent
newtScale(left, top, width, fullValue)
	int	left
	int	top
	int	width
	long	fullValue

void
newtScaleSet(co, amount)
	newtComponent	co
	long	amount



( run in 1.528 second using v1.01-cache-2.11-cpan-5511b514fd6 )