User Tools

Site Tools


c:graphics.h:getmaxwidth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

c:graphics.h:getmaxwidth [2015/05/06 23:06] (current)
Line 1: Line 1:
 +===== getmaxwidth =====
 +
 +
 +====Syntax of getmaxwidth ==== 
 + <code c>
 +#include <graphics.h>
 +int getmaxwidth(void);
 +  </code>
 +
 +
 +==== Description of getmaxwidth ==== 
 +<code c>
 +The getmaxwidth function is available in the winbgim implementation of
 +BGI graphics. The function returns the maximum width that will fit on the
 +screen when creating a window with initwindow. This is one of the few BGI
 +functions that may be called before calling initwindow.
 +</code>
 +
 +
 +==== Example of getmaxwidth ====
 +<code c>
 +/* getmaxwidth and getmaxheight example */
 +#include <graphics.h>
 +
 +int main(void)
 +{
 +   /* Make a window, as big as possible */
 +   initwindow(getmaxwidth( ), getmaxheight( ));
 +
 +   /* clean up */
 +   getch();
 +   closegraph();
 +   return 0;
 +}
 +</code>
 +
 +
 +==== See also ====
 +[[getmaxx]]
 +[[getwindowwidth]]
 +[[getmaxheight]]
 +[[initwindow]]
 +
 +
 +===== output of getmaxwidth example ===== 
 +
 +    no output of example at the moment
 +    do not hesitate and add it...  
 +
 +
  
advertising
c/graphics.h/getmaxwidth.txt · Last modified: 2015/05/06 23:06 (external edit)

Impressum Datenschutz