JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.newt.MonitorMode.SizeAndRRate Class Reference

Immutable surfaceSize, flags and refreshRate Class, consisting of it's read only components:
More...

Inheritance diagram for com.jogamp.newt.MonitorMode.SizeAndRRate:
Collaboration diagram for com.jogamp.newt.MonitorMode.SizeAndRRate:

Public Member Functions

 SizeAndRRate (final SurfaceSize surfaceSize, final float refreshRate, final int flags)
 
final String toString ()
 
int compareTo (final SizeAndRRate sszr)
 
final boolean equals (final Object obj)
 Tests equality of two SizeAndRRate objects by evaluating equality of it's components:
More...
 
final int hashCode ()
 Returns a combined hash code of it's elements:
More...
 

Static Public Member Functions

static final StringBuilder flags2String (final int flags)
 

Public Attributes

final SurfaceSize surfaceSize
 Non rotated surface size in pixel units. More...
 
final int flags
 Mode bitfield flags, i.e. More...
 
final float refreshRate
 Vertical refresh rate. More...
 
final int hashCode
 

Detailed Description

Immutable surfaceSize, flags and refreshRate Class, consisting of it's read only components:

  • nativeId
  • SurfaceSize surface memory size
  • flags
  • refresh rate

Definition at line 138 of file MonitorMode.java.

Constructor & Destructor Documentation

◆ SizeAndRRate()

com.jogamp.newt.MonitorMode.SizeAndRRate.SizeAndRRate ( final SurfaceSize  surfaceSize,
final float  refreshRate,
final int  flags 
)

Definition at line 147 of file MonitorMode.java.

Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int com.jogamp.newt.MonitorMode.SizeAndRRate.compareTo ( final SizeAndRRate  sszr)

Compares surfaceSize 1st, then flags, then refreshRate.

Flags are compared as follows:

  NONE > DOUBLESCAN > INTERLACE

Refresh rate differences of < 0.01 are considered equal (epsilon).

Definition at line 198 of file MonitorMode.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equals()

final boolean com.jogamp.newt.MonitorMode.SizeAndRRate.equals ( final Object  obj)

Tests equality of two SizeAndRRate objects by evaluating equality of it's components:

  • surfaceSize
  • refreshRate
  • flags

Definition at line 235 of file MonitorMode.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flags2String()

static final StringBuilder com.jogamp.newt.MonitorMode.SizeAndRRate.flags2String ( final int  flags)
static

Definition at line 161 of file MonitorMode.java.

Here is the caller graph for this function:

◆ hashCode()

final int com.jogamp.newt.MonitorMode.SizeAndRRate.hashCode ( )

Returns a combined hash code of it's elements:

  • surfaceSize
  • flags
  • refreshRate

Definition at line 255 of file MonitorMode.java.

◆ toString()

final String com.jogamp.newt.MonitorMode.SizeAndRRate.toString ( )

Definition at line 178 of file MonitorMode.java.

Here is the call graph for this function:

Member Data Documentation

◆ flags

final int com.jogamp.newt.MonitorMode.SizeAndRRate.flags

Mode bitfield flags, i.e.

FLAG_DOUBLESCAN, FLAG_INTERLACE, ..

Definition at line 142 of file MonitorMode.java.

◆ hashCode

final int com.jogamp.newt.MonitorMode.SizeAndRRate.hashCode

Definition at line 145 of file MonitorMode.java.

◆ refreshRate

final float com.jogamp.newt.MonitorMode.SizeAndRRate.refreshRate

Vertical refresh rate.

Definition at line 144 of file MonitorMode.java.

◆ surfaceSize

final SurfaceSize com.jogamp.newt.MonitorMode.SizeAndRRate.surfaceSize

Non rotated surface size in pixel units.

Definition at line 140 of file MonitorMode.java.


The documentation for this class was generated from the following file: