note description: "Contains information about a window's maximized size and % %position and its minimum and maximum tracking size." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class WEL_MIN_MAX_INFO inherit WEL_STRUCTURE create make, make_by_pointer feature -- Access max_size: WEL_POINT -- Maximized width and height of the window require exists: exists do create Result.make_by_pointer (cwel_minmaxinfo_get_maxsize (item)) ensure result_not_void: Result /= Void end max_position: WEL_POINT -- Position of the left side of the maximized window -- and the position of the top of the maximized window require exists: exists do create Result.make_by_pointer (cwel_minmaxinfo_get_maxposition (item)) ensure result_not_void: Result /= Void end min_track_size: WEL_POINT -- Minimum tracking width and the minimum tracking -- height of the window require exists: exists do create Result.make_by_pointer (cwel_minmaxinfo_get_mintracksize (item)) ensure result_not_void: Result /= Void end max_track_size: WEL_POINT -- Maximum tracking width and the minimum tracking -- height of the window require exists: exists do create Result.make_by_pointer (cwel_minmaxinfo_get_maxtracksize (item)) ensure result_not_void: Result /= Void end feature -- Element change set_max_size (point: like max_size) -- Set `max_size' with `point'. require exists: exists point_not_void: point /= Void do cwel_minmaxinfo_set_maxsize (item, point.item) ensure point_set: max_size.is_equal (point) end set_max_position (point: like max_position) -- Set `max_position' with `point'. require exists: exists point_not_void: point /= Void do cwel_minmaxinfo_set_maxposition (item, point.item) ensure point_set: max_position.is_equal (point) end set_min_track_size (point: like min_track_size) -- Set `min_track_size' with `point'. require exists: exists point_not_void: point /= Void do cwel_minmaxinfo_set_mintracksize (item, point.item) ensure point_set: min_track_size.is_equal (point) end set_max_track_size (point: like max_track_size) -- Set `max_track_size' with `point'. require exists: exists point_not_void: point /= Void do cwel_minmaxinfo_set_maxtracksize (item, point.item) ensure point_set: max_track_size.is_equal (point) end feature -- Measurement structure_size: INTEGER -- Size to allocate (in bytes) once Result := c_size_of_minmaxinfo end feature {NONE} -- Externals c_size_of_minmaxinfo: INTEGER external "C [macro ]" alias "sizeof (MINMAXINFO)" end cwel_minmaxinfo_set_maxsize (ptr: POINTER; value: POINTER) external "C [macro ]" end cwel_minmaxinfo_set_maxposition (ptr: POINTER; value: POINTER) external "C [macro ]" end cwel_minmaxinfo_set_mintracksize (ptr: POINTER; value: POINTER) external "C [macro ]" end cwel_minmaxinfo_set_maxtracksize (ptr: POINTER; value: POINTER) external "C [macro ]" end cwel_minmaxinfo_get_maxsize (ptr: POINTER): POINTER external "C [macro ] (LPMINMAXINFO): EIF_POINTER" end cwel_minmaxinfo_get_maxposition (ptr: POINTER): POINTER external "C [macro ] (LPMINMAXINFO): EIF_POINTER" end cwel_minmaxinfo_get_mintracksize (ptr: POINTER): POINTER external "C [macro ] (LPMINMAXINFO): EIF_POINTER" end cwel_minmaxinfo_get_maxtracksize (ptr: POINTER): POINTER external "C [macro ] (LPMINMAXINFO): EIF_POINTER" end note copyright: "Copyright (c) 1984-2015, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end