Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
nsIWidget.h File Reference
#include "nsISupports.h"
#include "nsColor.h"
#include "nsIMouseListener.h"
#include "nsIMenuListener.h"
#include "nsCoord.h"
#include "prthread.h"
#include "nsEvent.h"
#include "nsCOMPtr.h"

Go to the source code of this file.

Classes

struct  nsWidgetInitData
 Basic struct for widget initialization data. More...
class  nsIWidget
 The base class for all the widgets. More...

Defines

#define NS_NATIVE_WINDOW   0
 Flags for the getNativeData function.
#define NS_NATIVE_GRAPHIC   1
#define NS_NATIVE_COLORMAP   2
#define NS_NATIVE_WIDGET   3
#define NS_NATIVE_DISPLAY   4
#define NS_NATIVE_REGION   5
#define NS_NATIVE_OFFSETX   6
#define NS_NATIVE_OFFSETY   7
#define NS_NATIVE_PLUGIN_PORT   8
#define NS_NATIVE_SCREEN   9
#define NS_NATIVE_SHELLWIDGET   10
#define NS_IWIDGET_IID

Typedefs

typedef nsEventStatus(* PR_CALLBACK )(nsGUIEvent *event)
 Callback function that processes events.
typedef voidnsNativeWidget

Enumerations

enum  nsWindowType {
  eWindowType_toplevel, eWindowType_dialog, eWindowType_popup, eWindowType_child,
  eWindowType_invisible, eWindowType_plugin, eWindowType_java, eWindowType_sheet
}
 Border styles. More...
enum  nsBorderStyle {
  eBorderStyle_none = 0, eBorderStyle_all = 1 << 0, eBorderStyle_border = 1 << 1, eBorderStyle_resizeh = 1 << 2,
  eBorderStyle_title = 1 << 3, eBorderStyle_menu = 1 << 4, eBorderStyle_minimize = 1 << 5, eBorderStyle_maximize = 1 << 6,
  eBorderStyle_close = 1 << 7, eBorderStyle_default = -1
}
enum  nsCursor {
  eCursor_standard, eCursor_wait, eCursor_select, eCursor_hyperlink,
  eCursor_n_resize, eCursor_s_resize, eCursor_w_resize, eCursor_e_resize,
  eCursor_nw_resize, eCursor_se_resize, eCursor_ne_resize, eCursor_sw_resize,
  eCursor_crosshair, eCursor_move, eCursor_help, eCursor_copy,
  eCursor_alias, eCursor_context_menu, eCursor_cell, eCursor_grab,
  eCursor_grabbing, eCursor_spinning, eCursor_zoom_in, eCursor_zoom_out,
  eCursor_not_allowed, eCursor_col_resize, eCursor_row_resize, eCursor_no_drop,
  eCursor_vertical_text, eCursor_all_scroll, eCursor_nesw_resize, eCursor_nwse_resize,
  eCursor_ns_resize, eCursor_ew_resize, eCursorCount
}
 Cursor types. More...
enum  nsContentType { eContentTypeInherit = -1, eContentTypeUI = 0, eContentTypeContent = 1, eContentTypeContentFrame = 2 }
enum  nsTopLevelWidgetZPlacement { eZPlacementBottom = 0, eZPlacementBelow, eZPlacementTop }

Define Documentation

Value:
{ 0xe7f09105, 0xd21b, 0x406a, \
  { 0x89, 0xd5, 0xe6, 0xb7, 0x31, 0xb8, 0xf6, 0x65 } }

Definition at line 96 of file nsIWidget.h.

Definition at line 85 of file nsIWidget.h.

Definition at line 87 of file nsIWidget.h.

Definition at line 84 of file nsIWidget.h.

Definition at line 89 of file nsIWidget.h.

Definition at line 90 of file nsIWidget.h.

Definition at line 91 of file nsIWidget.h.

Definition at line 88 of file nsIWidget.h.

Definition at line 92 of file nsIWidget.h.

Definition at line 93 of file nsIWidget.h.

Definition at line 86 of file nsIWidget.h.

Flags for the getNativeData function.

See getNativeData()

Definition at line 83 of file nsIWidget.h.


Typedef Documentation

typedef void* nsNativeWidget

Definition at line 104 of file nsIWidget.h.

Callback function that processes events.

The argument is actually a subtype (subclass) of nsEvent which carries platform specific information about the event. Platform specific code knows how to deal with it. The return value determines whether or not the default action should take place.

Definition at line 77 of file nsIWidget.h.


Enumeration Type Documentation

Enumerator:
eBorderStyle_none 
eBorderStyle_all 
eBorderStyle_border 
eBorderStyle_resizeh 
eBorderStyle_title 
eBorderStyle_menu 
eBorderStyle_minimize 
eBorderStyle_maximize 
eBorderStyle_close 
eBorderStyle_default 

Definition at line 129 of file nsIWidget.h.

{
  // no border, titlebar, etc.. opposite of all
  eBorderStyle_none     = 0,

  // all window decorations
  eBorderStyle_all      = 1 << 0,

  // enables the border on the window.  these are only for decoration and are not resize hadles
  eBorderStyle_border   = 1 << 1,

  // enables the resize handles for the window.  if this is set, border is implied to also be set
  eBorderStyle_resizeh  = 1 << 2,

  // enables the titlebar for the window
  eBorderStyle_title    = 1 << 3,

  // enables the window menu button on the title bar.  this being on should force the title bar to display
  eBorderStyle_menu     = 1 << 4,

  // enables the minimize button so the user can minimize the window.
  //   turned off for tranient windows since they can not be minimized separate from their parent
  eBorderStyle_minimize = 1 << 5,

  // enables the maxmize button so the user can maximize the window
  eBorderStyle_maximize = 1 << 6,

  // show the close button
  eBorderStyle_close    = 1 << 7,

  // whatever the OS wants... i.e. don't do anything
  eBorderStyle_default  = -1
};
Enumerator:
eContentTypeInherit 
eContentTypeUI 
eContentTypeContent 
eContentTypeContentFrame 

Definition at line 211 of file nsIWidget.h.

enum nsCursor

Cursor types.

Enumerator:
eCursor_standard 

(normal cursor, usually rendered as an arrow)

eCursor_wait 

(system is busy, usually rendered as a hourglass or watch)

eCursor_select 

(Selecting something, usually rendered as an IBeam)

eCursor_hyperlink 

(can hyper-link, usually rendered as a human hand)

eCursor_n_resize 

(north/south/west/east edge sizing)

eCursor_s_resize 
eCursor_w_resize 
eCursor_e_resize 
eCursor_nw_resize 

(corner sizing)

eCursor_se_resize 
eCursor_ne_resize 
eCursor_sw_resize 
eCursor_crosshair 
eCursor_move 
eCursor_help 
eCursor_copy 
eCursor_alias 
eCursor_context_menu 
eCursor_cell 
eCursor_grab 
eCursor_grabbing 
eCursor_spinning 
eCursor_zoom_in 
eCursor_zoom_out 
eCursor_not_allowed 
eCursor_col_resize 
eCursor_row_resize 
eCursor_no_drop 
eCursor_vertical_text 
eCursor_all_scroll 
eCursor_nesw_resize 
eCursor_nwse_resize 
eCursor_ns_resize 
eCursor_ew_resize 
eCursorCount 

Definition at line 167 of file nsIWidget.h.

Enumerator:
eZPlacementBottom 
eZPlacementBelow 
eZPlacementTop 

Definition at line 218 of file nsIWidget.h.

                                { // for PlaceBehind()
  eZPlacementBottom = 0,  // bottom of the window stack
  eZPlacementBelow,       // just below another widget
  eZPlacementTop          // top of the window stack
};

Border styles.

Enumerator:
eWindowType_toplevel 
eWindowType_dialog 
eWindowType_popup 
eWindowType_child 
eWindowType_invisible 
eWindowType_plugin 
eWindowType_java 
eWindowType_sheet 

Definition at line 110 of file nsIWidget.h.

                  {     // Don't alter previously encoded enum values - 3rd party apps may look at these
  // default top level window
  eWindowType_toplevel,
  // top level window but usually handled differently by the OS
  eWindowType_dialog,
  // used for combo boxes, etc
  eWindowType_popup,
  // child windows (contained inside a window on the desktop (has no border))
  eWindowType_child,
  // windows that are invisible or offscreen
  eWindowType_invisible,
  // plugin window
  eWindowType_plugin,
  // java plugin window
  eWindowType_java,
  // MacOSX sheet (special dialog class)
  eWindowType_sheet
};