Editing Liqbase library overview
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | + | =liqbase :: the core library= | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | The formatting here is rubbish and I dunno how to fix it. | ||
This is preliminary outline documentation for my library and toolkit. | This is preliminary outline documentation for my library and toolkit. | ||
- | it will be expanded upon over the coming days | + | it will be expanded upon over the coming days |
- | + | '''Note, this describes a library which is not currently available, however its precursor [[liqbase]] is available.''' | |
- | |||
- | + | liqbase started out as a collection of applications which show off the nokia internet tablet as a fast versatile handheld computer. | |
+ | It was the first application I have written in C in many years was and used by myself to learn about the various libraries and interactions on the nokia internet tablets. | ||
+ | A proof of concept so to speak. | ||
- | + | The library is aimed to correct the mistakes I made with the monolithic application and to provide a framework to continue building my applications. | |
- | + | ||
- | + | ||
- | + | It has been designed to make it as easy as possible to produce high performance touch sensitive applications. | |
+ | The applications are resolution independent and capable of operating at high speed with low cpu overheads. | ||
It contains a small set of classes which are usable for creating rich touchable GUI components. | It contains a small set of classes which are usable for creating rich touchable GUI components. | ||
It has been written in C for both speed and expandability. | It has been written in C for both speed and expandability. | ||
- | At present it is very specifically focused upon the Nokia internet tablet computers | + | At present it is very specifically focused upon the Nokia internet tablet computers running linux. |
- | + | it makes use of the following libraries: | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
*X11 window manager for the events. | *X11 window manager for the events. | ||
Line 45: | Line 30: | ||
*xsp for the pressure sensitive mouse input | *xsp for the pressure sensitive mouse input | ||
*ttflib ttf font handling | *ttflib ttf font handling | ||
- | *libpng | + | *libpng |
*libjpeg | *libjpeg | ||
- | |||
- | |||
- | + | graphics are rendered using the XV library using the YUV video format. | |
+ | This is a lower bandwidth video mode which has full resolution Luma, but half resolution Chroma. | ||
- | It is being constructed around a | + | |
+ | |||
+ | It is being constructed around a set of interrelated classes | ||
*liqapp core system functions | *liqapp core system functions | ||
Line 67: | Line 53: | ||
*liqgraph a special resolution independent graphics interface which a cell uses | *liqgraph a special resolution independent graphics interface which a cell uses | ||
- | With these classes I will be able to construct the applications started inside liqbase | + | With these classes I will be able to construct the applications started inside liqbase |
- | |||
- | == | + | ==class structure== |
- | + | ||
- | < | + | Most classes created in liqbase follow the same object pattern and contain the following default standard methods: |
+ | <PRE> | ||
class *class_new() | class *class_new() | ||
{ | { | ||
Line 96: | Line 82: | ||
// call _release on all members of this class | // call _release on all members of this class | ||
} | } | ||
- | </ | + | </PRE> |
+ | The reference counting is held as a private member inside the instance itself. | ||
- | |||
- | |||
- | |||
There is no concept of inheritance at this level, however once you have instances of cell classes (described in detail below) they follow generic inheritance rules and can expand. | There is no concept of inheritance at this level, however once you have instances of cell classes (described in detail below) they follow generic inheritance rules and can expand. | ||
- | |||
- | |||
- | + | ||
+ | ==Example Cell construction== | ||
+ | |||
+ | A usual cycle goes like this | ||
+ | |||
+ | <PRE> | ||
+ | |||
void hello_world() | void hello_world() | ||
{ | { | ||
liqcell * myform = liqcell_newwidget(“myform”,”form”, 340, 60); | liqcell * myform = liqcell_newwidget(“myform”,”form”, 340, 60); | ||
- | liqcell *l1 | + | liqcell *l1 = liqcell_newwidget(“hello”,”label”, 60, 60); |
liqcell *l2 = liqcell_newwidget(“world”,” label”, 60, 60); | liqcell *l2 = liqcell_newwidget(“world”,” label”, 60, 60); | ||
Line 127: | Line 115: | ||
liqcell_release(myform); | liqcell_release(myform); | ||
} | } | ||
- | </ | + | </PRE> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Learn more about Contributing to the wiki.