asmodehn / sdlut

SDL utility toolkit - A C++ wrapper arount SDL 1.2
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Create a GUI utility #24

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

XorfacX: In order to create the GUI we need a windows creator with some generik items. ->The windows must have the parameters: x, y , w, h, label resizable dockable transparency movable ->Items that we must be available for all windows are: Text Zone (x,y,x,h,multi-line,editable,scrollable) Validate Button (x,y,w,h,label) Reset Button (x,y,w,h,label) Dropdown list (x,y,w,h, items list) Scrolling "cursor" (x,y,w,h, scrollable with keyboard, scroolable with mouse) Radio box (x,y,linked with other radio button) Check box (x,y) Tabs (x,y,w,h, tabs position(up,down,left,right), number of tabs, scrolling? ) -- each tab must get a label with auto resized of the tab to the label size and must be able to contain all other previous listed items. All theses items must return bool in order to know if they we're used (to validate!)

asmodehn commented 10 years ago

XorfacX: The following item must also be avialable: Text Label (x,y,w,h, multi-line, clickable, mouseover) Image Label (x,y,w,h, multi-line, clickable, mouseover) List (x,y,w,h, items list, scrollable, clickable, mouseover) Windows must eventually have "on top" priority settings

asmodehn commented 10 years ago

This is NOT a GUI library. This library aim at providing generic ways of handling multiple media format ( image, video, sound, etc. ) To do that we might need some basic components that might be used later for GUIs. But in AML We will only keep the basics, and the nice GUI , skins, themes, etc, will ultimately end up somewhere else... We still need to define what is needed in AML, and what will start the build of a GUI lib... Therefore until AML is quite stable the GUI will be implemented somewhere else. Na :p

asmodehn commented 10 years ago

XorfacX: [quote]This is NOT a GUI library.[/quote] I know^^ [quote]To do that we might need some basic components that might be used later for GUIs.[/quote] The basic component will be a template Window as described previously... It will be the only - but necessary! - component needed to be develop inside AML if we want to create the GUI in project0 with everyting needed by a GUI (theme and so on). [quote]Therefore until AML is quite stable the GUI will be implemented somewhere else.[/quote] Sure, as written above AML will only have a template window instantiable by Project0... and im sure it will be developped by the one in charge of AML ;p

asmodehn commented 10 years ago

After reflexion AML will implement a Widget, as an interface for any GUI library :p. That is just one class, and allthe GUI Classes implemented will have to use this Widget as a base class. Have a look at other GUI libs how they do that...

asmodehn commented 10 years ago

We'll use guichan for now & see what we component/widgets we really need in P0 for interface.