note description: "This file has been generated by WrapC. Do not edit. Changes will be lost!" generator: "Eiffel Wrapper Generator" class SDL_VERTEX_STRUCT_API inherit MEMORY_STRUCTURE create make, make_by_pointer feature -- Measurement structure_size: INTEGER_32 -- Size to allocate (in bytes). do Result := sizeof_external end feature -- Member Access position: SDL_FPOINT_STRUCT_API -- Access member position require exists: exists do create Result.make_by_pointer (c_position (item)) ensure result_not_void: Result.item = c_position (item) end set_position (a_value: SDL_FPOINT_STRUCT_API) -- Set member position require a_value_not_void: a_value /= Void exists: exists do set_c_position (item, a_value.item) ensure position_set: position.item = a_value.item end color: SDL_COLOR_STRUCT_API -- Access member color require exists: exists do create Result.make_by_pointer (c_color (item)) ensure result_not_void: Result.item = c_color (item) end set_color (a_value: SDL_COLOR_STRUCT_API) -- Set member color require a_value_not_void: a_value /= Void exists: exists do set_c_color (item, a_value.item) ensure color_set: color.item = a_value.item end tex_coord: SDL_FPOINT_STRUCT_API -- Access member tex_coord require exists: exists do create Result.make_by_pointer (c_tex_coord (item)) ensure result_not_void: Result.item = c_tex_coord (item) end set_tex_coord (a_value: SDL_FPOINT_STRUCT_API) -- Set member tex_coord require a_value_not_void: a_value /= Void exists: exists do set_c_tex_coord (item, a_value.item) ensure tex_coord_set: tex_coord.item = a_value.item end feature {NONE} -- Implementation wrapper for struct struct SDL_Vertex sizeof_external: INTEGER_32 external "C inline use <SDL.h>" alias "sizeof(struct SDL_Vertex)" end c_position (an_item: POINTER): POINTER require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ &((struct SDL_Vertex*)$an_item)->position ]" end set_c_position (an_item: POINTER; a_value: POINTER) require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ ((struct SDL_Vertex*)$an_item)->position = *(SDL_FPoint*)$a_value ]" end c_color (an_item: POINTER): POINTER require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ &((struct SDL_Vertex*)$an_item)->color ]" end set_c_color (an_item: POINTER; a_value: POINTER) require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ ((struct SDL_Vertex*)$an_item)->color = *(SDL_Color*)$a_value ]" end c_tex_coord (an_item: POINTER): POINTER require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ &((struct SDL_Vertex*)$an_item)->tex_coord ]" end set_c_tex_coord (an_item: POINTER; a_value: POINTER) require an_item_not_null: an_item /= default_pointer external "C inline use <SDL.h>" alias "[ ((struct SDL_Vertex*)$an_item)->tex_coord = *(SDL_FPoint*)$a_value ]" end end -- class SDL_VERTEX_STRUCT_API
Generated by ISE EiffelStudio