public bool findSubItemWith(uint column, String name, out uint index) { UIntPtr result = MultiListBox_findSubItemWith(widget, new UIntPtr(column), name); index = result.horriblyUnsafeToUInt32(); return(UIntPtr.Size == 4 ? result.horriblyUnsafeToUInt32() != UInt32.MaxValue : result.ToUInt64() != UInt64.MaxValue); }
public bool hasItemSelected() { UIntPtr result = MultiListBox_getIndexSelected(widget); //Check for max values depending on current runtime (32 or 64 bit). return(UIntPtr.Size == 4 ? result.horriblyUnsafeToUInt32() != UInt32.MaxValue : result.ToUInt64() != UInt64.MaxValue); }
private void nativeEvent(IntPtr widget, UIntPtr index) { //Fill out the ComboBoxEventArgs eventArgs.Index = index.horriblyUnsafeToUInt32(); fireEvent(eventArgs); }
private void nativeEvent(IntPtr widget, UIntPtr position) { eventArgs.Position = position.horriblyUnsafeToUInt32(); fireEvent(eventArgs); }