Difference between revisions of "Win32k design guideline"

From ReactOS Wiki
Jump to: navigation, search
(Function naming)
m (Indentation)
Line 93: Line 93:
  
 
==Indentation==
 
==Indentation==
Should match the kernel's indentation preferably? At least Ged, me (Aleksey) and some other people on IRC supported that idea.
+
* Should match the kernel's indentation preferably? At least Ged, me (Aleksey) and some other people on IRC supported that idea.
 +
* I support the idea of using the kernel's indentation style (4 spaces) as well :-) - [[User:Colin Finck|Colin Finck]] 10:46, 14 June 2008 (UTC)
  
 
==Recursive function calls==
 
==Recursive function calls==

Revision as of 10:46, 14 June 2008

This is work in progress. Please add suggestions.


File layout

Suggestion for a new layout by Timo:

  • dib
    • as it is
  • driver
    • device.c
    • display.c
    • driver.c
    • loader.c
  • misc
    • copy.c
    • debug.c
    • engmisc.c
    • err.c
    • error.c
    • event.c
    • gdibatch.c
    • gdidbg.c
    • math.c
    • mem.c
    • mouse.c
    • perfcnt.c
    • print.c
    • sort.c
    • usrheap.c
  • ntuser
    • ???
  • objects
    • bitmap.c
    • brush.c
    • clipobj.c
    • dc.c
    • dcutil.c
    • dibobj.c
    • driverobj.c
    • floatobj.c
    • gdiobj.c
    • icm.c
    • lfont.c
    • metafile.c
    • palette.c
    • path.c
    • pen.c
    • rect.c
    • region.c
    • rfont.c
    • semaphor.c
    • stockobj.c
    • strobj.c
    • surface.c
    • window.c
    • xform.c
    • xlate.c
  • painting
    • alphablend.c (NtGdiAlphaBlend, NtGdiEngAlphaBlend, EngAlphaBlend, IntEngAlphaBlend)
    • arc.c (NtGdiArcInternal, NtGdiAngleArc, IntGdiArcInternal, IntArc)
    • bezier.c
    • bitblt.c (NtGdiBitBlt, NtGdiEngBitBlt, EngBitBlt, IntEngBitBlt, CallDibBitBlt)
    • copybits.c (EngCopyBits)
    • ellipse.c (NtGdiEllipse, NtGdiPie)
    • fill.c
    • floodfill.c
    • gradient.c
    • lineto.c
    • maskblt.c (NtGdiMaskBlt, IntEngMaskBlt, EngMaskBlt)
    • paint.c
    • patblt.c
    • pixel.c
    • polyblt.c
    • polyfill.c
    • polygon.c
    • polyline.c
    • pos.c
    • rectangle.c
    • stretchblt.c
    • textout.c (NtGdiExtTextOut, IntEngTextOut, EngTextOut)
    • transblt.c (NtGdiTransparentBlt, IntEngTransparentBlt, EngTransparentBlt)


Coding style

Function naming

Here's place to put something... Jim?

Finally here all those Int... Eng.. Nt* should be explained, since every time a new developer comes, he has questions.

Indentation

  • Should match the kernel's indentation preferably? At least Ged, me (Aleksey) and some other people on IRC supported that idea.
  • I support the idea of using the kernel's indentation style (4 spaces) as well :-) - Colin Finck 10:46, 14 June 2008 (UTC)

Recursive function calls

Have a look at the SetWindowPos implementation and start either laughing or whining...

other

just found this on the wiki, old, but ...: win32k.sys