{-# LANGUAGE CPP, FlexibleContexts, FlexibleInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, ScopedTypeVariables, TypeSynonymInstances, UndecidableInstances #-}
#if !MIN_VERSION_base(4,8,0)
{-# LANGUAGE OverlappingInstances #-}
#endif

---------- GENERATED FILE, EDITS WILL BE LOST ----------

{-# LANGUAGE NoMonomorphismRestriction #-}

module Graphics.UI.Qtah.Widgets.QWidget (
  QWidgetValue (..),
  QWidgetConstPtr (..),
  QWidgetPtr (..),
  QWidgetConst,
  QWidget,
  castConst,
  cast,
  downCastConst,
  downCast,
  new,
  newWithParent,
  acceptDrops,
  accessibleDescription,
  accessibleName,
  activateWindow,
  addAction,
  adjustSize,
  autoFillBackground,
  baseSize,
  childAtPoint,
  childAtRaw,
  childrenRect,
  clearFocus,
  clearMask,
  close,
  contentsMargins,
  contentsRect,
  ensurePolished,
  focusProxy,
  focusWidget,
  font,
  frameGeometry,
  frameSize,
  geometry,
  grabKeyboard,
  grabMouse,
  hasFocus,
  hasMouseTracking,
  height,
  heightForWidth,
  hide,
  insertAction,
  isActiveWindow,
  isAncestorOf,
  isEnabled,
  isEnabledTo,
  isFullScreen,
  isHidden,
  isMaximized,
  isMinimized,
  isModal,
  isVisible,
  isVisibleTo,
  isWindow,
  isWindowModified,
  keyboardGrabber,
  layout,
  layoutDirection,
  lower,
  mapFrom,
  mapFromGlobal,
  mapFromParent,
  mapTo,
  mapToGlobal,
  mapToParent,
  maximumHeight,
  maximumSize,
  maximumWidth,
  minimumHeight,
  minimumSize,
  minimumWidth,
  mouseGrabber,
  move,
  nativeParentWidget,
  nextInFocusChain,
  normalGeometry,
  parentWidget,
  pos,
  previousInFocusChain,
  raise,
  rect,
  releaseKeyboard,
  releaseMouse,
  removeAction,
  repaint,
  repaintRaw,
  repaintRect,
  resize,
  resizeRaw,
  scrollRaw,
  scrollRect,
  setAcceptDrops,
  setAccessibleDescription,
  setAccessibleName,
  setAutoFillBackground,
  setBaseSize,
  setBaseSizeRaw,
  setContentsMargins,
  setContentsMarginsRaw,
  setDisabled,
  setEnabled,
  setFixedHeight,
  setFixedSize,
  setFixedSizeRaw,
  setFixedWidth,
  setFocus,
  setFocusProxy,
  setFont,
  setGeometryRaw,
  setGeometryRect,
  setHidden,
  setLayout,
  setLayoutDirection,
  setMaximumHeight,
  setMaximumSize,
  setMaximumSizeRaw,
  setMaximumWidth,
  setMinimumHeight,
  setMinimumSize,
  setMinimumSizeRaw,
  setMinimumWidth,
  setMouseTracking,
  setParent,
  setParentWithFlags,
  setSizeIncrement,
  setSizeIncrementRaw,
  setStatusTip,
  setStyleSheet,
  setTabOrder,
  setToolTip,
  setUpdatesEnabled,
  setVisible,
  setWhatsThis,
  setWindowFilePath,
  setWindowFlags,
  setWindowIconText,
  setWindowModality,
  setWindowModified,
  setWindowOpacity,
  setWindowRole,
  setWindowState,
  setWindowTitle,
  show,
  showFullScreen,
  showMaximized,
  showMinimized,
  showNormal,
  size,
  sizeHint,
  sizeIncrement,
  stackUnder,
  statusTip,
  styleSheet,
  toolTip,
  underMouse,
  unsetCursor,
  unsetLayoutDirection,
  unsetLocale,
  update,
  updateGeometry,
  updateRaw,
  updateRect,
  updatesEnabled,
  whatsThis,
  width,
  window,
  windowFilePath,
  windowFlags,
  windowIconText,
  windowModality,
  windowOpacity,
  windowRole,
  windowState,
  windowTitle,
  x,
  y,
  customContextMenuRequestedSignal,
  ) where

import qualified Graphics.UI.Qtah.Core.HPoint as HPoint
import Graphics.UI.Qtah.Generated.Widgets.QWidget
import Graphics.UI.Qtah.Internal.Listener
import qualified Graphics.UI.Qtah.Signal as QtahSignal
import Prelude ()
import qualified Prelude as HoppyP


castConst = toQWidgetConst
cast = toQWidget
downCastConst = downToQWidgetConst
downCast = downToQWidget

customContextMenuRequestedSignal :: (QWidgetPtr object) => QtahSignal.Signal object (HPoint.HPoint -> HoppyP.IO ())
customContextMenuRequestedSignal = QtahSignal.Signal
  { QtahSignal.internalConnectSignal = \object' fn' -> do
    listener' <- listenerQPoint_new fn'
    listenerQPoint_connectListener listener' object' "2customContextMenuRequested(QPoint)"
  , QtahSignal.internalName = "QWidget::customContextMenuRequested (ListenerQPoint)"
  }