Chapter 3. libs3wd - The S3D Widget Library

Table of Contents

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

Using the s3d widget library

Getting started

Assuming you have already read about the lowlevel 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