MenuItem

open class MenuItem(menuItemPointer: GMenuItem_autoptr) : KGObject

kotlinx-gtk

28 / 03 / 2021

See also

Constructors

MenuItem
Link copied to clipboard
fun MenuItem(label: String? = null, detailedAction: String? = null)
MenuItem
Link copied to clipboard
fun MenuItem(model: MenuModel, index: Int)
MenuItem
Link copied to clipboard
fun MenuItem(menuItemPointer: GMenuItem_autoptr)

Types

Section
Link copied to clipboard
class Section(p: GMenuItem_autoptr) : MenuItem
Submenu
Link copied to clipboard
class Submenu(p: GMenuItem_autoptr) : MenuItem

Functions

addWeakPointer
Link copied to clipboard
fun addWeakPointer(weakPointerLocation: CValuesRef<COpaquePointerVar>)
bindProperty
Link copied to clipboard
fun bindProperty(property: String, target: KGObject, targetProperty: String, flags: Binding.Flags): Binding
getAttribute
Link copied to clipboard
fun getAttribute(attribute: String, formatString: String): Boolean
getAttributeValue
Link copied to clipboard
fun getAttributeValue(attribute: String, expectedType: VariantType? = null): Variant?
getLink
Link copied to clipboard
fun getLink(link: String): MenuModel?
getString
Link copied to clipboard
fun getString(propertyName: String): String
ref
Link copied to clipboard
open fun ref(): KGObject
set
Link copied to clipboard
fun set(propertyName: String, boolean: Boolean)
fun set(propertyName: String, string: String)
setActionAndTargetValue
Link copied to clipboard
fun setActionAndTargetValue(action: String?, formatString: String?)
fun setActionAndTargetValue(action: String?, variant: Variant?)
setAttribute
Link copied to clipboard
fun setAttribute(attribute: String, formatString: String?)
setAttributeValue
Link copied to clipboard
fun setAttributeValue(attribute: String, variant: Variant?)
setDetailedAction
Link copied to clipboard
fun setDetailedAction(detailedAction: String)
setIcon
Link copied to clipboard
fun setIcon(icon: Icon?)
setLabel
Link copied to clipboard
fun setLabel(label: String?)
setLink
Link copied to clipboard
fun setLink(link: String, menuModel: MenuModel?)
setSection
Link copied to clipboard
fun setSection(section: MenuModel?)
setSubmenu
Link copied to clipboard
fun setSubmenu(submenu: MenuModel?)
unref
Link copied to clipboard
open override fun unref()

Properties

gClass
Link copied to clipboard
open val gClass: TypeClass
menuItemPointer
Link copied to clipboard
val menuItemPointer: GMenuItem_autoptr
pointer
Link copied to clipboard
val pointer: CPointer<GObject>
typeInstancePointer
Link copied to clipboard
open override val typeInstancePointer: CPointer<GTypeInstance>

Inheritors

Section
Link copied to clipboard
Submenu
Link copied to clipboard