/src/wrappers/gdk/library/gdk_trapezoid.e
Specman e | 90 lines | 70 code | 11 blank | 9 comment | 2 complexity | e6f3c9707f54bf9dc95f06f4bb16c70b MD5 | raw file
1indexing 2 description: "GdkSegment." 3 copyright: "[ 4 Copyright (C) 2006 eiffel-libraries team, GTK+ team 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public License 8 as published by the Free Software Foundation; either version 2.1 of 9 the License, or (at your option) any later version. 10 11 This library is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Lesser General Public License for more details. 15 16 You should have received a copy of the GNU Lesser General Public 17 License along with this library; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 02110-1301 USA 20 ]" 21 22 -- Specifies a trapezpoid for use by the gdk_draw_trapezoids(). The 23 -- trapezoids used here have parallel, horizontal top and bottom 24 -- edges. 25 26class GDK_TRAPEZOID 27 28inherit G_STRUCT 29 30creation from_external_pointer 31 32feature 33 34 y1: REAL is 35 -- the y coordinate of the start point. 36 do 37 Result := get_y1 (handle) 38 end 39 x11: REAL is 40 -- the x coordinate of the top left corner 41 do 42 Result := get_x11 (handle) 43 end 44 x21: REAL is 45 -- the x coordinate of the top right corner 46 do 47 Result := get_x21 (handle) 48 end 49 y2: REAL is 50 -- the y coordinate of the end point. 51 do 52 Result := get_y2 (handle) 53 end 54 x12: REAL is 55 -- the x coordinate of the bottom left corner 56 do 57 Result := get_x12 (handle) 58 end 59 x22: REAL is 60 -- the x coordinate of the bottom right corner 61 do 62 Result := get_x22 (handle) 63 end 64 65feature -- size 66 struct_size: INTEGER is 67 external "C inline use <gtk/gtk.h>" 68 alias "sizeof(GdkSegment)" 69 end 70 71feature {} -- External calls 72 get_x11 (segment: POINTER): REAL is 73 external "C struct GdkTrapezoid get x11 use <gdk/gdk.h>" 74 end 75 get_x21 (segment: POINTER): REAL is 76 external "C struct GdkTrapezoid get x21 use <gdk/gdk.h>" 77 end 78 get_y1 (segment: POINTER): REAL is 79 external "C struct GdkTrapezoid get y1 use <gdk/gdk.h>" 80 end 81 get_x12 (segment: POINTER): REAL is 82 external "C struct GdkTrapezoid get x12 use <gdk/gdk.h>" 83 end 84 get_x22 (segment: POINTER): REAL is 85 external "C struct GdkTrapezoid get x22 use <gdk/gdk.h>" 86 end 87 get_y2 (segment: POINTER): REAL is 88 external "C struct GdkTrapezoid get y2 use <gdk/gdk.h>" 89 end 90end