public abstract class ScrollBarTheme extends Ref
Modifier and Type | Field and Description |
---|---|
static int |
BACK_BUTTON_END_PART |
static int |
BACK_BUTTON_START_PART |
static int |
BACK_TRACK_PART |
static int |
FORWARD_BUTTON_END_PART |
static int |
FORWARD_BUTTON_START_PART |
static int |
FORWARD_TRACK_PART |
static int |
HORIZONTAL_SCROLLBAR |
static int |
NO_PART |
static int |
SCROLLBAR_BG_PART |
static int |
THUMB_PART |
static int |
TRACK_BG_PART |
static int |
VERTICAL_SCROLLBAR |
Constructor and Description |
---|
ScrollBarTheme() |
Modifier and Type | Method and Description |
---|---|
protected abstract Ref |
createWidget(long id,
int w,
int h,
int orientation,
int value,
int visibleSize,
int totalSize) |
protected abstract void |
getScrollBarPartRect(long id,
int part,
int[] rect) |
static int |
getThickness() |
abstract WCSize |
getWidgetSize(Ref widget) |
abstract void |
paint(WCGraphicsContext g,
Ref sbRef,
int x,
int y,
int pressedPart,
int hoveredPart) |
static void |
setThickness(int value) |
@Native public static final int NO_PART
@Native public static final int BACK_BUTTON_START_PART
@Native public static final int FORWARD_BUTTON_START_PART
@Native public static final int BACK_TRACK_PART
@Native public static final int THUMB_PART
@Native public static final int FORWARD_TRACK_PART
@Native public static final int BACK_BUTTON_END_PART
@Native public static final int FORWARD_BUTTON_END_PART
@Native public static final int SCROLLBAR_BG_PART
@Native public static final int TRACK_BG_PART
@Native public static final int HORIZONTAL_SCROLLBAR
@Native public static final int VERTICAL_SCROLLBAR
public static int getThickness()
public static void setThickness(int value)
protected abstract Ref createWidget(long id, int w, int h, int orientation, int value, int visibleSize, int totalSize)
public abstract void paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)
protected abstract void getScrollBarPartRect(long id, int part, int[] rect)
Copyright © 2020. All rights reserved.