enum GdkGravity

Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move(). See: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkGravity

Introduced properties

init center: GdkGravity

gtk :: GdkGravity :: center

The reference point is at the center of the window
init east: GdkGravity

gtk :: GdkGravity :: east

The reference point is at the middle of the right edge.
init north: GdkGravity

gtk :: GdkGravity :: north

The reference point is in the middle of the top edge.
init north_east: GdkGravity

gtk :: GdkGravity :: north_east

The reference point is at the top right corner.
init north_west: GdkGravity

gtk :: GdkGravity :: north_west

The reference point is at the top left corner.
init south: GdkGravity

gtk :: GdkGravity :: south

The reference point is at the middle of the lower edge.
init south_east: GdkGravity

gtk :: GdkGravity :: south_east

The reference point is at the lower right corner.
init south_west: GdkGravity

gtk :: GdkGravity :: south_west

The reference point is at the lower left corner.
init static: GdkGravity

gtk :: GdkGravity :: static

The reference point is at the top left corner of the window itself, ignoring window manager decorations.
init west: GdkGravity

gtk :: GdkGravity :: west

The reference point is at the middle of the left edge.

Redefined properties

redef type SELF: GdkGravity

gtk $ GdkGravity :: SELF

Type of this instance, automatically specialized in every class

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun address_is_null: Bool

core :: Pointer :: address_is_null

Is the address behind this Object at NULL?
init center: GdkGravity

gtk :: GdkGravity :: center

The reference point is at the center of the window
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
init east: GdkGravity

gtk :: GdkGravity :: east

The reference point is at the middle of the right edge.
fun free

core :: Pointer :: free

Free the memory pointed by this pointer
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
init north: GdkGravity

gtk :: GdkGravity :: north

The reference point is in the middle of the top edge.
init north_east: GdkGravity

gtk :: GdkGravity :: north_east

The reference point is at the top right corner.
init north_west: GdkGravity

gtk :: GdkGravity :: north_west

The reference point is at the top left corner.
init nul: Pointer

core :: Pointer :: nul

C NULL pointer
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
init south: GdkGravity

gtk :: GdkGravity :: south

The reference point is at the middle of the lower edge.
init south_east: GdkGravity

gtk :: GdkGravity :: south_east

The reference point is at the lower right corner.
init south_west: GdkGravity

gtk :: GdkGravity :: south_west

The reference point is at the lower left corner.
init static: GdkGravity

gtk :: GdkGravity :: static

The reference point is at the top left corner of the window itself, ignoring window manager decorations.
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
init west: GdkGravity

gtk :: GdkGravity :: west

The reference point is at the middle of the left edge.
package_diagram gtk::GdkGravity GdkGravity core::Pointer Pointer gtk::GdkGravity->core::Pointer core::Object Object core::Pointer->core::Object ...core::Object ... ...core::Object->core::Object

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

extern class Pointer

core :: Pointer

Pointer classes are used to manipulate extern C structures.

Class definitions

gtk $ GdkGravity
# enum GdkGravity
# Defines the reference point of a window and the meaning of coordinates passed to gtk_window_move().
# See: https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#GdkGravity
extern class GdkGravity `{GdkGravity`}
	# The reference point is at the top left corner.
	new north_west `{ return GDK_GRAVITY_NORTH_WEST; `}

	# The reference point is in the middle of the top edge.
	new north `{ return GDK_GRAVITY_NORTH; `}

	# The reference point is at the top right corner.
	new north_east `{ return GDK_GRAVITY_NORTH_EAST; `}

	# The reference point is at the middle of the left edge.
	new west `{ return GDK_GRAVITY_WEST; `}

	# The reference point is at the center of the window
	new center `{ return GDK_GRAVITY_CENTER; `}

	# The reference point is at the middle of the right edge.
	new east `{ return GDK_GRAVITY_EAST; `}

	# The reference point is at the lower left corner.
	new south_west `{ return GDK_GRAVITY_SOUTH_WEST; `}

	# The reference point is at the middle of the lower edge.
	new south `{ return GDK_GRAVITY_SOUTH; `}

	# The reference point is at the lower right corner.
	new south_east `{ return GDK_GRAVITY_SOUTH_EAST; `}

	# The reference point is at the top left corner of the window itself, ignoring window manager decorations.
	new static `{ return GDK_GRAVITY_STATIC; `}
end
lib/gtk/v3_4/gdk_enums.nit:24,1--57,3