User Tools

Site Tools


c:graphics.h:getwindowwidth

Differences

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

Link to this comparison view

c:graphics.h:getwindowwidth [2015/05/06 23:06]
c:graphics.h:getwindowwidth [2024/02/16 01:05] (current)
Line 1: Line 1:
 +===== getwindowwidth =====
 +
 +
 +====Syntax of getwindowwidth ==== 
 + <code c>
 +#include <graphics.h>
 +int getwindowwidth(void);
 +  </code>
 +
 +
 +==== Description of getwindowwidth ==== 
 +<code c>
 +The getwindowwidth function is available in the winbgim implementation of
 +BGI graphics. The function returns the total width of the window
 +including nondrawable border areas.
 +</code>
 +
 +
 +==== Example of getwindowwidth ====
 +<code c>
 +/* getwindowwidth example */
 +#include <graphics.h>
 +
 +int main(void)
 +{
 +   int w_left, w_right;
 +   int width; // Total width of w_left;
 +
 +   // Make two windows, side by side */
 +   w_left = initwindow(300, 200);
 +   width = getwindowwidth( );
 +   w_right = initwindow(300, 200, width, 0);
 +
 +   /* clean up */
 +   getch();
 +   closegraph();
 +   return 0;
 +}
 +</code>
 +
 +
 +==== See also ====
 +[[getmaxx]]
 +[[getwindowheight]]
 +[[getx]]
 +
 +
 +===== output of getwindowwidth example ===== 
 +
 +    no output of example at the moment
 +    do not hesitate and add it...  
 +
 +
  

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War

Impressum Datenschutz