wxRuby Documentation Home

Wx::GBPosition

This class represents the position of an item in a virtual grid of
rows and columns managed by a GridBagSizer.

Derived from

No base class

Methods

GBPosition.new

GBPosition.new(%(arg-type)Integer% row, Integer col)

Construct a new GBPosition, optionally setting the row and column.
The default is (0,0).

GBPosition#get_col

Integer get_col()

Get the current column value.

GBPosition#get_row

Integer get_row()

Get the current row value.

GBPosition#set_col

set_col(%(arg-type)Integer% col)

Set a new column value.

GBPosition#set_row

set_row(%(arg-type)Integer% row)

Set a new row value.

GBPosition::operator!

Boolean operator!(%(arg-type)GBPosition% p)

Is the GBPosition valid? (An invalid GBPosition is (-1,-1). )

GBPosition::operator==

bool operator operator==(%(arg-type)GBPosition% p)

Compare equality of two GBPositions.

[This page automatically generated from the Textile source at 2023-06-03 08:07:32 +0000]