CellRendererTextSignalName

public enum CellRendererTextSignalName : String, SignalNameProtocol

Undocumented

  • This signal is emitted after renderer has been edited.

    It is the responsibility of the application to update the model and store new_text at the position indicated by path.

    Declaration

    Swift

    case edited = "edited"
  • This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.

    See also: gtk_cell_renderer_stop_editing().

    Declaration

    Swift

    case editingCanceled = "editing-canceled"
  • This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on editable, e.g. adding a GtkEntryCompletion or setting up additional columns in a GtkComboBox.

    See gtk_cell_editable_start_editing() for information on the lifecycle of the editable and a way to do setup that doesn’t depend on the renderer.

    Note that GTK+ doesn’t guarantee that cell renderers will continue to use the same kind of widget for editing in future releases, therefore you should check the type of editable before doing any specific setup, as in the following example: (C Language Example):

    static void
    text_editing_started (GtkCellRenderer *cell,
                          GtkCellEditable *editable,
                          const gchar     *path,
                          gpointer         data)
    {
      if (GTK_IS_ENTRY (editable))
        {
          GtkEntry *entry = GTK_ENTRY (editable);
    
          // ... create a GtkEntryCompletion
    
          gtk_entry_set_completion (entry, completion);
        }
    }
    

    Declaration

    Swift

    case editingStarted = "editing-started"
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Declaration

    Swift

    case notify = "notify"
  • Undocumented

    Declaration

    Swift

    case notifyAlignSet = "notify::align-set"
  • Specifies how to align the lines of text with respect to each other.

    Note that this property describes how to align the lines of text in case there are several of them. The “xalign” property of GtkCellRenderer, on the other hand, sets the horizontal alignment of the whole text.

    Declaration

    Swift

    case notifyAlignment = "notify::alignment"
  • Undocumented

    Declaration

    Swift

    case notifyAttributes = "notify::attributes"
  • Undocumented

    Declaration

    Swift

    case notifyBackground = "notify::background"
  • Background color as a GdkColor

    background-gdk is deprecated: Use #GtkCellRendererText:background-rgba instead.

    Declaration

    Swift

    case notifyBackgroundGdk = "notify::background-gdk"
  • Background color as a GdkRGBA

    Declaration

    Swift

    case notifyBackgroundRGBA = "notify::background-rgba"
  • Undocumented

    Declaration

    Swift

    case notifyBackgroundSet = "notify::background-set"
  • Undocumented

    Declaration

    Swift

    case notifyCellBackground = "notify::cell-background"
  • Cell background as a GdkColor

    cell-background-gdk is deprecated: Use #GtkCellRenderer:cell-background-rgba instead.

    Declaration

    Swift

    case notifyCellBackgroundGdk = "notify::cell-background-gdk"
  • Cell background as a GdkRGBA

    Declaration

    Swift

    case notifyCellBackgroundRGBA = "notify::cell-background-rgba"
  • Undocumented

    Declaration

    Swift

    case notifyCellBackgroundSet = "notify::cell-background-set"
  • Undocumented

    Declaration

    Swift

    case notifyEditable = "notify::editable"
  • Undocumented

    Declaration

    Swift

    case notifyEditableSet = "notify::editable-set"
  • Undocumented

    Declaration

    Swift

    case notifyEditing = "notify::editing"
  • Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to PANGO_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.

    Declaration

    Swift

    case notifyEllipsize = "notify::ellipsize"
  • Undocumented

    Declaration

    Swift

    case notifyEllipsizeSet = "notify::ellipsize-set"
  • Undocumented

    Declaration

    Swift

    case notifyFamily = "notify::family"
  • Undocumented

    Declaration

    Swift

    case notifyFamilySet = "notify::family-set"
  • Undocumented

    Declaration

    Swift

    case notifyFont = "notify::font"
  • Undocumented

    Declaration

    Swift

    case notifyFontDesc = "notify::font-desc"
  • Undocumented

    Declaration

    Swift

    case notifyForeground = "notify::foreground"
  • Foreground color as a GdkColor

    foreground-gdk is deprecated: Use #GtkCellRendererText:foreground-rgba instead.

    Declaration

    Swift

    case notifyForegroundGdk = "notify::foreground-gdk"
  • Foreground color as a GdkRGBA

    Declaration

    Swift

    case notifyForegroundRGBA = "notify::foreground-rgba"
  • Undocumented

    Declaration

    Swift

    case notifyForegroundSet = "notify::foreground-set"
  • Undocumented

    Declaration

    Swift

    case notifyHeight = "notify::height"
  • Undocumented

    Declaration

    Swift

    case notifyIsExpanded = "notify::is-expanded"
  • Undocumented

    Declaration

    Swift

    case notifyIsExpander = "notify::is-expander"
  • Undocumented

    Declaration

    Swift

    case notifyLanguage = "notify::language"
  • Undocumented

    Declaration

    Swift

    case notifyLanguageSet = "notify::language-set"
  • Undocumented

    Declaration

    Swift

    case notifyMarkup = "notify::markup"
  • The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.

    For cell renderers that ellipsize or wrap text; this property controls the maximum reported width of the cell. The cell should not receive any greater allocation unless it is set to expand in its GtkCellLayout and all of the cell’s siblings have received their natural width.

    Declaration

    Swift

    case notifyMaxWidthChars = "notify::max-width-chars"
  • Undocumented

    Declaration

    Swift

    case notifyMode = "notify::mode"
  • The text that will be displayed in the GtkCellRenderer if GtkCellRendererText:editable is true and the cell is empty.

    Since 3.6

    Declaration

    Swift

    case notifyPlaceholderText = "notify::placeholder-text"
  • Undocumented

    Declaration

    Swift

    case notifyRise = "notify::rise"
  • Undocumented

    Declaration

    Swift

    case notifyRiseSet = "notify::rise-set"
  • Undocumented

    Declaration

    Swift

    case notifyScale = "notify::scale"
  • Undocumented

    Declaration

    Swift

    case notifyScaleSet = "notify::scale-set"
  • Undocumented

    Declaration

    Swift

    case notifySensitive = "notify::sensitive"
  • Undocumented

    Declaration

    Swift

    case notifySingleParagraphMode = "notify::single-paragraph-mode"
  • Undocumented

    Declaration

    Swift

    case notifySize = "notify::size"
  • Undocumented

    Declaration

    Swift

    case notifySizePoints = "notify::size-points"
  • Undocumented

    Declaration

    Swift

    case notifySizeSet = "notify::size-set"
  • Undocumented

    Declaration

    Swift

    case notifyStretch = "notify::stretch"
  • Undocumented

    Declaration

    Swift

    case notifyStretchSet = "notify::stretch-set"
  • Undocumented

    Declaration

    Swift

    case notifyStrikethrough = "notify::strikethrough"
  • Undocumented

    Declaration

    Swift

    case notifyStrikethroughSet = "notify::strikethrough-set"
  • Undocumented

    Declaration

    Swift

    case notifyStyle = "notify::style"
  • Undocumented

    Declaration

    Swift

    case notifyStyleSet = "notify::style-set"
  • Undocumented

    Declaration

    Swift

    case notifyText = "notify::text"
  • Undocumented

    Declaration

    Swift

    case notifyUnderline = "notify::underline"
  • Undocumented

    Declaration

    Swift

    case notifyUnderlineSet = "notify::underline-set"
  • Undocumented

    Declaration

    Swift

    case notifyVariant = "notify::variant"
  • Undocumented

    Declaration

    Swift

    case notifyVariantSet = "notify::variant-set"
  • Undocumented

    Declaration

    Swift

    case notifyVisible = "notify::visible"
  • Undocumented

    Declaration

    Swift

    case notifyWeight = "notify::weight"
  • Undocumented

    Declaration

    Swift

    case notifyWeightSet = "notify::weight-set"
  • Undocumented

    Declaration

    Swift

    case notifyWidth = "notify::width"
  • The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.

    Declaration

    Swift

    case notifyWidthChars = "notify::width-chars"
  • Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.

    Declaration

    Swift

    case notifyWrapMode = "notify::wrap-mode"
  • Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.

    Declaration

    Swift

    case notifyWrapWidth = "notify::wrap-width"
  • Undocumented

    Declaration

    Swift

    case notifyXalign = "notify::xalign"
  • Undocumented

    Declaration

    Swift

    case notifyXpad = "notify::xpad"
  • Undocumented

    Declaration

    Swift

    case notifyYalign = "notify::yalign"
  • Undocumented

    Declaration

    Swift

    case notifyYpad = "notify::ypad"