GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
pngdriver/Set_window.c
Go to the documentation of this file.
1
2
/****************************************************************************
3
*
4
* MODULE: PNG driver
5
* AUTHOR(S): Glynn Clements <glynn@gclements.plus.com>
6
* COPYRIGHT: (C) 2007 Glynn Clements
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
*****************************************************************************/
19
20
#include "
pngdriver.h
"
21
22
void
PNG_Set_window
(
int
t,
int
b
,
int
l
,
int
r
)
23
{
24
clip_top
= t >
screen_top
? t :
screen_top
;
25
clip_bot
= b <
screen_bottom
? b :
screen_bottom
;
26
clip_left
= l >
screen_left
? l :
screen_left
;
27
clip_rite
= r <
screen_right
? r :
screen_right
;
28
}
l
int l
Definition:
dataquad.c:292
b
float b
Definition:
named_colr.c:8
pngdriver.h
r
float r
Definition:
named_colr.c:8
screen_top
int screen_top
Definition:
driver/init.c:35
clip_rite
int clip_rite
Definition:
pngdriver/Graph_set.c:33
clip_bot
int clip_bot
Definition:
pngdriver/Graph_set.c:33
PNG_Set_window
void PNG_Set_window(int, int, int, int)
Definition:
pngdriver/Set_window.c:22
screen_left
int screen_left
Definition:
driver/init.c:32
clip_top
int clip_top
Definition:
pngdriver/Graph_set.c:33
screen_right
int screen_right
Definition:
driver/init.c:33
clip_left
int clip_left
Definition:
pngdriver/Graph_set.c:33
screen_bottom
int screen_bottom
Definition:
driver/init.c:34
lib
pngdriver
Set_window.c
Generated on Sat Jan 2 2016 01:46:49 for GRASS Programmer's Manual by
1.8.5