MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / ViewProps

Interface ViewProps

src/components/View/RNView.ts:31–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 */
30
31export interface ViewProps<Signals extends {}> extends RNProps {
32 /**
33 * Shows or hides the widget and its children. [QWidget: show](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetshow)
34 */
35 visible?: boolean;
36 /**
37 * Sets the property that holds the widget's style sheet. [QWidget: setStyleSheet](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetstylesheetstylesheet)
38 */
39 styleSheet?: string;
40 /**
41 * Sets the inline stylesheet property. [QWidget: setInlineStyle](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetinlinestylestyle)
42 */
43 style?: string;
44 /**
45 * Sets the screen position as well as size of the widget. [QWidget: setGeometry](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetgeometryx-y-width-height)
46 */
47 geometry?: Geometry;
48 /**
49 * Sets the object name (id) of the widget in Qt. Object name can be analogous to id of an element in the web world. Using the objectName of the widget one can reference it in the Qt's stylesheet much like what we do with id in the web world. [QWidget: setObjectName](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetobjectnameobjectname)
50 */
51 id?: string;
52 /**
53 * Sets the property that tells whether mouseTracking is enabled for the widget. [QWidget: setMouseTracking](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetmousetrackingismousetracked)
54 */
55 mouseTracking?: boolean;
56 /**
57 * Sets the property that tells whether the widget is enabled. In general an enabled widget handles keyboard and mouse events; a disabled widget does not. [QWidget: setEnabled](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetenabledenabled)
58 */
59 enabled?: boolean;
60 /**
61 * This property holds the level of opacity for the window. [QWidget: setWindowOpacity](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetwindowopacityopacity)
62 */
63 windowOpacity?: number;
64 /**
65 * Sets the window title property. [QWidget: setWindowTitle](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetwindowtitletitle)
66 */
67 windowTitle?: string;
68 /**
69 * Sets the window state. [QWidget: setWindowState](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetwindowstatestate)
70 */
71 windowState?: WindowState;
72 /**
73 * Sets the window mouse cursor. [QWidget: setCursor](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetcursorcursor)
74 */
75 cursor?: CursorShape | QCursor;
76 /**
77 * Sets the window icon. [QWidget: setWindowIcon](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetwindowiconicon)
78 */
79 windowIcon?: QIcon;
80 /**
81 * Sets the minimum size of the widget. [QWidget: setMinimumSize](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetminimumsizewidth-height)
82 */
83 minSize?: Size;
84 /**
85 * Sets the maximum size of the widget. [QWidget: setMaximumSize](https://docs.nodegui.org/docs/api/generated/classes/QWidget#widgetsetmaximumsizewidth-height)
86 */
87 maxSize?: Size;
88 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected