Gjsify LogoGjsify Logo

Hierarchy

Index

Properties

angle?: number

The angle that the baseline of the label makes with the horizontal, in degrees, measured counterclockwise. An angle of 90 reads from from bottom to top, an angle of 270, from top to bottom. Ignored if the label is selectable, wrapped, or ellipsized.

appPaintable?: boolean
attributes?: Pango.AttrList
caller?: Gtk.Widget
canDefault?: boolean
canFocus?: boolean
doubleBuffered?: boolean

Whether or not the widget is double buffered.

ellipsize?: EllipsizeMode

The preferred place to ellipsize the string, if the label does not have enough room to display the entire string, specified as a #PangoEllisizeMode.

Note that setting this property to a value other than %PANGO_ELLIPSIZE_NONE has the side-effect that the label requests only enough space to display the ellipsis "...". In particular, this means that ellipsizing labels do not work well in notebook tabs, unless the tab's #GtkNotebook:tab-expand property is set to %TRUE. Other ways to set a label's width are gtk_widget_set_size_request() and gtk_label_set_width_chars().

emitAlways?: boolean
events?: Gdk.EventMask
extensionEvents?: ExtensionMode
hasDefault?: boolean
hasFocus?: boolean
hasTooltip?: boolean

Enables or disables the emission of #GtkWidget::query-tooltip on widget. A value of %TRUE indicates that widget can have a tooltip, in this case the widget will be queried using #GtkWidget::query-tooltip to determine whether it will provide a tooltip or not.

Note that setting this property to %TRUE for the first time will change the event masks of the GdkWindows of this widget to include leave-notify and motion-notify events. This cannot and will not be undone when the property is set to %FALSE again.

heightRequest?: number
isFocus?: boolean
justify?: Gtk.Justification
label?: string
labelInactive?: string
labelNoTip?: string
maxWidthChars?: number

The desired maximum width of the label, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the label will request space for no more than the requested number of characters. If the #GtkLabel:width-chars property is set to a positive value, then the "max-width-chars" property is ignored.

mnemonicWidget?: Gtk.Widget
name?: string
noShowAll?: boolean
parent?: Gtk.Container
pattern?: string
receivesDefault?: boolean
selectable?: boolean
sensitive?: boolean
singleLineMode?: boolean

Whether the label is in single line mode. In single line mode, the height of the label does not depend on the actual text, it is always set to ascent + descent of the font. This can be an advantage in situations where resizing the label because of text changes would be distracting, e.g. in a statusbar.

style?: Gtk.Style
tooltipMarkup?: string

Sets the text of tooltip to be the given string, which is marked up with the Pango text markup language. Also see 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: #GtkWidget:has-tooltip will automatically be set to %TRUE and there will be taken care of #GtkWidget::query-tooltip in the default signal handler.

tooltipText?: string

Sets the text of tooltip to be the given string.

Also see 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: #GtkWidget:has-tooltip will automatically be set to %TRUE and there will be taken care of #GtkWidget::query-tooltip in the default signal handler.

trackVisitedLinks?: boolean

Set this property to %TRUE to make the label track which links have been clicked. It will then apply the ::visited-link-color color, instead of ::link-color.

useMarkup?: boolean
useUnderline?: boolean
userData?: object
visible?: boolean
widthChars?: number

The desired width of the label, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the label will request either 3 characters or the property value, whichever is greater. If the "width-chars" property is set to a positive value, then the #GtkLabel:max-width-chars property is ignored.

widthRequest?: number
wrap?: boolean
wrapMode?: Pango.WrapMode

If line wrapping is on (see the #GtkLabel:wrap property) this controls how the line wrapping is done. The default is %PANGO_WRAP_WORD, which means wrap on word boundaries.

xalign?: number
xpad?: number
yalign?: number
ypad?: number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method