This shows you the differences between two versions of the page.
c:graphics.h:getwindowheight [2015/05/06 23:06] |
c:graphics.h:getwindowheight [2024/02/16 01:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== getwindowheight ===== | ||
+ | |||
+ | |||
+ | ====Syntax of getwindowheight ==== | ||
+ | <code c> | ||
+ | #include <graphics.h> | ||
+ | int getwindowheight(void); | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== Description of getwindowheight ==== | ||
+ | <code c> | ||
+ | The getwindowheight function is available in the winbgim implementation | ||
+ | of BGI graphics. The function returns the total height of the window | ||
+ | including nondrawable border areas. | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== Example of getwindowheight ==== | ||
+ | <code c> | ||
+ | /* getwindowheight example */ | ||
+ | #include <graphics.h> | ||
+ | |||
+ | int main(void) | ||
+ | { | ||
+ | int w_above, w_below; | ||
+ | int height; // Total height of w_above; | ||
+ | |||
+ | // Make two windows, one on top of the other */ | ||
+ | w_above = initwindow(300, 200); | ||
+ | height = getwindowheight( ); | ||
+ | w_below = initwindow(300, 200, 0, height); | ||
+ | |||
+ | /* clean up */ | ||
+ | getch(); | ||
+ | closegraph(); | ||
+ | return 0; | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ==== See also ==== | ||
+ | [[getmaxy]] | ||
+ | [[getwindowwidth]] | ||
+ | [[gety]] | ||
+ | |||
+ | |||
+ | ===== output of getwindowheight example ===== | ||
+ | |||
+ | no output of example at the moment | ||
+ | do not hesitate and add it... | ||
+ | |||
+ | |||