MenuModel

abstract class MenuModel(menuModelPointer: GMenuModel_autoptr) : KGObject

kotlinx-gtk

08 / 02 / 2021

See also

Constructors

MenuModel
Link copied to clipboard
fun MenuModel(menuModelPointer: GMenuModel_autoptr)

Types

Companion
Link copied to clipboard
object Companion
ItemsChangedEvent
Link copied to clipboard
data class ItemsChangedEvent(position: Int, removed: Int, added: Int)

Functions

addOnItemsChangedCallback
Link copied to clipboard
fun addOnItemsChangedCallback(action: (MenuModel.ItemsChangedEvent) -> Unit): SignalManager
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
getItemAttributeValue
Link copied to clipboard
fun getItemAttributeValue(itemIndex: Int, attribute: String, expectedType: VariantType? = null): Variant?
getItemLink
Link copied to clipboard
fun getItemLink(itemIndex: Int, link: String): MenuModel?
getString
Link copied to clipboard
fun getString(propertyName: String): String
itemsChanged
Link copied to clipboard
fun itemsChanged(position: Int, removed: Int, added: Int)
iterateITemAttributes
Link copied to clipboard
fun iterateITemAttributes(itemIndex: Int): MenuAttributeIter
iterateItemsLinks
Link copied to clipboard
fun iterateItemsLinks(itemIndex: Int): MenuLinkIter
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)
unref
Link copied to clipboard
open override fun unref()

Properties

gClass
Link copied to clipboard
open val gClass: TypeClass
isMutable
Link copied to clipboard
val isMutable: Boolean
menuModelPointer
Link copied to clipboard
val menuModelPointer: GMenuModel_autoptr
nItems
Link copied to clipboard
val nItems: Int
pointer
Link copied to clipboard
val pointer: CPointer<GObject>
typeInstancePointer
Link copied to clipboard
open override val typeInstancePointer: CPointer<GTypeInstance>

Inheritors

Menu
Link copied to clipboard