Chapter 3. libs3dw - The S3D Widget Library

Table of Contents

Using the s3d widget library
Getting started
function reference
s3dw_button_new
s3dw_label_new
s3dw_input_new
s3dw_textbox_new
s3dw_input_gettext
s3dw_input_change_text
s3dw_label_change_text
s3dw_surface_new
s3dw_getroot
s3dw_moveit
s3dw_delete
s3dw_show
s3dw_focus
s3dw_textbox_scrollup
s3dw_textbox_scrolldown
s3dw_textbox_scrollleft
s3dw_textbox_scrollright
s3dw_textbox_scrollto
s3dw_textbox_change_text
s3dw_handle_click
s3dw_handle_key
s3dw_object_info
s3dw_ani_mate
Data types
struct _s3dw_style
struct _s3dw_widget
struct _s3dw_button
struct _s3dw_label
struct _s3dw_scrollbar
struct _s3dw_textbox
struct _s3dw_input
struct _s3dw_surface
typedef s3dw_widget
typedef s3dw_button
typedef s3dw_label
typedef s3dw_textbox
typedef s3dw_scrollbar
typedef s3dw_input
typedef s3dw_surface
typedef s3dw_style
typedef s3dw_callback

Using the s3d widget library

Getting started

Assuming you have already read about the low level libs3d s3d api, the s3d widget library is build on top of it and should be (hopefully) easy to use as any other widget library. Just include

	  #include <s3dw.h>
	 

and link with -ls3dw -ls3d, and everything should be fine. :)

	 bash$  gcc program.c -ls3dw -ls3d -o program