forked from KolibriOS/kolibrios
calc: a bit more flexible GUI
git-svn-id: svn://kolibrios.org@6215 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
20
programs/gui_patterns.inc
Normal file
20
programs/gui_patterns.inc
Normal file
@@ -0,0 +1,20 @@
|
||||
macro DrawBar x, y, width, height, color
|
||||
{
|
||||
mcall 13, (x) shl 16 + (width), (y) shl 16 + (height), color
|
||||
}
|
||||
|
||||
macro DrawRectangle x, y, w, h, color
|
||||
{
|
||||
DrawBar x,y,w,1,color
|
||||
DrawBar x,y+h,w,1
|
||||
DrawBar x,y,1,h
|
||||
DrawBar x+w,y,1,h+1
|
||||
}
|
||||
|
||||
macro DrawRectangle3D x, y, w, h, color1, color2
|
||||
{
|
||||
DrawBar x,y,w,1,color1
|
||||
DrawBar x,y,1,h
|
||||
DrawBar x,y+h,w,1,color2
|
||||
DrawBar x+w,y,1,h+1
|
||||
}
|
Reference in New Issue
Block a user