/src/wrappers/gdk/library/gdk_span.e
http://github.com/tybor/Liberty · Specman e · 68 lines · 50 code · 15 blank · 3 comment · 2 complexity · c1c76a281079c6e630628a6971128bc7 MD5 · raw file
- indexing
- description: "A GdkSpan represents a horizontal line of pixels starting at the pixel with coordinates x, y and ending before x + width, y."
- copyright: "[
- Copyright (C) 2006 eiffel-libraries team, GTK+ team
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public License
- as published by the Free Software Foundation; either version 2.1 of
- the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301 USA
- ]"
- class GDK_SPAN
- inherit G_STRUCT
- creation from_external_pointer
- feature -- Getters
- x: INTEGER is
- -- x coordinate of the first pixel.
- do
- Result := get_x (handle)
- end
- y: INTEGER is
- -- y coordinate of the first pixel.
- do
- Result := get_y (handle)
- end
- width: INTEGER is
- -- number of pixels in the span.
- do
- Result := get_width (handle)
- end
- feature -- TODO: Setters (if needed)
-
- feature -- size
- struct_size: INTEGER is
- external "C inline use <gtk/gtk.h>"
- alias "sizeof(GdkSpan)"
- end
- feature {} -- Struct accesing
- get_x (span: POINTER): INTEGER is
- external "C struct GdkSpan get x use <gdk/gdk.h>"
- end
- get_y (span: POINTER): INTEGER is
- external "C struct GdkSpan get y use <gdk/gdk.h>"
- end
-
- get_width (span: POINTER): INTEGER is
- external "C struct GdkSpan get width use <gdk/gdk.h>"
- end
- end