78 |
static final int GDK_COPY = 0, GDK_XOR = 2; |
static final int GDK_COPY = 0, GDK_XOR = 2; |
79 |
|
|
80 |
native void initState (GtkComponentPeer component); |
native void initState (GtkComponentPeer component); |
81 |
|
native void initStateUnlocked (GtkComponentPeer component); |
82 |
native void initState (int width, int height); |
native void initState (int width, int height); |
83 |
native void initFromImage (GtkImage image); |
native void initFromImage (GtkImage image); |
84 |
native void copyState (GdkGraphics g); |
native void copyState (GdkGraphics g); |
130 |
color = component.awtComponent.getForeground (); |
color = component.awtComponent.getForeground (); |
131 |
Dimension d = component.awtComponent.getSize (); |
Dimension d = component.awtComponent.getSize (); |
132 |
clip = new Rectangle (0, 0, d.width, d.height); |
clip = new Rectangle (0, 0, d.width, d.height); |
133 |
|
} |
134 |
|
|
135 |
|
// called back by native side: realize_cb |
136 |
|
void initComponentGraphicsUnlocked () |
137 |
|
{ |
138 |
|
initStateUnlocked (component); |
139 |
|
color = component.awtComponent.getForeground (); |
140 |
|
Dimension d = component.awtComponent.getSize (); |
141 |
|
clip = new Rectangle (0, 0, d.width, d.height); |
142 |
} |
} |
143 |
|
|
144 |
native void connectSignals (GtkComponentPeer component); |
native void connectSignals (GtkComponentPeer component); |