Skip to main content

Interface: EntryProps

Defined in: react/src/generated/jsx.ts:2042

Props for the Entry widget.

Extends

Properties

activatesDefault?

optional activatesDefault: boolean

Defined in: react/src/generated/jsx.ts:2044

Whether to activate the default widget when Enter is pressed.


attributes?

optional attributes: number

Defined in: react/src/generated/jsx.ts:2053

A list of Pango attributes to apply to the text of the entry.

This is mainly useful to change the size or weight of the text.

The PangoAttribute's start_index and end_index must refer to the [class@Gtk.EntryBuffer] text, i.e. without the preedit string.


buffer?

optional buffer: EntryBuffer

Defined in: react/src/generated/jsx.ts:2055

The buffer object which actually stores the text.


canFocus?

optional canFocus: boolean

Defined in: react/src/generated/jsx.ts:412

Whether the widget or any of its descendents can accept the input focus.

This property is meant to be set by widget implementations, typically in their instance init function.

Inherited from

WidgetProps.canFocus


canTarget?

optional canTarget: boolean

Defined in: react/src/generated/jsx.ts:414

Whether the widget can receive pointer events.

Inherited from

WidgetProps.canTarget


children?

optional children: ReactNode

Defined in: react/src/generated/jsx.ts:688

Inherited from

WidgetProps.children


completion?

optional completion: EntryCompletion

Defined in: react/src/generated/jsx.ts:2057

The auxiliary completion object to use with the entry.


cssClasses?

optional cssClasses: string[]

Defined in: react/src/generated/jsx.ts:416

A list of css classes applied to this widget.

Inherited from

WidgetProps.cssClasses


cssName?

optional cssName: string

Defined in: react/src/generated/jsx.ts:423

The name of this widget in the CSS tree.

This property is meant to be set by widget implementations, typically in their instance init function.

Inherited from

WidgetProps.cssName


cursor?

optional cursor: number

Defined in: react/src/generated/jsx.ts:425

The cursor used by @widget.

Inherited from

WidgetProps.cursor


cursorPosition?

optional cursorPosition: number

Defined in: react/src/generated/jsx.ts:2251

The current position of the insertion cursor in chars.


editable?

optional editable: boolean

Defined in: react/src/generated/jsx.ts:2253

Whether the entry contents can be edited.


editingCanceled?

optional editingCanceled: boolean

Defined in: react/src/generated/jsx.ts:2249

Indicates whether editing on the cell has been canceled.


enableEmojiCompletion?

optional enableEmojiCompletion: boolean

Defined in: react/src/generated/jsx.ts:2062

Whether to suggest Emoji replacements for :-delimited names like :heart:.


enableUndo?

optional enableUndo: boolean

Defined in: react/src/generated/jsx.ts:2255

If undo/redo should be enabled for the editable.


extraMenu?

optional extraMenu: number

Defined in: react/src/generated/jsx.ts:2064

A menu model whose contents will be appended to the context menu.


focusable?

optional focusable: boolean

Defined in: react/src/generated/jsx.ts:433

Whether this widget itself will accept the input focus.

Inherited from

WidgetProps.focusable


focusOnClick?

optional focusOnClick: boolean

Defined in: react/src/generated/jsx.ts:431

Whether the widget should grab focus when it is clicked with the mouse.

This property is only relevant for widgets that can take focus.

Inherited from

WidgetProps.focusOnClick


halign?

optional halign: Align

Defined in: react/src/generated/jsx.ts:435

How to distribute horizontal space if widget gets extra space.

Inherited from

WidgetProps.halign


hasDefault?

optional hasDefault: boolean

Defined in: react/src/generated/jsx.ts:437

Whether the widget is the default widget.

Inherited from

WidgetProps.hasDefault


hasFocus?

optional hasFocus: boolean

Defined in: react/src/generated/jsx.ts:439

Whether the widget has the input focus.

Inherited from

WidgetProps.hasFocus


hasFrame?

optional hasFrame: boolean

Defined in: react/src/generated/jsx.ts:2066

Whether the entry should draw a frame.


hasTooltip?

optional hasTooltip: boolean

Defined in: react/src/generated/jsx.ts:448

Enables or disables the emission of the [signal@Gtk.Widget::query-tooltip] signal on @widget.

A true value indicates that widget can have a tooltip, in this case the widget will be queried using [signal@Gtk.Widget::query-tooltip] to determine whether it will provide a tooltip or not.

Inherited from

WidgetProps.hasTooltip


heightRequest?

optional heightRequest: number

Defined in: react/src/generated/jsx.ts:454

Overrides for height request of the widget.

If this is -1, the natural request will be used.

Inherited from

WidgetProps.heightRequest


hexpand?

optional hexpand: boolean

Defined in: react/src/generated/jsx.ts:456

Whether to expand horizontally.

Inherited from

WidgetProps.hexpand


hexpandSet?

optional hexpandSet: boolean

Defined in: react/src/generated/jsx.ts:458

Whether to use the hexpand property.

Inherited from

WidgetProps.hexpandSet


imModule?

optional imModule: string

Defined in: react/src/generated/jsx.ts:2076

Which IM (input method) module should be used for this entry.

See [class@Gtk.IMContext].

Setting this to a non-%NULL value overrides the system-wide IM module setting. See the GtkSettings [property@Gtk.Settings:gtk-im-module] property.


inputHints?

optional inputHints: InputHints

Defined in: react/src/generated/jsx.ts:2082

Additional hints that allow input methods to fine-tune their behavior.

Also see [property@Gtk.Entry:input-purpose]


inputPurpose?

optional inputPurpose: InputPurpose

Defined in: react/src/generated/jsx.ts:2093

The purpose of this text field.

This property can be used by on-screen keyboards and other input methods to adjust their behaviour.

Note that setting the purpose to %GTK_INPUT_PURPOSE_PASSWORD or %GTK_INPUT_PURPOSE_PIN is independent from setting [property@Gtk.Entry:visibility].


invisibleChar?

optional invisibleChar: number

Defined in: react/src/generated/jsx.ts:2095

The character to use when masking entry contents (“password mode”).


invisibleCharSet?

optional invisibleCharSet: boolean

Defined in: react/src/generated/jsx.ts:2097

Whether the invisible char has been set for the GtkEntry.


layoutManager?

optional layoutManager: LayoutManager

Defined in: react/src/generated/jsx.ts:466

The [class@Gtk.LayoutManager] instance to use to compute the preferred size of the widget, and allocate its children.

This property is meant to be set by widget implementations, typically in their instance init function.

Inherited from

WidgetProps.layoutManager


limitEvents?

optional limitEvents: boolean

Defined in: react/src/generated/jsx.ts:475

Makes this widget act like a modal dialog, with respect to event delivery.

Global event controllers will not handle events with targets inside the widget, unless they are set up to ignore propagation limits. See [method@Gtk.EventController.set_propagation_limit].

Inherited from

WidgetProps.limitEvents


marginBottom?

optional marginBottom: number

Defined in: react/src/generated/jsx.ts:483

Margin on bottom side of widget.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.

Inherited from

WidgetProps.marginBottom


marginEnd?

optional marginEnd: number

Defined in: react/src/generated/jsx.ts:494

Margin on end of widget, horizontally.

This property supports left-to-right and right-to-left text directions.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.

Inherited from

WidgetProps.marginEnd


marginStart?

optional marginStart: number

Defined in: react/src/generated/jsx.ts:505

Margin on start of widget, horizontally.

This property supports left-to-right and right-to-left text directions.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.

Inherited from

WidgetProps.marginStart


marginTop?

optional marginTop: number

Defined in: react/src/generated/jsx.ts:513

Margin on top side of widget.

This property adds margin outside of the widget's normal size request, the margin will be added in addition to the size from [method@Gtk.Widget.set_size_request] for example.

Inherited from

WidgetProps.marginTop


maxLength?

optional maxLength: number

Defined in: react/src/generated/jsx.ts:2099

Maximum number of characters for this entry.


maxWidthChars?

optional maxWidthChars: number

Defined in: react/src/generated/jsx.ts:2257

The desired maximum width of the entry, in characters.


optional menuEntryIconPrimaryText: string

Defined in: react/src/generated/jsx.ts:2114

Text for an item in the context menu to activate the primary icon action.

When the primary icon is activatable and this property has been set, a new entry in the context menu of this GtkEntry will appear with this text. Selecting that menu entry will result in the primary icon being activated, exactly in the same way as it would be activated from a mouse click.

This simplifies adding accessibility support to applications using activatable icons. The activatable icons aren't focusable when navigating the interface with the keyboard This is why Gtk recommends to also add those actions in the context menu. This set of methods greatly simplifies this, by adding a menu item that, when enabled, calls the same callback than clicking on the icon.


optional menuEntryIconSecondaryText: string

Defined in: react/src/generated/jsx.ts:2129

Text for an item in the context menu to activate the secondary icon action.

When the primary icon is activatable and this property has been set, a new entry in the context menu of this GtkEntry will appear with this text. Selecting that menu entry will result in the primary icon being activated, exactly in the same way as it would be activated from a mouse click.

This simplifies adding accessibility support to applications using activatable icons. The activatable icons aren't focusable when navigating the interface with the keyboard This is why Gtk recommends to also add those actions in the context menu. This set of methods greatly simplifies this, by adding a menu item that, when enabled, calls the same callback than clicking on the icon.


name?

optional name: string

Defined in: react/src/generated/jsx.ts:515

The name of the widget.

Inherited from

WidgetProps.name


onActivate()?

optional onActivate: (self) => void

Defined in: react/src/generated/jsx.ts:2276

Emitted when the entry is activated.

The keybindings for this signal are all forms of the Enter key.

Parameters

ParameterType
selfEntry

Returns

void


onChanged()?

optional onChanged: (self) => void

Defined in: react/src/generated/jsx.ts:2323

Emitted at the end of a single user-visible operation on the contents.

E.g., a paste operation that replaces the contents of the selection will cause only one signal emission (even though it is implemented by first deleting the selection, then inserting the new content, and may cause multiple ::notify::text signals to be emitted).

Parameters

ParameterType
selfEntry

Returns

void


onDeleteText()?

optional onDeleteText: (self, startPos, endPos) => void

Defined in: react/src/generated/jsx.ts:2335

Emitted when text is deleted from the widget by the user.

The default handler for this signal will normally be responsible for deleting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the range of deleted text, or prevent it from being deleted entirely.

The start_pos and end_pos parameters are interpreted as for [method@Gtk.Editable.delete_text].

Parameters

ParameterType
selfEntry
startPosnumber
endPosnumber

Returns

void


onDestroy()?

optional onDestroy: (self) => void

Defined in: react/src/generated/jsx.ts:593

Signals that all holders of a reference to the widget should release the reference that they hold.

May result in finalization of the widget if all references are released.

This signal is not suitable for saving widget state.

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onDestroy


onDirectionChanged()?

optional onDirectionChanged: (self, previousDirection) => void

Defined in: react/src/generated/jsx.ts:595

Emitted when the text direction of a widget changes.

Parameters

ParameterType
selfWidget
previousDirectionTextDirection

Returns

void

Inherited from

WidgetProps.onDirectionChanged


onEditingDone()?

optional onEditingDone: (self) => void

Defined in: react/src/generated/jsx.ts:2297

This signal is a sign for the cell renderer to update its value from the @cell_editable.

Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing, e.g. GtkEntry emits this signal when the user presses Enter. Typical things to do in a handler for ::editing-done are to capture the edited value, disconnect the cell_editable from signals on the GtkCellRenderer, etc.

gtk_cell_editable_editing_done() is a convenience method for emitting GtkCellEditable::editing-done.

Parameters

ParameterType
selfEntry

Returns

void


onHide()?

optional onHide: (self) => void

Defined in: react/src/generated/jsx.ts:600

Emitted when widget is hidden.

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onHide


onIconPress()?

optional onIconPress: (self, iconPos) => void

Defined in: react/src/generated/jsx.ts:2278

Emitted when an activatable icon is clicked.

Parameters

ParameterType
selfEntry
iconPosEntryIconPosition

Returns

void


onIconRelease()?

optional onIconRelease: (self, iconPos) => void

Defined in: react/src/generated/jsx.ts:2283

Emitted on the button release from a mouse click over an activatable icon.

Parameters

ParameterType
selfEntry
iconPosEntryIconPosition

Returns

void


onInsertText()?

optional onInsertText: (self, text, length, position) => void

Defined in: react/src/generated/jsx.ts:2344

Emitted when text is inserted into the widget by the user.

The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission(), it is possible to modify the inserted text, or prevent it from being inserted entirely.

Parameters

ParameterType
selfEntry
textstring
lengthnumber
positionRef<number>

Returns

void


onKeynavFailed()?

optional onKeynavFailed: (self, direction) => boolean

Defined in: react/src/generated/jsx.ts:606

Emitted if keyboard navigation fails.

See [method@Gtk.Widget.keynav_failed] for details.

Parameters

ParameterType
selfWidget
directionDirectionType

Returns

boolean

Inherited from

WidgetProps.onKeynavFailed


onMap()?

optional onMap: (self) => void

Defined in: react/src/generated/jsx.ts:618

Emitted when widget is going to be mapped.

A widget is mapped when the widget is visible (which is controlled with [property@Gtk.Widget:visible]) and all its parents up to the toplevel widget are also visible.

The ::map signal can be used to determine whether a widget will be drawn, for instance it can resume an animation that was stopped during the emission of [signal@Gtk.Widget::unmap].

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onMap


onMnemonicActivate()?

optional onMnemonicActivate: (self, groupCycling) => boolean

Defined in: react/src/generated/jsx.ts:624

Emitted when a widget is activated via a mnemonic.

The default handler for this signal activates widget if group_cycling is false, or just makes widget grab focus if group_cycling is true.

Parameters

ParameterType
selfWidget
groupCyclingboolean

Returns

boolean

Inherited from

WidgetProps.onMnemonicActivate


onMoveFocus()?

optional onMoveFocus: (self, direction) => void

Defined in: react/src/generated/jsx.ts:633

Emitted when the focus is moved.

The ::move-focus signal is a keybinding signal.

The default bindings for this signal are Tab to move forward, and Shift+Tab to move backward.

Parameters

ParameterType
selfWidget
directionDirectionType

Returns

void

Inherited from

WidgetProps.onMoveFocus


onQueryTooltip()?

optional onQueryTooltip: (self, x, y, keyboardMode, tooltip) => boolean

Defined in: react/src/generated/jsx.ts:648

Emitted when the widget’s tooltip is about to be shown.

This happens when the [property@Gtk.Widget:has-tooltip] property is true and the hover timeout has expired with the cursor hovering above @widget; or emitted when widget got focus in keyboard mode.

Using the given coordinates, the signal handler should determine whether a tooltip should be shown for @widget. If this is the case true should be returned, false otherwise. Note that if keyboard_mode is true, the values of x and y are undefined and should not be used.

The signal handler is free to manipulate tooltip with the therefore destined function calls.

Parameters

ParameterType
selfWidget
xnumber
ynumber
keyboardModeboolean
tooltipTooltip

Returns

boolean

Inherited from

WidgetProps.onQueryTooltip


onRealize()?

optional onRealize: (self) => void

Defined in: react/src/generated/jsx.ts:661

Emitted when widget is associated with a GdkSurface.

This means that [method@Gtk.Widget.realize] has been called or the widget has been mapped (that is, it is going to be drawn).

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onRealize


onRemoveWidget()?

optional onRemoveWidget: (self) => void

Defined in: react/src/generated/jsx.ts:2312

This signal is meant to indicate that the cell is finished editing, and the cell_editable widget is being removed and may subsequently be destroyed.

Implementations of GtkCellEditable are responsible for emitting this signal when they are done editing. It must be emitted after the GtkCellEditable::editing-done signal, to give the cell renderer a chance to update the cell's value before the widget is removed.

gtk_cell_editable_remove_widget() is a convenience method for emitting GtkCellEditable::remove-widget.

Parameters

ParameterType
selfEntry

Returns

void


onShow()?

optional onShow: (self) => void

Defined in: react/src/generated/jsx.ts:663

Emitted when widget is shown.

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onShow


onStateFlagsChanged()?

optional onStateFlagsChanged: (self, flags) => void

Defined in: react/src/generated/jsx.ts:669

Emitted when the widget state changes.

See [method@Gtk.Widget.get_state_flags].

Parameters

ParameterType
selfWidget
flagsStateFlags

Returns

void

Inherited from

WidgetProps.onStateFlagsChanged


onUnmap()?

optional onUnmap: (self) => void

Defined in: react/src/generated/jsx.ts:679

Emitted when widget is going to be unmapped.

A widget is unmapped when either it or any of its parents up to the toplevel widget have been set as hidden.

As ::unmap indicates that a widget will not be shown any longer, it can be used to, for example, stop an animation on the widget.

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onUnmap


onUnrealize()?

optional onUnrealize: (self) => void

Defined in: react/src/generated/jsx.ts:686

Emitted when the GdkSurface associated with widget is destroyed.

This means that [method@Gtk.Widget.unrealize] has been called or the widget has been unmapped (that is, it is going to be hidden).

Parameters

ParameterType
selfWidget

Returns

void

Inherited from

WidgetProps.onUnrealize


opacity?

optional opacity: number

Defined in: react/src/generated/jsx.ts:517

The requested opacity of the widget.

Inherited from

WidgetProps.opacity


overflow?

optional overflow: Overflow

Defined in: react/src/generated/jsx.ts:524

How content outside the widget's content area is treated.

This property is meant to be set by widget implementations, typically in their instance init function.

Inherited from

WidgetProps.overflow


overwriteMode?

optional overwriteMode: boolean

Defined in: react/src/generated/jsx.ts:2131

If text is overwritten when typing in the GtkEntry.


parent?

optional parent: Widget

Defined in: react/src/generated/jsx.ts:526

The parent widget of this widget.

Inherited from

WidgetProps.parent


placeholderText?

optional placeholderText: string

Defined in: react/src/generated/jsx.ts:2136

The text that will be displayed in the GtkEntry when it is empty and unfocused.


primaryIconActivatable?

optional primaryIconActivatable: boolean

Defined in: react/src/generated/jsx.ts:2147

Whether the primary icon is activatable.

GTK emits the [signal@Gtk.Entry::icon-press] and [signal@Gtk.Entry::icon-release] signals only on sensitive, activatable icons.

Sensitive, but non-activatable icons can be used for purely informational purposes.


primaryIconGicon?

optional primaryIconGicon: number

Defined in: react/src/generated/jsx.ts:2149

The GIcon to use for the primary icon for the entry.


primaryIconName?

optional primaryIconName: string

Defined in: react/src/generated/jsx.ts:2151

The icon name to use for the primary icon for the entry.


primaryIconPaintable?

optional primaryIconPaintable: number

Defined in: react/src/generated/jsx.ts:2153

A GdkPaintable to use as the primary icon for the entry.


primaryIconSensitive?

optional primaryIconSensitive: boolean

Defined in: react/src/generated/jsx.ts:2164

Whether the primary icon is sensitive.

An insensitive icon appears grayed out. GTK does not emit the [signal@Gtk.Entry::icon-press] and [signal@Gtk.Entry::icon-release] signals and does not allow DND from insensitive icons.

An icon should be set insensitive if the action that would trigger when clicked is currently not available.


primaryIconStorageType?

optional primaryIconStorageType: ImageType

Defined in: react/src/generated/jsx.ts:2166

The representation which is used for the primary icon of the entry.


primaryIconTooltipMarkup?

optional primaryIconTooltipMarkup: string

Defined in: react/src/generated/jsx.ts:2172

The contents of the tooltip on the primary icon, with markup.

Also see [method@Gtk.Entry.set_icon_tooltip_markup].


primaryIconTooltipText?

optional primaryIconTooltipText: string

Defined in: react/src/generated/jsx.ts:2178

The contents of the tooltip on the primary icon.

Also see [method@Gtk.Entry.set_icon_tooltip_text].


progressFraction?

optional progressFraction: number

Defined in: react/src/generated/jsx.ts:2180

The current fraction of the task that's been completed.


progressPulseStep?

optional progressPulseStep: number

Defined in: react/src/generated/jsx.ts:2187

The fraction of total entry width to move the progress bouncing block for each pulse.

See [method@Gtk.Entry.progress_pulse].


receivesDefault?

optional receivesDefault: boolean

Defined in: react/src/generated/jsx.ts:528

Whether the widget will receive the default action when it is focused.

Inherited from

WidgetProps.receivesDefault


ref?

optional ref: Ref<Entry>

Defined in: react/src/generated/jsx.ts:2351


root?

optional root: Root

Defined in: react/src/generated/jsx.ts:534

The GtkRoot widget of the widget tree containing this widget.

This will be NULL if the widget is not contained in a root widget.

Inherited from

WidgetProps.root


scaleFactor?

optional scaleFactor: number

Defined in: react/src/generated/jsx.ts:536

The scale factor of the widget.

Inherited from

WidgetProps.scaleFactor


scrollOffset?

optional scrollOffset: number

Defined in: react/src/generated/jsx.ts:2189

Number of pixels of the entry scrolled off the screen to the left.


secondaryIconActivatable?

optional secondaryIconActivatable: boolean

Defined in: react/src/generated/jsx.ts:2200

Whether the secondary icon is activatable.

GTK emits the [signal@Gtk.Entry::icon-press] and [signal@Gtk.Entry::icon-release] signals only on sensitive, activatable icons.

Sensitive, but non-activatable icons can be used for purely informational purposes.


secondaryIconGicon?

optional secondaryIconGicon: number

Defined in: react/src/generated/jsx.ts:2202

The GIcon to use for the secondary icon for the entry.


secondaryIconName?

optional secondaryIconName: string

Defined in: react/src/generated/jsx.ts:2204

The icon name to use for the secondary icon for the entry.


secondaryIconPaintable?

optional secondaryIconPaintable: number

Defined in: react/src/generated/jsx.ts:2206

A GdkPaintable to use as the secondary icon for the entry.


secondaryIconSensitive?

optional secondaryIconSensitive: boolean

Defined in: react/src/generated/jsx.ts:2217

Whether the secondary icon is sensitive.

An insensitive icon appears grayed out. GTK does not emit the [signal@Gtk.Entry::icon-press[ and [signal@Gtk.Entry::icon-release] signals and does not allow DND from insensitive icons.

An icon should be set insensitive if the action that would trigger when clicked is currently not available.


secondaryIconStorageType?

optional secondaryIconStorageType: ImageType

Defined in: react/src/generated/jsx.ts:2219

The representation which is used for the secondary icon of the entry.


secondaryIconTooltipMarkup?

optional secondaryIconTooltipMarkup: string

Defined in: react/src/generated/jsx.ts:2225

The contents of the tooltip on the secondary icon, with markup.

Also see [method@Gtk.Entry.set_icon_tooltip_markup].


secondaryIconTooltipText?

optional secondaryIconTooltipText: string

Defined in: react/src/generated/jsx.ts:2231

The contents of the tooltip on the secondary icon.

Also see [method@Gtk.Entry.set_icon_tooltip_text].


selectionBound?

optional selectionBound: number

Defined in: react/src/generated/jsx.ts:2259

The position of the opposite end of the selection from the cursor in chars.


sensitive?

optional sensitive: boolean

Defined in: react/src/generated/jsx.ts:538

Whether the widget responds to input.

Inherited from

WidgetProps.sensitive


showEmojiIcon?

optional showEmojiIcon: boolean

Defined in: react/src/generated/jsx.ts:2236

Whether the entry will show an Emoji icon in the secondary icon position to open the Emoji chooser.


tabs?

optional tabs: number

Defined in: react/src/generated/jsx.ts:2238

A list of tabstops to apply to the text of the entry.


text?

optional text: string

Defined in: react/src/generated/jsx.ts:2261

The contents of the entry.


textLength?

optional textLength: number

Defined in: react/src/generated/jsx.ts:2240

The length of the text in the GtkEntry.


tooltipMarkup?

optional tooltipMarkup: string

Defined in: react/src/generated/jsx.ts:554

Sets the text of tooltip to be the given string, which is marked up with Pango markup.

Also see [method@Gtk.Tooltip.set_markup].

This is a convenience property which will take care of getting the tooltip shown if the given string is not NULL: [property@Gtk.Widget:has-tooltip] will automatically be set to true and there will be taken care of [signal@Gtk.Widget::query-tooltip] in the default signal handler.

Note that if both [property@Gtk.Widget:tooltip-text] and [property@Gtk.Widget:tooltip-markup] are set, the last one wins.

Inherited from

WidgetProps.tooltipMarkup


tooltipText?

optional tooltipText: string

Defined in: react/src/generated/jsx.ts:569

Sets the text of tooltip to be the given string.

Also see [method@Gtk.Tooltip.set_text].

This is a convenience property which will take care of getting the tooltip shown if the given string is not NULL: [property@Gtk.Widget:has-tooltip] will automatically be set to true and there will be taken care of [signal@Gtk.Widget::query-tooltip] in the default signal handler.

Note that if both [property@Gtk.Widget:tooltip-text] and [property@Gtk.Widget:tooltip-markup] are set, the last one wins.

Inherited from

WidgetProps.tooltipText


truncateMultiline?

optional truncateMultiline: boolean

Defined in: react/src/generated/jsx.ts:2242

When %TRUE, pasted multi-line text is truncated to the first line.


valign?

optional valign: Align

Defined in: react/src/generated/jsx.ts:571

How to distribute vertical space if widget gets extra space.

Inherited from

WidgetProps.valign


vexpand?

optional vexpand: boolean

Defined in: react/src/generated/jsx.ts:573

Whether to expand vertically.

Inherited from

WidgetProps.vexpand


vexpandSet?

optional vexpandSet: boolean

Defined in: react/src/generated/jsx.ts:575

Whether to use the vexpand property.

Inherited from

WidgetProps.vexpandSet


visibility?

optional visibility: boolean

Defined in: react/src/generated/jsx.ts:2247

Whether the entry should show the “invisible char” instead of the actual text (“password mode”).


visible?

optional visible: boolean

Defined in: react/src/generated/jsx.ts:577

Whether the widget is visible.

Inherited from

WidgetProps.visible


widthChars?

optional widthChars: number

Defined in: react/src/generated/jsx.ts:2263

Number of characters to leave space for in the entry.


widthRequest?

optional widthRequest: number

Defined in: react/src/generated/jsx.ts:583

Overrides for width request of the widget.

If this is -1, the natural request will be used.

Inherited from

WidgetProps.widthRequest


xalign?

optional xalign: number

Defined in: react/src/generated/jsx.ts:2269

The horizontal alignment, from 0 (left) to 1 (right).

Reversed for RTL layouts.