VisualOS: Programer Reference | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
|
|
Creates a new GdkGC (Graphic Context) with the foreground color set to the color descrived by red, green and blue components.
red : | red component of the color. |
green : | green component of the color. |
blue : | blue component of the color. |
Returns : | the new Graphic Context. |
void resize_gdk_pixmap ( |
Will resize *pixmap and, if enlarging, will fill the extra area with the foreground color of fill.
If the size realy changes, it will copy the old pixmap to a new one, destroing it and setting *pixmap to the new pixmap.
pixmap : | pixmap to resize. |
new_width : | the new width of the pixmap. |
new_height : | the new height of the pixmap. |
fill : | a GdkGC with the foreground color set. |
void enlarge_gdk_pixmap ( |
Same as resize_gdk_pixmap but will only do the resizing if the requested size is bigger then the current size.
This is usefull for eficiency. See src/MEM/drawings/virtual.c:draw_page_tables for an example.
pixmap : | pixmap to resize. |
new_width : | the new width of the pixmap. |
new_height : | the new height of the pixmap. |
fill : | a GdkGC with the foreground color set. |
void draw_gdk_text_centered ( |
Draw text of length text_length centered in the area defined by x, y, width and height of drawable using font font and the foreground color of gc.
drawable : | a GdkDrawable. |
font : | any font. |
gc : | a GdkGC with the foreground color set. |
x : | x coordinate of the area. |
y : | y coordinate of the area. |
width : | width of the area. |
height : | height of the area. |
text : | text to draw. |
text_length : | length of text. |