The "listw" Package

These routines are meant to provide a simple mechanism to display a list of strings. NOTE: THIS PACKAGE IS WORK IN PROGRESS. THE INTERFACE MAY CHANGE IN THE NEXT RELEASE, POSSIBLY WITHOUT NOTICE.

Library: karmagraphics
Link With: -lkarmagraphics

Functions

listw_createCreate a list widget.
listw_bindBind a list widget to a pixel canvas.
listw_destroyDestroy a list widget
listw_register_position_event_funcRegister position event callback.
listw_get_attributesGet list widget attributes.
listw_set_attributesSet list widget attributes.
listw_register_att_notify_funcRegister an attribute change function.

Prototype Functions

listw_PROTO_position_funcPosition event callback.
listw_PROTO_att_notify_funcRegisters a change in the attributes of a list widget.


Functions


EXPERIMENTAL FUNCTION: subject to change without notice

KListWidget listw_create ()

Create a list widget.

Parameters:

Returns: A list widget object on success, else NULL.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

void listw_bind (KListWidget list, KPixCanvas canvas)

Bind a list widget to a pixel canvas.

Parameters:

Returns: Nothing. On failure, the process aborts.
Multithreading Level: Unsafe
Note:


EXPERIMENTAL FUNCTION: subject to change without notice

void listw_destroy (KListWidget list)

Destroy a list widget

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

KCallbackFunc listw_register_position_event_func (KListWidget list, flag (*func) (), void *f_info)

This routine will register a position event function for a list widget. The position event function will be called whenever a position event on the list widget has not been consumed. Many position event functions may be registered per list widget. The first function registered is the first function called upon a position event.

Parameters:

Returns: A KCallbackFunc object.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

void listw_get_attributes (KListWidget list, ...)

Get list widget attributes.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

flag listw_set_attributes (KListWidget list, flag refresh_if_needed, ...)

Set list widget attributes.

Parameters:

Returns: TRUE on success, else FALSE.
Multithreading Level: Unsafe


EXPERIMENTAL FUNCTION: subject to change without notice

KCallbackFunc listw_register_att_notify_func (KListWidget list, void (*func) (), void *info)

This routine will register an attribute notify function for a list widget. The attribute notify function will be called whenever the list widget attributes are changed (see listw_set_attributes). Many attribute notify functions may be registered per list widget. The first function registered is the first function called upon attribute changes.

Parameters:

Returns: A KCallbackFunc object.
Multithreading Level: Unsafe


Prototype Functions


flag listw_PROTO_position_func (KListWidget list, unsigned int index, unsigned int event_code, void *e_info, void **f_info)

This routine is a position event consumer for a list widget.

Parameters:

Returns: TRUE if the event was consumed, else FALSE indicating that the event is still to be processed.
Multithreading Level: Unsafe


void listw_PROTO_att_notify_func (KListWidget list, void **info)

Registers a change in the attributes of a list widget.

Parameters:

Returns: Nothing.
Multithreading Level: Unsafe


Back to Karma Home Page
Contact: Richard Gooch
Web Development: Ariel Internet Services