Hoogle Search

Within LTS Haskell 24.70 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. labelSetJustify :: (HasCallStack, MonadIO m, IsLabel a) => a -> Justification -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Sets the alignment of the lines in the text of the label relative to each other. JustificationLeft is the default value when the widget is first created with labelNew. If you instead want to set the alignment of the label as a whole, use widgetSetHalign instead. labelSetJustify has no effect on labels containing only a single line.

  2. labelSetLabel :: (HasCallStack, MonadIO m, IsLabel a) => a -> Text -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Sets the text of the label. The label is interpreted as including embedded underlines and/or Pango markup depending on the values of the Label:useUnderline and Label:useMarkup properties.

  3. labelSetLineWrap :: (HasCallStack, MonadIO m, IsLabel a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Toggles line wrapping within the Label widget. True makes it break lines if text exceeds the widget’s size. False lets the text get cut off by the edge of the widget if it exceeds the widget size. Note that setting line wrapping to True does not make the label wrap at its parent container’s width, because GTK+ widgets conceptually can’t make their requisition depend on the parent container’s size. For a label that wraps at a specific position, set the label’s width using widgetSetSizeRequest.

  4. labelSetLineWrapMode :: (HasCallStack, MonadIO m, IsLabel a) => a -> WrapMode -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    If line wrapping is on (see labelSetLineWrap) this controls how the line wrapping is done. The default is WrapModeWord which means wrap on word boundaries. Since: 2.10

  5. labelSetLines :: (HasCallStack, MonadIO m, IsLabel a) => a -> Int32 -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Sets the number of lines to which an ellipsized, wrapping label should be limited. This has no effect if the label is not wrapping or ellipsized. Set this to -1 if you don’t want to limit the number of lines. Since: 3.10

  6. labelSetMarkup :: (HasCallStack, MonadIO m, IsLabel a) => a -> Text -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Parses str which is marked up with the [Pango text markup language][PangoMarkupFormat], setting the label’s text and attribute list based on the parse results. If the str is external data, you may need to escape it with markupEscapeText or g_markup_printf_escaped():

    C code

    GtkWidget *label = gtk_label_new (NULL);
    const char *str = "some text";
    const char *format = "<span style=\"italic\">\%s</span>";
    char *markup;
    
    markup = g_markup_printf_escaped (format, str);
    gtk_label_set_markup (GTK_LABEL (label), markup);
    g_free (markup);
    
    This function will set the Label:useMarkup property to True as a side effect. If you set the label contents using the Label:label property you should also ensure that you set the Label:useMarkup property accordingly. See also: labelSetText

  7. labelSetMarkupWithMnemonic :: (HasCallStack, MonadIO m, IsLabel a) => a -> Text -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Parses str which is marked up with the [Pango text markup language][PangoMarkupFormat], setting the label’s text and attribute list based on the parse results. If characters in str are preceded by an underscore, they are underlined indicating that they represent a keyboard accelerator called a mnemonic. The mnemonic key can be used to activate another widget, chosen automatically, or explicitly using labelSetMnemonicWidget.

  8. labelSetMaxWidthChars :: (HasCallStack, MonadIO m, IsLabel a) => a -> Int32 -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    Sets the desired maximum width in characters of label to nChars. Since: 2.6

  9. labelSetMnemonicWidget :: (HasCallStack, MonadIO m, IsLabel a, IsWidget b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    If the label has been set so that it has an mnemonic key (using i.e. labelSetMarkupWithMnemonic, labelSetTextWithMnemonic, labelNewWithMnemonic or the “use_underline” property) the label can be associated with a widget that is the target of the mnemonic. When the label is inside a widget (like a Button or a Notebook tab) it is automatically associated with the correct widget, but sometimes (i.e. when the target is a Entry next to the label) you need to set it explicitly using this function. The target widget will be accelerated by emitting the GtkWidgetmnemonicActivate signal on it. The default handler for this signal will activate the widget if there are no mnemonic collisions and toggle focus between the colliding widgets otherwise.

  10. labelSetPattern :: (HasCallStack, MonadIO m, IsLabel a) => a -> Text -> m ()

    gi-gtk3 GI.Gtk.Objects.Label

    The pattern of underlines you want under the existing text within the Label widget. For example if the current text of the label says “FooBarBaz” passing a pattern of “_ _” will underline “Foo” and “Baz” but not “Bar”.

Page 1738 of many | Previous | Next