Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_win32.Structures Class Reference

List of all members.

Public Member Functions

def test_struct_by_value

Detailed Description

Definition at line 70 of file test_win32.py.


Member Function Documentation

Definition at line 72 of file test_win32.py.

00072 
00073     def test_struct_by_value(self):
00074         class POINT(Structure):
00075             _fields_ = [("x", c_long),
00076                         ("y", c_long)]
00077 
00078         class RECT(Structure):
00079             _fields_ = [("left", c_long),
00080                         ("top", c_long),
00081                         ("right", c_long),
00082                         ("bottom", c_long)]
00083 
00084         dll = CDLL(_ctypes_test.__file__)
00085 
00086         pt = POINT(10, 10)
00087         rect = RECT(0, 0, 20, 20)
00088         self.assertEqual(1, dll.PointInRect(byref(rect), pt))

Here is the call graph for this function:


The documentation for this class was generated from the following file: